public class DefaultLayoutManager extends AbstractDocumentManager implements LayoutManager
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_LAYOUT_DOCUMENT_DEFINITION_NAME |
TEMPLATE_FILE_POINTEXT, TYPENAME
NOTIFY_AFTER_CREATEDOCUMENT, NOTIFY_AFTER_GETMAINWINDOW, NOTIFY_AFTER_GETPROPERTIESWINDOW
Constructor and Description |
---|
DefaultLayoutManager() |
Modifier and Type | Method and Description |
---|---|
AbstractDocument |
createDocument()
Create a new ProjectDocument.
|
IFFrameDialog |
createFFrameDialog(IFFrame fframe,
LayoutPanel layoutPanel) |
IFFrameDialog |
createFFrameDialog(IFFrame fframe,
LayoutPanel layoutPanel,
AffineTransform affineTransform) |
IFFrame |
createFrame(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(String className)
Returns the associated definition to the java class name
|
protected Class |
getDocumentClass()
Return the class or interface for the documents managed by this factory.
|
ImageIcon |
getIcon()
Returns image of button.
|
ImageIcon |
getIconSelected()
Returns image of selected button.
|
IWindow |
getMainWindow(Document doc,
WindowLayout layout)
Return the main window asociated to the document.
|
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.
|
String |
getTitle()
Returns the name of ProjectDocument.
|
String |
getTypeName()
Returns the name of registration in the point of extension.
|
boolean |
manages(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(String name,
Class clazz) |
void |
registerFrameFactory(FrameFactory frameFactory)
Registers in the points of extension the Factory
|
void |
registerFrameFactory(FrameFactory frameFactory,
String alias)
Registers in the points of extension the Factory with alias.
|
void |
registerLayoutMenuAction(String name,
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, createDocumentWindow, createFromState, deleteObserver, deleteObservers, existName, getDefinitions, getDomainName, getDomainURL, getMainComponent, getMainComponent, getMainWindow, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, notifyObservers, notifyObservers, registerMainComponent, saveToState, unregisterMainComponent, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDocumentByUser, createDocumentsByUser, existName, getMainComponent, getMainComponent, getMainWindow, registerMainComponent, unregisterMainComponent
create, create, create
createFromState, getDefinitions, getDomainName, getDomainURL, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, saveToState
addObserver, deleteObserver, deleteObservers
public static final String PERSISTENCE_LAYOUT_DOCUMENT_DEFINITION_NAME
public ImageIcon getIcon()
getIcon
in interface DocumentManager
getIcon
in class AbstractDocumentManager
public ImageIcon getIconSelected()
getIconSelected
in interface DocumentManager
getIconSelected
in class AbstractDocumentManager
public String getTypeName()
getTypeName
in interface DocumentManager
public String getTitle()
getTitle
in interface DocumentManager
getTitle
in class AbstractDocumentManager
public AbstractDocument createDocument()
DocumentManager
createDocument
in interface DocumentManager
public Class getMainWindowClass()
DocumentManager
getMainWindowClass
in interface DocumentManager
public IWindow getMainWindow(Document doc, WindowLayout layout)
DocumentManager
getMainWindow
in interface DocumentManager
getMainWindow
in class AbstractDocumentManager
public IFFrameDialog createFFrameDialog(IFFrame fframe, LayoutPanel layoutPanel, AffineTransform affineTransform)
createFFrameDialog
in interface LayoutManager
public IFFrameDialog createFFrameDialog(IFFrame fframe, LayoutPanel layoutPanel)
createFFrameDialog
in interface LayoutManager
public void registerFrameFactory(FrameFactory frameFactory, 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(String frameName)
createFrame
in interface LayoutManager
public void registerFFrameDialog(String name, 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(String className)
PersistenceFactory
getDefinition
in interface PersistenceFactory
className
- of a java Classprotected Class getDocumentClass()
AbstractDocumentManager
getDocumentClass
in class AbstractDocumentManager
public boolean manages(Object object)
PersistenceFactory
object
is managed by this factory.manages
in interface PersistenceFactory
public void registerLayoutMenuAction(String name, Class<? extends IContextMenuAction> clazz)
registerLayoutMenuAction
in interface LayoutManager
public IContextMenuAction[] createLayoutMenuActions(LayoutPanel layoutPanel)
createLayoutMenuActions
in interface LayoutManager