Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.multishow
Class MultiShowApplicationModel

java.lang.Object
  extended by org.jhotdraw.beans.AbstractBean
      extended by org.jhotdraw.app.AbstractApplicationModel
          extended by org.jhotdraw.app.EmptyApplicationModel
              extended by ch.randelshofer.multishow.MultiShowApplicationModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.jhotdraw.app.ApplicationModel

public class MultiShowApplicationModel
extends org.jhotdraw.app.EmptyApplicationModel

MultiShowApplicationModel.

Version:
1.0 2009-12-20 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.app.AbstractApplicationModel
allowMultipleViewsForURI, copyright, COPYRIGHT_PROPERTY, name, NAME_PROPERTY, openLastURIOnLaunch, version, VERSION_PROPERTY, VIEW_CLASS_NAME_PROPERTY, VIEW_CLASS_PROPERTY, viewClass, viewClassName
 
Fields inherited from class org.jhotdraw.beans.AbstractBean
propertySupport
 
Constructor Summary
MultiShowApplicationModel()
           
 
Method Summary
 javax.swing.ActionMap createActionMap(org.jhotdraw.app.Application a, org.jhotdraw.app.View v)
          Returns an empty ActionMap.
 org.jhotdraw.gui.JFileURIChooser createOpenChooser(org.jhotdraw.app.Application a, org.jhotdraw.app.View v)
          Creates an open chooser.
 void destroyApplication(org.jhotdraw.app.Application a)
          This method is empty.
 PropertyModel getApplicationProperties()
           
 org.jhotdraw.app.MenuBuilder getMenuBuilder()
          Returns the abstract factory for building application menus.
 java.lang.String getPropertiesFileName()
          Returns the properties file name.
 ViewRegistry getRegistry()
           
 PropertyModel getViewProperties()
           
 void initApplication(org.jhotdraw.app.Application a)
          This method is empty.
 void loadProperties(java.lang.String propertiesFile)
          Loads the properties.
 void saveProperties(java.lang.String propertiesFile)
           
 
Methods inherited from class org.jhotdraw.app.EmptyApplicationModel
createToolBars
 
Methods inherited from class org.jhotdraw.app.AbstractApplicationModel
createExportChooser, createImportChooser, createOpenDirectoryChooser, createSaveChooser, createView, destroyView, getCopyright, getName, getVersion, getViewClass, initView, isAllowMultipleViewsPerURI, isOpenLastURIOnLaunch, setAllowMultipleViewsForURI, setCopyright, setName, setOpenLastURIOnLaunch, setVersion, setViewClass, setViewClassName
 
Methods inherited from class org.jhotdraw.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiShowApplicationModel

public MultiShowApplicationModel()
Method Detail

createActionMap

public javax.swing.ActionMap createActionMap(org.jhotdraw.app.Application a,
                                             org.jhotdraw.app.View v)
Description copied from class: org.jhotdraw.app.EmptyApplicationModel
Returns an empty ActionMap.

Specified by:
createActionMap in interface org.jhotdraw.app.ApplicationModel
Overrides:
createActionMap in class org.jhotdraw.app.EmptyApplicationModel
Parameters:
a - Application.
v - The view for which the toolbars need to be created, or null if the actions are shared by multiple views.

getMenuBuilder

public org.jhotdraw.app.MenuBuilder getMenuBuilder()
Description copied from interface: org.jhotdraw.app.ApplicationModel
Returns the abstract factory for building application menus.

Specified by:
getMenuBuilder in interface org.jhotdraw.app.ApplicationModel
Overrides:
getMenuBuilder in class org.jhotdraw.app.EmptyApplicationModel

getRegistry

public ViewRegistry getRegistry()

getApplicationProperties

public PropertyModel getApplicationProperties()

getViewProperties

public PropertyModel getViewProperties()

createOpenChooser

public org.jhotdraw.gui.JFileURIChooser createOpenChooser(org.jhotdraw.app.Application a,
                                                          org.jhotdraw.app.View v)
Description copied from interface: org.jhotdraw.app.ApplicationModel
Creates an open chooser.

Specified by:
createOpenChooser in interface org.jhotdraw.app.ApplicationModel
Overrides:
createOpenChooser in class org.jhotdraw.app.AbstractApplicationModel
Parameters:
a - Application.
v - The view for which the chooser needs to be created, or null if the chooser is shared by multiple views.

loadProperties

public void loadProperties(java.lang.String propertiesFile)
                    throws java.io.IOException
Loads the properties.

Throws:
java.io.IOException

saveProperties

public void saveProperties(java.lang.String propertiesFile)
                    throws java.io.IOException
Throws:
java.io.IOException

initApplication

public void initApplication(org.jhotdraw.app.Application a)
Description copied from class: org.jhotdraw.app.AbstractApplicationModel
This method is empty.

Specified by:
initApplication in interface org.jhotdraw.app.ApplicationModel
Overrides:
initApplication in class org.jhotdraw.app.AbstractApplicationModel

destroyApplication

public void destroyApplication(org.jhotdraw.app.Application a)
Description copied from class: org.jhotdraw.app.AbstractApplicationModel
This method is empty.

Specified by:
destroyApplication in interface org.jhotdraw.app.ApplicationModel
Overrides:
destroyApplication in class org.jhotdraw.app.AbstractApplicationModel

getPropertiesFileName

public java.lang.String getPropertiesFileName()
Returns the properties file name.


Copyright 2012-02-25 Werner Randelshofer