|
JHotDraw 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
org.jhotdraw.app.action.AbstractApplicationAction
public abstract class AbstractApplicationAction
An Action that acts on an Application object.
If the Application object is disabled, the AbstractApplicationAction is disabled
as well.
Application,
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 | |
|---|---|
AbstractApplicationAction(Application app)
Creates a new instance. |
|
| Method Summary | |
|---|---|
Application |
getApplication()
|
protected void |
installApplicationListeners(Application app)
Installs listeners on the application object. |
boolean |
isEnabled()
Returns true if the action is enabled. |
void |
setEnabled(boolean newValue)
Enables or disables the action. |
protected void |
uninstallApplicationListeners(Application app)
Installs listeners on the application object. |
protected void |
updateApplicationEnabled()
Updates the enabled state of this action depending on the new enabled state of the application. |
| 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 |
| Methods inherited from interface java.awt.event.ActionListener |
|---|
actionPerformed |
| Constructor Detail |
|---|
public AbstractApplicationAction(Application app)
| Method Detail |
|---|
protected void installApplicationListeners(Application app)
protected void uninstallApplicationListeners(Application app)
public Application getApplication()
protected void updateApplicationEnabled()
public boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionAction.isEnabled()public void setEnabled(boolean newValue)
setEnabled in interface javax.swing.ActionsetEnabled in class javax.swing.AbstractActionnewValue - true to enable the action, false to
disable itAction.setEnabled(boolean)
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||