|
JHotDraw 7.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapplication.Application
org.jhotdraw.application.AbstractDocumentOrientedApplication
org.jhotdraw.application.AbstractMDIApplication
public abstract class AbstractMDIApplication
A AbstractMDIApplication can handle the life cycle of multiple document windows each being presented in a JInternalFrame of its own. A parent JFrame provides all the functionality needed to work with documents, such as a menu bar, tool bars and palette windows.
Field Summary |
---|
Fields inherited from class org.jhotdraw.application.AbstractDocumentOrientedApplication |
---|
PROP_CURRENT_VIEW, PROP_VIEW_COUNT |
Constructor Summary | |
---|---|
AbstractMDIApplication()
Creates a new instance. |
Method Summary | |
---|---|
void |
add(DocumentView v)
Adds a view to this application. |
protected javax.swing.ActionMap |
createActionMap()
Creates an action map for actions which haven not been defined using the |
protected javax.swing.JMenu |
createFileMenu(DocumentView p)
Creates the file menu. |
protected javax.swing.JMenu |
createHelpMenu(DocumentView p)
Creates the help menu. |
protected javax.swing.JMenu |
createWindowMenu(DocumentView p)
Creates the window menu. |
java.awt.Component |
getComponent()
Returns the application component. |
DocumentView |
getCurrentView()
Returns the current view. |
protected MDIDesktopPane |
getDesktopPane()
|
void |
hide(DocumentView p)
Hides a view. |
static void |
initAWT(java.lang.String[] args)
|
void |
initMainFrame()
Initializes the main frame of the application - if there is one. |
boolean |
isEditorShared()
Returns true, if this application shares an editor among multiple views. |
void |
setCurrentView(DocumentView newValue)
|
void |
show(DocumentView p)
Shows a view. |
protected java.awt.Component |
wrapDesktopPane(java.awt.Component c,
java.util.LinkedList<javax.swing.Action> toolBarActions)
Returns the wrapped desktop pane. |
Methods inherited from class org.jhotdraw.application.AbstractDocumentOrientedApplication |
---|
addPalette, addRecentFile, clearRecentFiles, createEditMenu, createMenuBar, createMenus, createToolBars, createView, createViewMenu, destroyView, getAction, getFrameworkResourceMap, getResourceMap, getViewClass, getViews, initActionMap, initDefaults, initialize, initLookAndFeel, initRecentFiles, initView, isEnabled, launch, recentFiles, remove, removePalette, setEnabled, shutdown, startup, updateName, updateOpenRecentMenu |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jhotdraw.application.DocumentOrientedApplication |
---|
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public AbstractMDIApplication()
Method Detail |
---|
protected javax.swing.ActionMap createActionMap()
AbstractDocumentOrientedApplication
createActionMap
in class AbstractDocumentOrientedApplication
protected MDIDesktopPane getDesktopPane()
public void initMainFrame()
AbstractDocumentOrientedApplication
initMainFrame
in class AbstractDocumentOrientedApplication
public static void initAWT(java.lang.String[] args)
public void add(DocumentView v)
AbstractDocumentOrientedApplication
init
on the view.
Fires a "viewCount" property change event.
Invokes method setApplication(this) on the view object.
add
in interface DocumentOrientedApplication
add
in class AbstractDocumentOrientedApplication
public void show(DocumentView p)
AbstractDocumentOrientedApplication
start
on the view.
show
in interface DocumentOrientedApplication
show
in class AbstractDocumentOrientedApplication
public void hide(DocumentView p)
AbstractDocumentOrientedApplication
stop
on the view.
hide
in interface DocumentOrientedApplication
hide
in class AbstractDocumentOrientedApplication
public DocumentView getCurrentView()
AbstractDocumentOrientedApplication
This is a bound property.
getCurrentView
in interface DocumentOrientedApplication
getCurrentView
in class AbstractDocumentOrientedApplication
public void setCurrentView(DocumentView newValue)
public boolean isEditorShared()
AbstractDocumentOrientedApplication
isEditorShared
in interface DocumentOrientedApplication
isEditorShared
in class AbstractDocumentOrientedApplication
public java.awt.Component getComponent()
DocumentOrientedApplication
protected java.awt.Component wrapDesktopPane(java.awt.Component c, java.util.LinkedList<javax.swing.Action> toolBarActions)
protected javax.swing.JMenu createFileMenu(DocumentView p)
AbstractDocumentOrientedApplication
createFileMenu
in class AbstractDocumentOrientedApplication
protected javax.swing.JMenu createWindowMenu(DocumentView p)
AbstractDocumentOrientedApplication
createWindowMenu
in class AbstractDocumentOrientedApplication
protected javax.swing.JMenu createHelpMenu(DocumentView p)
AbstractDocumentOrientedApplication
createHelpMenu
in class AbstractDocumentOrientedApplication
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |