oracle.ide
Class LocalAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--oracle.ide.controls.ToggleAction
|
+--oracle.ide.IdeAction
|
+--oracle.ide.LocalAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.awt.event.ItemListener, java.io.Serializable
- public class LocalAction
- extends IdeAction
An LocalAction
is used in View
s that have
commands accessible through local toolbars. The LocalAction
s
are generally clones of the IdeAction
registered for
a specific command. The LocalAction
s respond only to
the changes in context of the view that owns them.
LocalAction
s are not cached in the IdeAction
cache.
- See Also:
IdeAction
, Serialized Form
Fields inherited from class oracle.ide.controls.ToggleAction |
ACCELERATOR, ACTION, BUTTON_GROUP_NAME, CATEGORY, CONTEXT_INDEPENDENT_NAME, DISABLED_ICON, HIDDEN, MNEMONIC, RADIO, STATE, TOGGLES, USER_DATA |
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 |
Method Summary |
protected View |
getView()
Return the View associated with this action . |
protected void |
trackPropertyChanges(javax.swing.Action sourceAction,
javax.swing.Action targetAction)
When a property on the source Action changes, propagate the
changed property to the target Action . |
Methods inherited from class oracle.ide.IdeAction |
actionPerformed, create, create, create, create, find, findGroup, get, get, get, get, get, getCommand, getCommandId, getContext, getController, getValue, putValue, setCommand, setCommandId, setContext, setController |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, isEnabled, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalAction
public LocalAction(IdeAction action,
View view)
- Constructor.
- Parameters:
action
- the IdeAction
this LocalAction
will clone.view
- the View
that owns this action.
getView
protected View getView()
- Return the
View
associated with this action
.
This method is called from the base class actionPerformed()
method to determine the view whose controller
will handle the
Command
associated with this Action
.
- Overrides:
getView
in class IdeAction
trackPropertyChanges
protected void trackPropertyChanges(javax.swing.Action sourceAction,
javax.swing.Action targetAction)
- When a property on the source
Action
changes, propagate the
changed property to the target Action
.