org.jhotdraw.app
Class DefaultAppletApplication

java.lang.Object
  extended by org.jhotdraw.beans.AbstractBean
      extended by org.jhotdraw.app.AbstractApplication
          extended by 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 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
private  javax.swing.JApplet applet
           
private  View view
           
 
Fields inherited from class org.jhotdraw.app.AbstractApplication
labels, VIEW_COUNT_PROPERTY
 
Fields inherited from class org.jhotdraw.beans.AbstractBean
propertySupport
 
Fields inherited from interface org.jhotdraw.app.Application
ACTIVE_VIEW_PROPERTY
 
Constructor Summary
DefaultAppletApplication(javax.swing.JApplet applet)
          Creates a new instance of DefaultAppletApplication
 
Method Summary
 View getActiveView()
          Gets the active view.
 java.awt.Component getComponent()
          Returns the application component.
 void hide(View v)
          Hides a view.
protected  void initViewActions(View p)
           
 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, addPalette, addRecentFile, addWindow, basicCreateView, clearRecentFiles, configure, createContainer, createView, dispose, getCopyright, getModel, getName, getVersion, init, initLabels, isEnabled, launch, recentFiles, remove, removePalette, removeWindow, 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
 

Field Detail

applet

private javax.swing.JApplet applet

view

private View view
Constructor Detail

DefaultAppletApplication

public DefaultAppletApplication(javax.swing.JApplet applet)
Creates a new instance of DefaultAppletApplication

Method Detail

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.


initViewActions

protected void initViewActions(View p)
Specified by:
initViewActions in class AbstractApplication