org.jhotdraw.app
Class DefaultAppletApplication
java.lang.Object
org.jhotdraw.beans.AbstractBean
org.jhotdraw.app.AbstractApplication
org.jhotdraw.app.DefaultAppletApplication
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Application
public class DefaultAppletApplication
- extends AbstractApplication
Default Application that can be run as an Applet.
FIXME - To be implemented.
- Version:
- $Id: DefaultAppletApplication.java 604 2010-01-09 12:00:29Z rawcoder $
- Author:
- Werner Randelshofer
- See Also:
- Serialized Form
|
Constructor Summary |
DefaultAppletApplication(javax.swing.JApplet applet)
Creates a new instance of DefaultAppletApplication |
| Methods inherited from class org.jhotdraw.app.AbstractApplication |
add, addAction, addAction, addMenuItem, addPalette, addRecentURI, addWindow, basicCreateView, clearRecentURIs, configure, createContainer, createOpenRecentFileMenu, createView, destroy, dispose, getAction, getActionMap, getCopyright, getExportChooser, getImportChooser, getModel, getName, getOpenChooser, getRecentURIs, getSaveChooser, getVersion, initLabels, isEnabled, launch, maybeAddSeparator, remove, removePalette, removeWindow, setActionMap, setActiveView, setEnabled, setModel, start, stop, views |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
applet
private javax.swing.JApplet applet
view
private View view
DefaultAppletApplication
public DefaultAppletApplication(javax.swing.JApplet applet)
- Creates a new instance of DefaultAppletApplication
init
public void init()
- Description copied from interface:
Application
- Initializes the application.
configure() should have been invoked before the application
is inited. Alternatively an application can be configured using setter
methods.
- Specified by:
init in interface Application- Overrides:
init in class AbstractApplication
show
public void show(View v)
- Description copied from interface:
Application
- Shows a view.
hide
public void hide(View v)
- Description copied from interface:
Application
- Hides a view.
getActiveView
public View getActiveView()
- Description copied from class:
AbstractApplication
- Gets the active view.
- Specified by:
getActiveView in interface Application- Overrides:
getActiveView in class AbstractApplication
- Returns:
- The active view can be null.
isSharingToolsAmongViews
public boolean isSharingToolsAmongViews()
- Description copied from interface:
Application
- Returns true, if this application shares tools among multiple views.
getComponent
public java.awt.Component getComponent()
- Description copied from interface:
Application
- Returns the application component.
This may return null, if the application is not represented by a component
of its own on the user interface.
createViewActionMap
protected javax.swing.ActionMap createViewActionMap(View p)
- Specified by:
createViewActionMap in class AbstractApplication
createFileMenu
public javax.swing.JMenu createFileMenu(View v)
- Description copied from interface:
Application
- Creates a file menu for the specified view.
Returns null, if the menu is empty.
createEditMenu
public javax.swing.JMenu createEditMenu(View v)
- Description copied from interface:
Application
- Creates an edit menu for the specified view.
Returns null, if the menu is empty.
createViewMenu
public javax.swing.JMenu createViewMenu(View v)
- Description copied from interface:
Application
- Creates a view menu for the specified view.
Returns null, if the menu is empty.
createWindowMenu
public javax.swing.JMenu createWindowMenu(View v)
- Description copied from interface:
Application
- Creates a window menu for the specified view.
Returns null, if the menu is empty.
createHelpMenu
public javax.swing.JMenu createHelpMenu(View v)
- Description copied from interface:
Application
- Creates a help menu for the specified view.
Returns null, if the menu is empty.