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
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultToggleAction
public DefaultToggleAction()
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.