public class AppletApplication extends AbstractApplication
AppletApplication
handles the lifecycle of a single View
inside of a Java Applet.
labels, model, VIEW_COUNT_PROPERTY
propertySupport
ACTIVE_VIEW_PROPERTY, RECENT_URIS_PROPERTY
Constructor and Description |
---|
AppletApplication(javax.swing.JApplet applet)
Creates a new instance of AppletApplication
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenu |
createEditMenu(View v)
Creates an edit menu for the specified view or for the entire application.
|
javax.swing.JMenu |
createFileMenu(View v)
Creates a file menu for the specified view or for the entire application.
|
javax.swing.JMenu |
createHelpMenu(View v)
Creates a help menu for the specified view of for the entire application.
|
protected javax.swing.ActionMap |
createViewActionMap(View p) |
javax.swing.JMenu |
createViewMenu(View v)
Creates a view menu for the specified view or for the entire application.
|
javax.swing.JMenu |
createWindowMenu(View v)
Creates a window menu for the specified view or for the entire application.
|
View |
getActiveView()
Gets the active view.
|
java.awt.Component |
getComponent()
Returns the application component.
|
void |
hide(View v)
Hides a view.
|
void |
init()
Initializes the application.
|
boolean |
isSharingToolsAmongViews()
Returns true, if this application shares tools among multiple views.
|
void |
show(View v)
Shows a view.
|
add, addAction, addAction, addMenuItem, addPalette, addRecentURI, addWindow, basicCreateView, clearRecentURIs, configure, createContainer, createOpenRecentFileMenu, createView, destroy, dispose, getAction, getActionMap, getCopyright, getExportChooser, getImportChooser, getModel, getName, getOpenChooser, getOpenURIsFromMainArgs, getRecentURIs, getSaveChooser, getVersion, initLabels, isEnabled, launch, maybeAddSeparator, remove, removePalette, removeWindow, setActionMap, setActiveView, setEnabled, setModel, start, stop, views
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public AppletApplication(javax.swing.JApplet applet)
public void init()
Application
configure()
should have been invoked before the application
is inited. Alternatively an application can be configured using setter
methods.init
in interface Application
init
in class AbstractApplication
public void show(View v)
Application
public void hide(View v)
Application
public View getActiveView()
AbstractApplication
getActiveView
in interface Application
getActiveView
in class AbstractApplication
public boolean isSharingToolsAmongViews()
Application
public java.awt.Component getComponent()
Application
protected javax.swing.ActionMap createViewActionMap(View p)
createViewActionMap
in class AbstractApplication
public javax.swing.JMenu createFileMenu(View v)
Application
v
- A view or null.public javax.swing.JMenu createEditMenu(View v)
Application
v
- A view or null.public javax.swing.JMenu createViewMenu(View v)
Application
v
- A view or null.public javax.swing.JMenu createWindowMenu(View v)
Application
v
- A view or null.public javax.swing.JMenu createHelpMenu(View v)
Application
v
- A view or null.