Extension SDK

oracle.ide
Class LocalAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byoracle.ide.controls.ToggleAction
          extended byoracle.ide.IdeAction
              extended byoracle.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

Field Summary
 
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
 void dispose()
           
protected  View getView()
          Return the View associated with this action.
 
Methods inherited from class oracle.ide.IdeAction
actionPerformed, create, create, create, create, find, findGroup, get, get, get, get, get, get, getCommand, getCommandId, getContext, getController, getValue, putValue, remove, 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, getPropertyChangeListeners, 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

dispose

public void dispose()

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

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.