org.jhotdraw.app
Class AppletApplication
- java.lang.Object
-
- org.jhotdraw.beans.AbstractBean
-
- org.jhotdraw.app.AbstractApplication
-
- org.jhotdraw.app.AppletApplication
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Application
public class AppletApplication extends AbstractApplication
AppletApplicationhandles the lifecycle of a singleViewinside of a Java Applet.FIXME - To be implemented. - See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jhotdraw.app.AbstractApplication
VIEW_COUNT_PROPERTY
-
Fields inherited from interface org.jhotdraw.app.Application
ACTIVE_VIEW_PROPERTY, RECENT_URIS_PROPERTY
-
-
Constructor Summary
Constructors Constructor and Description AppletApplication(javax.swing.JApplet applet)Creates a new instance of AppletApplication
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.swing.JMenucreateEditMenu(View v)Creates an edit menu for the specified view or for the entire application.javax.swing.JMenucreateFileMenu(View v)Creates a file menu for the specified view or for the entire application.javax.swing.JMenucreateHelpMenu(View v)Creates a help menu for the specified view of for the entire application.javax.swing.JMenucreateViewMenu(View v)Creates a view menu for the specified view or for the entire application.javax.swing.JMenucreateWindowMenu(View v)Creates a window menu for the specified view or for the entire application.ViewgetActiveView()Gets the active view.java.awt.ComponentgetComponent()Returns the application component.voidhide(View v)Hides a view.voidinit()Initializes the application.booleanisSharingToolsAmongViews()Returns true, if this application shares tools among multiple views.voidshow(View v)Shows a view.-
Methods inherited from class org.jhotdraw.app.AbstractApplication
add, addPalette, addRecentURI, addWindow, clearRecentURIs, configure, createContainer, createView, destroy, dispose, getActionMap, getCopyright, getExportChooser, getImportChooser, getModel, getName, getOpenChooser, getRecentURIs, getSaveChooser, getVersion, isEnabled, launch, remove, removePalette, removeWindow, setActionMap, setActiveView, setEnabled, setModel, start, stop, views
-
Methods inherited from class org.jhotdraw.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, clone, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jhotdraw.app.Application
addPropertyChangeListener, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
AppletApplication
public AppletApplication(javax.swing.JApplet applet)
Creates a new instance of AppletApplication
-
-
Method Detail
-
init
public void init()
Description copied from interface:ApplicationInitializes the application.configure()should have been invoked before the application is inited. Alternatively an application can be configured using setter methods.- Specified by:
initin interfaceApplication- Overrides:
initin classAbstractApplication
-
show
public void show(View v)
Description copied from interface:ApplicationShows a view.
-
hide
public void hide(View v)
Description copied from interface:ApplicationHides a view.
-
getActiveView
public View getActiveView()
Description copied from class:AbstractApplicationGets the active view.- Specified by:
getActiveViewin interfaceApplication- Overrides:
getActiveViewin classAbstractApplication- Returns:
- The active view can be null.
-
isSharingToolsAmongViews
public boolean isSharingToolsAmongViews()
Description copied from interface:ApplicationReturns true, if this application shares tools among multiple views.
-
getComponent
public java.awt.Component getComponent()
Description copied from interface:ApplicationReturns the application component. This may return null, if the application is not represented by a component of its own on the user interface.
-
createFileMenu
public javax.swing.JMenu createFileMenu(View v)
Description copied from interface:ApplicationCreates a file menu for the specified view or for the entire application.- Parameters:
v- A view or null.- Returns:
- A JMenu or null, if the menu is empty.
-
createEditMenu
public javax.swing.JMenu createEditMenu(View v)
Description copied from interface:ApplicationCreates an edit menu for the specified view or for the entire application.- Parameters:
v- A view or null.- Returns:
- A JMenu or null, if the menu is empty.
-
createViewMenu
public javax.swing.JMenu createViewMenu(View v)
Description copied from interface:ApplicationCreates a view menu for the specified view or for the entire application.- Parameters:
v- A view or null.- Returns:
- A JMenu or null, if the menu is empty.
-
createWindowMenu
public javax.swing.JMenu createWindowMenu(View v)
Description copied from interface:ApplicationCreates a window menu for the specified view or for the entire application.- Parameters:
v- A view or null.- Returns:
- A JMenu or null, if the menu is empty.
-
createHelpMenu
public javax.swing.JMenu createHelpMenu(View v)
Description copied from interface:ApplicationCreates a help menu for the specified view of for the entire application.- Parameters:
v- A view or null.- Returns:
- A JMenu or null, if the menu is empty.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG