DefaultToggleAction Class

com.bea.ide.actions
DefaultToggleAction Class

public abstract class DefaultToggleAction

    extends DefaultAction
    implements IToggleAction

This class provides a default implementation of the IToggleAction interface. Implementors may extend this class to implement actions. It provides default implementations of most of the action methods.


Hierarchy
Object
  DefaultAction
    DefaultToggleAction
All Implemented Interfaces

ActionListener, EventListener, IAction, IToggleAction, PropertyChangeListener

Field Summary

   
Fields from  com.bea.ide.actions.DefaultAction
_proxy
 

Constructor Summary

DefaultToggleAction()

 

Method Summary

public boolean
isSelected()
This method returns the current selected state of the action.
public void
setSelected(boolean b)
Use this method to update the selected state of the action.
 
Methods from  com.bea.ide.actions.DefaultAction
getProxy, propertyChange
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface java.awt.event.ActionListener
actionPerformed
 
Methods from interface com.bea.ide.actions.IAction
actionPerformed, propertyChange
 
Methods from interface java.beans.PropertyChangeListener
propertyChange
 

Constructor Detail

DefaultToggleAction

public DefaultToggleAction()
 

Method Detail

isSelected() Method

public boolean isSelected()
This method returns the current selected state of the action.

Returns

true if the current state of the action is selected; otherwise, false.

setSelected(boolean) Method

public void setSelected(boolean b)
Use this method to update the selected state of the action.

Parameters

b
true to select the action; false to deselect it.