|
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.AbstractSDIApplication
public abstract class AbstractSDIApplication
A AbstractSDIApplication can handle the life cycle of a single document window being presented in a JFrame. The JFrame provides all the functionality needed to work with the document, 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 | |
---|---|
AbstractSDIApplication()
|
Method Summary | |
---|---|
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 |
createViewMenu(DocumentView p,
java.util.List<javax.swing.Action> toolBarActions)
|
java.awt.Component |
getComponent()
Returns the application component. |
DocumentView |
getCurrentView()
Returns the current view. |
void |
hide(DocumentView p)
Hides a view. |
static void |
initAWT(java.lang.String[] args)
|
protected void |
initLookAndFeel()
Initializes the look and feel of the application. |
boolean |
isEditorShared()
Returns true, if this application shares an editor among multiple views. |
void |
remove(DocumentView p)
Removes a view from this application. |
void |
setCurrentView(DocumentView newValue)
|
void |
show(DocumentView p)
Shows a view. |
protected java.awt.Component |
wrapProjectComponent(DocumentView p)
Returns the documentView component. |
Methods inherited from class org.jhotdraw.application.AbstractDocumentOrientedApplication |
---|
add, addPalette, addRecentFile, clearRecentFiles, createEditMenu, createMenuBar, createMenus, createToolBars, createView, createViewMenu, createWindowMenu, destroyView, getAction, getFrameworkResourceMap, getResourceMap, getViewClass, getViews, initActionMap, initDefaults, initialize, initMainFrame, initRecentFiles, initView, isEnabled, launch, recentFiles, 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 AbstractSDIApplication()
Method Detail |
---|
public void remove(DocumentView p)
AbstractDocumentOrientedApplication
destroy
on the view.
Fires a "documentCount" property change event.
Invokes method setApplication(null) on the view object.
remove
in interface DocumentOrientedApplication
remove
in class AbstractDocumentOrientedApplication
public static void initAWT(java.lang.String[] args)
protected void initLookAndFeel()
AbstractDocumentOrientedApplication
initDefaults
.
initLookAndFeel
in class AbstractDocumentOrientedApplication
protected javax.swing.ActionMap createActionMap()
AbstractDocumentOrientedApplication
createActionMap
in class AbstractDocumentOrientedApplication
public void show(DocumentView p)
AbstractDocumentOrientedApplication
start
on the view.
show
in interface DocumentOrientedApplication
show
in class AbstractDocumentOrientedApplication
protected java.awt.Component wrapProjectComponent(DocumentView p)
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)
protected javax.swing.JMenu createFileMenu(DocumentView p)
AbstractDocumentOrientedApplication
createFileMenu
in class AbstractDocumentOrientedApplication
public boolean isEditorShared()
AbstractDocumentOrientedApplication
isEditorShared
in interface DocumentOrientedApplication
isEditorShared
in class AbstractDocumentOrientedApplication
public java.awt.Component getComponent()
DocumentOrientedApplication
protected javax.swing.JMenu createViewMenu(DocumentView p, java.util.List<javax.swing.Action> toolBarActions)
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 |