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, TYPENAMENOTIFY_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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDocumentByUser, createDocumentsByUser, createDocumentsByUser, existName, getClassOfDocument, getMainComponent, getMainComponent, getMainWindow, hasMainWindow, registerMainComponent, unregisterMainComponentcreate, create, createcreateFromState, getDefinitions, getDomainName, getDomainURL, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, saveToStateaddObserver, deleteObserver, deleteObserversgetExtendedProperties, getProperty, setPropertypublic static final java.lang.String PERSISTENCE_LAYOUT_DOCUMENT_DEFINITION_NAME
public javax.swing.ImageIcon getIcon()
getIcon in interface DocumentManagergetIcon in class AbstractDocumentManagerpublic javax.swing.ImageIcon getIconSelected()
getIconSelected in interface DocumentManagergetIconSelected in class AbstractDocumentManagerpublic java.lang.String getTypeName()
getTypeName in interface DocumentManagerpublic java.lang.String getTitle()
getTitle in interface DocumentManagergetTitle in class AbstractDocumentManagerpublic AbstractDocument createDocument()
DocumentManagercreateDocument in interface DocumentManagerpublic java.lang.Class getMainWindowClass()
DocumentManagergetMainWindowClass in interface DocumentManagerpublic IWindow getMainWindow(Document doc, WindowLayout layout)
DocumentManagergetMainWindow in interface DocumentManagergetMainWindow in class AbstractDocumentManagerpublic IFFramePanel createFFrameDialog(IFFrame fframe, LayoutPanel layoutPanel, java.awt.geom.AffineTransform affineTransform)
createFFrameDialog in interface LayoutManagerpublic IFFramePanel createFFrameDialog(IFFrame fframe, LayoutPanel layoutPanel)
createFFrameDialog in interface LayoutManagerpublic void registerFrameFactory(FrameFactory frameFactory, java.lang.String alias)
LayoutManagerregisterFrameFactory in interface LayoutManagerframeFactory - FrameFactory to register.alias - Alias.public void registerFrameFactory(FrameFactory frameFactory)
LayoutManagerregisterFrameFactory in interface LayoutManagerframeFactory - FrameFactory to register.public IFFrame createFrame(java.lang.String frameName)
createFrame in interface LayoutManagerpublic void registerFFrameDialog(java.lang.String name,
java.lang.Class clazz)
registerFFrameDialog in interface LayoutManagerpublic IWindow getPropertiesWindow(Document doc)
DocumentManagergetPropertiesWindow in interface DocumentManagergetPropertiesWindow in class AbstractDocumentManagerpublic static void register()
public int getPriority()
AbstractDocumentManagergetPriority in interface DocumentManagergetPriority in class AbstractDocumentManagerpublic 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)
PersistenceFactorygetDefinition in interface PersistenceFactoryclassName - of a java Classprotected java.lang.Class getDocumentClass()
AbstractDocumentManagergetDocumentClass in class AbstractDocumentManagerpublic boolean manages(java.lang.Object object)
PersistenceFactoryobject is managed by this factory.manages in interface PersistenceFactorypublic void registerLayoutMenuAction(java.lang.String name,
java.lang.Class<? extends IContextMenuAction> clazz)
registerLayoutMenuAction in interface LayoutManagerpublic IContextMenuAction[] createLayoutMenuActions(LayoutPanel layoutPanel)
createLayoutMenuActions in interface LayoutManager