|
JHotDraw 7.1 | ||||||||
| 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 | |
|---|---|
static java.lang.String |
COPYRIGHT_PROPERTY
|
static java.lang.String |
NAME_PROPERTY
|
static java.lang.String |
VERSION_PROPERTY
|
static java.lang.String |
VIEW_CLASS_NAME_PROPERTY
|
static java.lang.String |
VIEW_CLASS_PROPERTY
|
| 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,
View p)
|
java.util.List<javax.swing.JMenu> |
createMenus(Application a,
View p)
Creates menus. |
java.util.List<javax.swing.JToolBar> |
createToolBars(Application app,
View p)
Creates toolbars for the application. |
View |
createView()
Creates a new view 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.String |
getVersion()
Returns the version of the application. |
java.lang.Class |
getViewClass()
|
void |
initApplication(Application a)
|
void |
initView(Application a,
View 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 |
setVersion(java.lang.String newValue)
|
void |
setViewClass(java.lang.Class newValue)
Use this method only, if setViewClassName() does not suit you. |
void |
setViewClassName(java.lang.String newValue)
Use this method for best application startup performance. |
| 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 |
| Field Detail |
|---|
public static final java.lang.String NAME_PROPERTY
public static final java.lang.String VERSION_PROPERTY
public static final java.lang.String COPYRIGHT_PROPERTY
public static final java.lang.String VIEW_CLASS_NAME_PROPERTY
public static final java.lang.String VIEW_CLASS_PROPERTY
| 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 setViewClassName(java.lang.String newValue)
public void setViewClass(java.lang.Class newValue)
public java.lang.Class getViewClass()
public View createView()
ApplicationModel
createView in interface ApplicationModel
public java.util.List<javax.swing.JToolBar> createToolBars(Application app,
View p)
createToolBars in interface ApplicationModelapp - Application.p - The view for which the toolbars need to be created, or null
if the toolbar needs to be shared with multiple views.
public java.util.List<javax.swing.JMenu> createMenus(Application a,
View p)
ApplicationModelDepending on the document interface of the application, this method may be invoked only once for the application, or for each opened view.
createMenus in interface ApplicationModela - Application.p - The view for which the toolbars need to be created, or null
if the toolbar needs to be shared with multiple views.
protected javax.swing.JMenu createEditMenu(Application a,
View p)
public void initView(Application a,
View p)
initView 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-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||