JHotDraw 7.0.9

org.jhotdraw.application.action
Class PropertyAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jhotdraw.application.action.AbstractApplicationAction
          extended by org.jhotdraw.application.action.AbstractDocumentViewAction
              extended by org.jhotdraw.application.action.PropertyAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class PropertyAction
extends AbstractDocumentViewAction

PropertyAction.

Version:
1.0 June 18, 2006 Created.
Author:
Werner Randelshofer.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
PropertyAction(java.lang.String propertyName, java.lang.Class propertyClass, java.lang.Object propertyValue)
           
PropertyAction(java.lang.String propertyName, java.lang.Object propertyValue)
          Creates a new instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
protected  void installProjectListeners(DocumentView p)
          Installs listeners on the documentView object.
protected  void uninstallProjectListeners(DocumentView p)
          Installs listeners on the documentView object.
 
Methods inherited from class org.jhotdraw.application.action.AbstractDocumentViewAction
getCurrentView, getPropertyName, isEnabled, setEnabled, setPropertyName, updateEnabled, updateProject, updateProperty
 
Methods inherited from class org.jhotdraw.application.action.AbstractApplicationAction
getApplication, getFrameworkResourceMap, getResourceMap, initActionProperties, initActionProperties, installApplicationListeners, uninstallApplicationListeners, updateApplicationEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyAction

public PropertyAction(java.lang.String propertyName,
                      java.lang.Object propertyValue)
Creates a new instance.


PropertyAction

public PropertyAction(java.lang.String propertyName,
                      java.lang.Class propertyClass,
                      java.lang.Object propertyValue)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)

installProjectListeners

protected void installProjectListeners(DocumentView p)
Description copied from class: AbstractDocumentViewAction
Installs listeners on the documentView object.

Overrides:
installProjectListeners in class AbstractDocumentViewAction

uninstallProjectListeners

protected void uninstallProjectListeners(DocumentView p)
Installs listeners on the documentView object.

Overrides:
uninstallProjectListeners in class AbstractDocumentViewAction

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