JHotDraw 7.0.9

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:
1.0 2006-06-10 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.app.AbstractApplication
labels
 
Fields inherited from class org.jhotdraw.beans.AbstractBean
propertySupport
 
Constructor Summary
DefaultAppletApplication(javax.swing.JApplet applet)
          Creates a new instance of DefaultAppletApplication
 
Method Summary
 java.awt.Component getComponent()
          Returns the application component.
 Project getCurrentProject()
          Returns the current project.
 void hide(Project p)
          Hides a project.
protected  void initProjectActions(Project p)
           
 boolean isSharingToolsAmongProjects()
          Returns true, if this application shares tools among multiple projects.
 void show(Project p)
          Shows a project.
 
Methods inherited from class org.jhotdraw.app.AbstractApplication
add, addRecentFile, basicCreateProject, clearRecentFiles, configure, createContainer, createProject, dispose, getCopyright, getModel, getName, getVersion, init, initLabels, isEnabled, launch, projects, recentFiles, remove, setEnabled, setModel, start, stop
 
Methods inherited from class org.jhotdraw.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, 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

DefaultAppletApplication

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

Method Detail

show

public void show(Project p)
Description copied from interface: Application
Shows a project.


hide

public void hide(Project p)
Description copied from interface: Application
Hides a project.


getCurrentProject

public Project getCurrentProject()
Description copied from interface: Application
Returns the current project. This is used for OSXApplication and MDIApplication which share actions among multiple Project instances. Current project may be become null, if the application has no project.

This is a bound property.


isSharingToolsAmongProjects

public boolean isSharingToolsAmongProjects()
Description copied from interface: Application
Returns true, if this application shares tools among multiple projects.


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.


initProjectActions

protected void initProjectActions(Project p)
Specified by:
initProjectActions in class AbstractApplication

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.