public class DefaultLayoutManager extends AbstractDocumentManager implements LayoutManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENCE_LAYOUT_DOCUMENT_DEFINITION_NAME |
TEMPLATE_FILE_POINTEXT, TYPENAME
NOTIFY_AFTER_CREATEDOCUMENT, NOTIFY_AFTER_CREATEMAINWINDOW, NOTIFY_AFTER_CREATEPROPERTIESWINDOW, NOTIFY_AFTER_GETMAINWINDOW, NOTIFY_AFTER_GETPROPERTIESWINDOW
Constructor and Description |
---|
DefaultLayoutManager() |
Modifier and Type | Method and Description |
---|---|
AbstractDocument |
createDocument()
Create a new ProjectDocument.
|
IFFramePanel |
createFFrameDialog(IFFrame fframe,
LayoutPanel layoutPanel) |
IFFramePanel |
createFFrameDialog(IFFrame fframe,
LayoutPanel layoutPanel,
java.awt.geom.AffineTransform affineTransform) |
IFFrame |
createFrame(java.lang.String frameName) |
IContextMenuAction[] |
createLayoutMenuActions(LayoutPanel layoutPanel) |
boolean |
getDefaultAdjustToGrid()
Returns if the adjust to grid should be active.
|
boolean |
getDefaultShowGrid()
Returns if the grid should be shown.
|
boolean |
getDefaultShowInitialPageConfigDialog() |
boolean |
getDefaultShowRulers()
Returns if the ruler should be shown.
|
DynStruct |
getDefinition(java.lang.String className)
Returns the associated definition to the java class name
|
protected java.lang.Class |
getDocumentClass()
Return the class or interface for the documents managed by this factory.
|
javax.swing.ImageIcon |
getIcon()
Returns image of button.
|
javax.swing.ImageIcon |
getIconSelected()
Returns image of selected button.
|
IWindow |
getMainWindow(Document doc,
WindowLayout layout)
Return the main window asociated to the document.
|
java.lang.Class |
getMainWindowClass()
Return the class that implement the main window for this type of
documents.
|
int |
getPriority()
Returns the type of document priority.
|
IWindow |
getPropertiesWindow(Document doc)
Return the windows properties asociated to the document.
|
java.lang.String |
getTitle()
Returns the name of ProjectDocument.
|
java.lang.String |
getTypeName()
Returns the name of registration in the point of extension.
|
boolean |
manages(java.lang.Object object)
Informs if
object is managed by this factory. |
static void |
register()
Registers in the points of extension the Factory with alias.
|
void |
registerFFrameDialog(java.lang.String name,
java.lang.Class clazz) |
void |
registerFrameFactory(FrameFactory frameFactory)
Registers in the points of extension the Factory
|
void |
registerFrameFactory(FrameFactory frameFactory,
java.lang.String alias)
Registers in the points of extension the Factory with alias.
|
void |
registerLayoutMenuAction(java.lang.String name,
java.lang.Class<? extends IContextMenuAction> clazz) |
void |
setDefaultAdjustToGrid(boolean gridEnabled)
Sets whether the snapping to grid should be enabled or not
|
void |
setDefaultShowGrid(boolean showGrid)
Sets whether the grid should be shown.
|
void |
setDefaultShowRulers(boolean showRules)
Sets whether the ruler should be shown or not
|
addObserver, create, create, create, createDocumentByUser, createDocumentsByUser, createDocumentsByUser, createDocumentWindow, createFromState, deleteObserver, deleteObservers, existName, getClassOfDocument, getDefinitions, getDomainName, getDomainURL, getExtendedProperties, getMainComponent, getMainComponent, getMainWindow, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, getProperty, hasMainWindow, loadFromState, manages, manages, notifyObservers, notifyObservers, registerMainComponent, saveToState, setProperty, unregisterMainComponent, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDocumentByUser, createDocumentsByUser, createDocumentsByUser, existName, getClassOfDocument, getMainComponent, getMainComponent, getMainWindow, hasMainWindow, registerMainComponent, unregisterMainComponent
create, create, create
createFromState, getDefinitions, getDomainName, getDomainURL, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, saveToState
addObserver, deleteObserver, deleteObservers
getExtendedProperties, getProperty, setProperty
public static final java.lang.String PERSISTENCE_LAYOUT_DOCUMENT_DEFINITION_NAME
public javax.swing.ImageIcon getIcon()
getIcon
in interface DocumentManager
getIcon
in class AbstractDocumentManager
public javax.swing.ImageIcon getIconSelected()
getIconSelected
in interface DocumentManager
getIconSelected
in class AbstractDocumentManager
public java.lang.String getTypeName()
getTypeName
in interface DocumentManager
public java.lang.String getTitle()
getTitle
in interface DocumentManager
getTitle
in class AbstractDocumentManager
public AbstractDocument createDocument()
DocumentManager
createDocument
in interface DocumentManager
public java.lang.Class getMainWindowClass()
DocumentManager
getMainWindowClass
in interface DocumentManager
public IWindow getMainWindow(Document doc, WindowLayout layout)
DocumentManager
getMainWindow
in interface DocumentManager
getMainWindow
in class AbstractDocumentManager
public IFFramePanel createFFrameDialog(IFFrame fframe, LayoutPanel layoutPanel, java.awt.geom.AffineTransform affineTransform)
createFFrameDialog
in interface LayoutManager
public IFFramePanel createFFrameDialog(IFFrame fframe, LayoutPanel layoutPanel)
createFFrameDialog
in interface LayoutManager
public void registerFrameFactory(FrameFactory frameFactory, java.lang.String alias)
LayoutManager
registerFrameFactory
in interface LayoutManager
frameFactory
- FrameFactory to register.alias
- Alias.public void registerFrameFactory(FrameFactory frameFactory)
LayoutManager
registerFrameFactory
in interface LayoutManager
frameFactory
- FrameFactory to register.public IFFrame createFrame(java.lang.String frameName)
createFrame
in interface LayoutManager
public void registerFFrameDialog(java.lang.String name, java.lang.Class clazz)
registerFFrameDialog
in interface LayoutManager
public IWindow getPropertiesWindow(Document doc)
DocumentManager
getPropertiesWindow
in interface DocumentManager
getPropertiesWindow
in class AbstractDocumentManager
public static void register()
public int getPriority()
AbstractDocumentManager
getPriority
in interface DocumentManager
getPriority
in class AbstractDocumentManager
public void setDefaultShowGrid(boolean showGrid)
showGrid
- public void setDefaultAdjustToGrid(boolean gridEnabled)
gridEnable
- public void setDefaultShowRulers(boolean showRules)
showRuler
- public boolean getDefaultShowGrid()
public boolean getDefaultAdjustToGrid()
public boolean getDefaultShowRulers()
public boolean getDefaultShowInitialPageConfigDialog()
public DynStruct getDefinition(java.lang.String className)
PersistenceFactory
getDefinition
in interface PersistenceFactory
className
- of a java Classprotected java.lang.Class getDocumentClass()
AbstractDocumentManager
getDocumentClass
in class AbstractDocumentManager
public boolean manages(java.lang.Object object)
PersistenceFactory
object
is managed by this factory.manages
in interface PersistenceFactory
public void registerLayoutMenuAction(java.lang.String name, java.lang.Class<? extends IContextMenuAction> clazz)
registerLayoutMenuAction
in interface LayoutManager
public IContextMenuAction[] createLayoutMenuActions(LayoutPanel layoutPanel)
createLayoutMenuActions
in interface LayoutManager