public class EmptyApplicationModel extends AbstractApplicationModel
ApplicationModel
which neither creates Action
s,
nor overrides the menu bars, nor creates tool bars.
The createActionMap
method of this model returns an empty ActionMap.
copyright, COPYRIGHT_PROPERTY, name, NAME_PROPERTY, version, VERSION_PROPERTY, VIEW_CLASS_NAME_PROPERTY, VIEW_CLASS_PROPERTY, viewClass, viewClassName
propertySupport
Constructor and Description |
---|
EmptyApplicationModel() |
Modifier and Type | Method and Description |
---|---|
javax.swing.ActionMap |
createActionMap(Application a,
View v)
Returns an empty ActionMap.
|
java.util.List<javax.swing.JToolBar> |
createToolBars(Application app,
View v)
Returns an empty unmodifiable list.
|
MenuBuilder |
getMenuBuilder()
Returns the abstract factory for building application menus.
|
createExportChooser, createImportChooser, createOpenChooser, createOpenDirectoryChooser, createSaveChooser, createView, destroyApplication, destroyView, getCopyright, getName, getVersion, getViewClass, initApplication, initView, setCopyright, setName, setVersion, setViewClass, setViewClassName
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
public javax.swing.ActionMap createActionMap(Application a, View v)
a
- Application.v
- The view for which the toolbars need to be created, or null
if the actions are shared by multiple views.public java.util.List<javax.swing.JToolBar> createToolBars(Application app, View v)
createToolBars
in interface ApplicationModel
createToolBars
in class AbstractApplicationModel
app
- Application.v
- The view for which the toolbars need to be created, or null
if the toolbars are shared by multiple views.public MenuBuilder getMenuBuilder()
ApplicationModel