Extension SDK

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 Views that have commands accessible through local toolbars. The LocalActions are generally clones of the IdeAction registered for a specific command. The LocalActions respond only to the changes in context of the view that owns them. LocalActions 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
 
Constructor Summary
LocalAction(IdeAction action, View view)
          Constructor.
 
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 oracle.ide.controls.ToggleAction
getBooleanValue, getState, isRadio, isToggle, itemStateChanged, setBooleanValue, setState
 
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
 

Constructor Detail

LocalAction

public LocalAction(IdeAction action,
                   View view)
Constructor.
Parameters:
action - the IdeAction this LocalAction will clone.
view - the View that owns this action.
Method Detail

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.

Extension SDK