|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.document.MDIToolkit
This class has utility functions for the mdi functionality. It has methods to switch to a certain mdi-container given some initial parameters. Also certain types of documents can be found by means of appropriate convenience methods.
| Method Summary | |
static javax.swing.JMenu |
createDocumentsMenu(MDIComponent mdi)
Creates a documents-menu containing an entry for each mdi component. |
static AttributeTableDocument |
findFirstAttributeDocument(java.util.List documents)
Finds a document of the wanted type or null if none is found. |
static LayoutToolDocument |
findFirstLayoutToolsDocument(java.util.List documents)
Finds a document of the wanted type or null if none is found. |
static NavigatorDocument |
findFirstNavigatorDocument(java.util.List documents)
Finds a document of the wanted type or null if none is found. |
static ObjectTreeDocument |
findFirstObjectTreeDocument(java.util.List documents)
Finds a document of the wanted type or null if none is found. |
static RepositoryDocument |
findFirstRepositoryDocument(java.util.List documents)
Finds a document of the wanted type or null if none is found. |
static MDIComponent |
getSDIComponent(ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu,
Command closeDocumentCommand)
Returns a SDI mdi component. |
static MDIComponent |
getTabbedMDIComponent(ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu,
Command closeDocumentCommand)
Deprecated. Use initTabbedMDIComponent instead! |
static MDIComponent |
initSDIComponent(PanelMDIComponent mdi,
ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu)
Creates an instance of MDIComponent by creating a SingleDocumentInterface based control. |
static void |
initTabbedMDIComponent(ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu,
SwingMDIComponent mdi)
Returns an instance of MDIComponent based on the given ApplicationFrame. |
static MDIComponent |
setFramedMDIStyle(java.util.List documents,
java.awt.Container panel,
Observable observable,
MenuTool windowmenu,
javax.swing.JToolBar toolbar,
DocumentListener documentlistener,
UIManager uimanager,
DocumentDropContext opener)
This method takes a list of mdi-documents and builds a new Framed MDI styled container and adds all the documents that mdi-container. |
static MDIComponent |
setTabbedMDIStyle(java.util.List documents,
java.awt.Container panel,
Observable observable,
MenuTool windowmenu,
javax.swing.JToolBar toolbar,
DocumentListener documentlistener,
Command closeDocumentCommand,
UIManager uimanager,
DocumentDropContext opener)
This method takes a list of mdi-documents and builds a new Framed MDI styled container and adds all the documents that mdi-container. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final MDIComponent setFramedMDIStyle(java.util.List documents,
java.awt.Container panel,
Observable observable,
MenuTool windowmenu,
javax.swing.JToolBar toolbar,
DocumentListener documentlistener,
UIManager uimanager,
DocumentDropContext opener)
documents - the initial list of document to display in the
mdi-container.panel - the awt container that holds the mdi component in
its center.observable - the observable that updates the mdi-components
upon document change.windowmenu - a reference to a windowmenu class, which is kept up to date
concerning the list of active windows.toolbar - toolbar reference.documentlistener - document listener to set.uimanager - ui-manager reference.opener - the document opener reference, may be null.
MDIComponent.
public static final MDIComponent setTabbedMDIStyle(java.util.List documents,
java.awt.Container panel,
Observable observable,
MenuTool windowmenu,
javax.swing.JToolBar toolbar,
DocumentListener documentlistener,
Command closeDocumentCommand,
UIManager uimanager,
DocumentDropContext opener)
documents - the initial list of document to display in the
mdi-container.panel - the awt container that holds the mdi component in
its center.observable - the observable that updates the mdi-components
upon document change.windowmenu - a reference to a windowmenu class, which is kept up
to date concerning the list of active windows.toolbar - the toolbar referencedocumentlistener - a documentlistener to use.closeDocumentCommand - command that closes documents.uimanager - ui-manager reference.opener - reference to a document opener (optional).
public static final MDIComponent getTabbedMDIComponent(ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu,
Command closeDocumentCommand)
applicationFrame - The ApplicationFrame for which you want to
receive the MDIComponent.targetContainer - The target container to put all components into.toolMenu - the ToolMenu to add the ToolContainers too.closeDocumentCommand - the command to be used to enable closing of
documents.
public static final void initTabbedMDIComponent(ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu,
SwingMDIComponent mdi)
applicationFrame - The ApplicationFrame for which you want to
receive the MDIComponent.targetContainer - The target container to put all components into.toolMenu - the ToolMenu to add the ToolContainers too.mdi - The TabbedMDIComponent to initialize
public static final MDIComponent getSDIComponent(ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu,
Command closeDocumentCommand)
applicationFrame - the active ApplicationFrame.targetContainer - the target Container.toolMenu - the tool menu reference.closeDocumentCommand - the close document Command.SwingGraphPanel
public static final MDIComponent initSDIComponent(PanelMDIComponent mdi,
ApplicationFrame applicationFrame,
java.awt.Container targetContainer,
MenuTool toolMenu)
mdi - the target MDI instance to configure.applicationFrame - the enclosing application.targetContainer - the AWT container to add all the components to.toolMenu - a ToolMenu to initialize while creating the component.
public static javax.swing.JMenu createDocumentsMenu(MDIComponent mdi)
mdi - the mdicomponent to create a documents-menu for.
public static NavigatorDocument findFirstNavigatorDocument(java.util.List documents)
documents - the list of documents to search.
public static AttributeTableDocument findFirstAttributeDocument(java.util.List documents)
documents - the list of documents to search.
public static RepositoryDocument findFirstRepositoryDocument(java.util.List documents)
documents - the list of documents to search.
public static LayoutToolDocument findFirstLayoutToolsDocument(java.util.List documents)
documents - the list of documents to search.
public static ObjectTreeDocument findFirstObjectTreeDocument(java.util.List documents)
documents - the list of documents to search.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||