|
JHotDraw 7.0.6 | |||||||||
| 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 | |
|---|---|
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 a,
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 ApplicationModelpublic void setVersion(java.lang.String newValue)
public java.lang.String getVersion()
ApplicationModel
getVersion in interface ApplicationModelpublic void setCopyright(java.lang.String newValue)
public java.lang.String getCopyright()
ApplicationModel
getCopyright in interface ApplicationModelpublic 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 a,
Project p)
createToolBars in interface ApplicationModela - 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)
ApplicationModelDepending 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 ApplicationModela - 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 void initProject(Application a,
Project p)
initProject in interface ApplicationModelpublic void initApplication(Application a)
initApplication in interface ApplicationModelpublic 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-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||