|
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.DefaultApplicationModel
public class DefaultApplicationModel
DefaultApplicationModel.
Field Summary |
---|
Fields inherited from class org.jhotdraw.beans.AbstractBean |
---|
propertySupport |
Constructor Summary | |
---|---|
DefaultApplicationModel()
Creates a new instance. |
Method Summary | |
---|---|
protected javax.swing.JMenu |
createEditMenu(Application a,
Project p)
|
java.util.List<javax.swing.JMenu> |
createMenus(Application a,
Project p)
Creates menus. |
Project |
createProject()
Creates a new project for the application. |
java.util.List<javax.swing.JToolBar> |
createToolBars(Application app,
Project p)
Creates toolbars for the application. |
javax.swing.Action |
getAction(java.lang.String id)
Returns the action with the specified id. |
java.lang.String |
getCopyright()
Returns the copyright of the application. |
java.lang.String |
getName()
Returns the name of the application. |
java.lang.Class |
getProjectClass()
|
java.lang.String |
getVersion()
Returns the version of the application. |
void |
initApplication(Application a)
|
void |
initProject(Application a,
Project p)
|
void |
putAction(java.lang.String id,
javax.swing.Action action)
Puts an action with the specified id. |
void |
setCopyright(java.lang.String newValue)
|
void |
setName(java.lang.String newValue)
|
void |
setProjectClass(java.lang.Class newValue)
Use this method only, if setProjectClassName() does not suit you. |
void |
setProjectClassName(java.lang.String newValue)
Use this method for best application startup performance. |
void |
setVersion(java.lang.String newValue)
|
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 |
Constructor Detail |
---|
public DefaultApplicationModel()
Method Detail |
---|
public void setName(java.lang.String newValue)
public java.lang.String getName()
ApplicationModel
getName
in interface ApplicationModel
public void setVersion(java.lang.String newValue)
public java.lang.String getVersion()
ApplicationModel
getVersion
in interface ApplicationModel
public void setCopyright(java.lang.String newValue)
public java.lang.String getCopyright()
ApplicationModel
getCopyright
in interface ApplicationModel
public void setProjectClassName(java.lang.String newValue)
public void setProjectClass(java.lang.Class newValue)
public java.lang.Class getProjectClass()
public Project createProject()
ApplicationModel
createProject
in interface ApplicationModel
public java.util.List<javax.swing.JToolBar> createToolBars(Application app, Project p)
createToolBars
in interface ApplicationModel
app
- Application.p
- The project for which the toolbars need to be created, or null
if the toolbar needs to be shared with multiple projects.public java.util.List<javax.swing.JMenu> createMenus(Application a, Project p)
ApplicationModel
Depending on the document interface of the application, this method may be invoked only once for the application, or for each opened project.
createMenus
in interface ApplicationModel
a
- Application.p
- The project for which the toolbars need to be created, or null
if the toolbar needs to be shared with multiple projects.protected javax.swing.JMenu createEditMenu(Application a, Project p)
public void initProject(Application a, Project p)
initProject
in interface ApplicationModel
public void initApplication(Application a)
initApplication
in interface ApplicationModel
public javax.swing.Action getAction(java.lang.String id)
getAction
in interface ApplicationModel
public void putAction(java.lang.String id, javax.swing.Action action)
putAction
in interface ApplicationModel
|
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 |