|
JHotDraw 7.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.beans.AbstractBean
org.jhotdraw.app.AbstractApplication
org.jhotdraw.app.DefaultSDIApplication
public class DefaultSDIApplication
A DefaultSDIApplication 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.app.AbstractApplication |
---|
labels |
Fields inherited from class org.jhotdraw.beans.AbstractBean |
---|
propertySupport |
Constructor Summary | |
---|---|
DefaultSDIApplication()
Creates a new instance. |
Method Summary | |
---|---|
void |
configure(java.lang.String[] args)
Configures the application using the provided arguments array. |
protected javax.swing.JMenu |
createFileMenu(Project p)
|
protected javax.swing.JMenu |
createHelpMenu(Project p)
|
protected javax.swing.JMenuBar |
createMenuBar(Project p,
java.util.List<javax.swing.Action> toolBarActions)
The project menu bar is displayed for a project. |
protected javax.swing.JMenu |
createViewMenu(Project p,
java.util.List<javax.swing.Action> toolBarActions)
|
void |
dispose(Project p)
This is a convenience method for removing a project and disposing it. |
java.awt.Component |
getComponent()
Returns the application component. |
Project |
getCurrentProject()
Returns the current project. |
void |
hide(Project p)
Hides a project. |
void |
init()
Initializes the application. |
protected void |
initApplicationActions()
|
protected void |
initLookAndFeel()
|
protected void |
initProjectActions(Project p)
|
boolean |
isSharingToolsAmongProjects()
Returns true, if this application shares tools among multiple projects. |
void |
launch(java.lang.String[] args)
Launches the application from the main method. |
void |
remove(Project p)
Removes a project from this application and removes it from the users view. |
void |
setCurrentProject(Project newValue)
|
void |
show(Project p)
Shows a project. |
protected java.awt.Component |
wrapProjectComponent(Project p)
Returns the project component. |
Methods inherited from class org.jhotdraw.app.AbstractApplication |
---|
add, addRecentFile, basicCreateProject, clearRecentFiles, createContainer, createProject, getCopyright, getModel, getName, getVersion, initLabels, isEnabled, projects, recentFiles, setEnabled, setModel, start, stop |
Methods inherited from class org.jhotdraw.beans.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jhotdraw.app.Application |
---|
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public DefaultSDIApplication()
Method Detail |
---|
public void launch(java.lang.String[] args)
Application
launch
in interface Application
launch
in class AbstractApplication
public void init()
Application
configure()
should have been invoked before the application
is inited. Alternatively an application can be configured using setter
methods.
init
in interface Application
init
in class AbstractApplication
public void remove(Project p)
Application
remove
in interface Application
remove
in class AbstractApplication
public void configure(java.lang.String[] args)
Application
configure
in interface Application
configure
in class AbstractApplication
protected void initLookAndFeel()
protected void initApplicationActions()
protected void initProjectActions(Project p)
initProjectActions
in class AbstractApplication
public void show(Project p)
Application
protected java.awt.Component wrapProjectComponent(Project p)
public void hide(Project p)
Application
public void dispose(Project p)
Application
dispose
in interface Application
dispose
in class AbstractApplication
public Project getCurrentProject()
Application
This is a bound property.
public void setCurrentProject(Project newValue)
protected javax.swing.JMenuBar createMenuBar(Project p, java.util.List<javax.swing.Action> toolBarActions)
protected javax.swing.JMenu createFileMenu(Project p)
public boolean isSharingToolsAmongProjects()
Application
public java.awt.Component getComponent()
Application
protected javax.swing.JMenu createViewMenu(Project p, java.util.List<javax.swing.Action> toolBarActions)
protected javax.swing.JMenu createHelpMenu(Project p)
|
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 |