JHotDraw 7.5.1

org.jhotdraw.app
Class AppletApplication

java.lang.Object
  extended by org.jhotdraw.beans.AbstractBean
      extended by org.jhotdraw.app.AbstractApplication
          extended by org.jhotdraw.app.AppletApplication
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Application

public class AppletApplication
extends AbstractApplication

AppletApplication handles the lifecycle of a single View inside of a Java Applet. FIXME - To be implemented.

Version:
$Id: AppletApplication.java 668 2010-07-28 21:22:39Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.app.AbstractApplication
labels, model, VIEW_COUNT_PROPERTY
 
Fields inherited from class org.jhotdraw.beans.AbstractBean
propertySupport
 
Fields inherited from interface org.jhotdraw.app.Application
ACTIVE_VIEW_PROPERTY, RECENT_URIS_PROPERTY
 
Constructor Summary
AppletApplication(javax.swing.JApplet applet)
          Creates a new instance of AppletApplication
 
Method Summary
 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.
 
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 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
 
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: 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 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: Application
Creates 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: Application
Creates 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: Application
Creates 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: Application
Creates 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.

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.