public class AppletApplication extends AbstractApplication
AppletApplication handles the lifecycle of a single View
inside of a Java Applet.
labels, model, VIEW_COUNT_PROPERTYpropertySupportACTIVE_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, viewsaddPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, removePropertyChangeListenerpublic AppletApplication(javax.swing.JApplet applet)
public void init()
Applicationconfigure() should have been invoked before the application
is inited. Alternatively an application can be configured using setter
methods.init in interface Applicationinit in class AbstractApplicationpublic void show(View v)
Applicationpublic void hide(View v)
Applicationpublic View getActiveView()
AbstractApplicationgetActiveView in interface ApplicationgetActiveView in class AbstractApplicationpublic boolean isSharingToolsAmongViews()
Applicationpublic java.awt.Component getComponent()
Applicationprotected javax.swing.ActionMap createViewActionMap(View p)
createViewActionMap in class AbstractApplicationpublic javax.swing.JMenu createFileMenu(View v)
Applicationv - A view or null.public javax.swing.JMenu createEditMenu(View v)
Applicationv - A view or null.public javax.swing.JMenu createViewMenu(View v)
Applicationv - A view or null.public javax.swing.JMenu createWindowMenu(View v)
Applicationv - A view or null.public javax.swing.JMenu createHelpMenu(View v)
Applicationv - A view or null.