|
JHotDraw 7.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.jhotdraw.application.action.AbstractApplicationAction
public abstract class AbstractApplicationAction
An Action that acts on an DocumentOrientedApplication
object.
If the DocumentOrientedApplication object is disabled, the AbstractApplicationAction is disabled
as well.
DocumentOrientedApplication
,
Serialized FormField 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()
Creates a new instance. |
Method Summary | |
---|---|
DocumentOrientedApplication |
getApplication()
|
ResourceMap |
getFrameworkResourceMap()
|
ResourceMap |
getResourceMap()
|
void |
initActionProperties(ResourceMap resourceMap,
java.lang.String baseName)
|
void |
initActionProperties(java.lang.String baseName)
|
protected void |
installApplicationListeners(DocumentOrientedApplication application)
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(DocumentOrientedApplication application)
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()
Method Detail |
---|
protected void installApplicationListeners(DocumentOrientedApplication application)
protected void uninstallApplicationListeners(DocumentOrientedApplication application)
public DocumentOrientedApplication getApplication()
public ResourceMap getResourceMap()
protected void updateApplicationEnabled()
public boolean isEnabled()
isEnabled
in interface javax.swing.Action
isEnabled
in class javax.swing.AbstractAction
Action.isEnabled()
public void setEnabled(boolean newValue)
setEnabled
in interface javax.swing.Action
setEnabled
in class javax.swing.AbstractAction
newValue
- true to enable the action, false to
disable itAction.setEnabled(boolean)
public void initActionProperties(java.lang.String baseName)
public void initActionProperties(ResourceMap resourceMap, java.lang.String baseName)
public ResourceMap getFrameworkResourceMap()
|
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 |