Package com.portal.bas
Class PBASToggleAction
java.lang.Object
javax.swing.AbstractAction
com.portal.bas.PBASAction
com.portal.bas.PBASToggleAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
PToggleAcctNavAction
,PToggleShowAcctAction
,PToggleShowToolsAction
,PToggleToolTipAction
PBASToggleAction
is a base for PBASAction
actions
that toggle, for example, checkboxes, which add state information to
PBASAction
and must be rendered differently.- Version:
- %version: 9 % %date_modified: Wed Apr 11 10:54:12 2001 %
- Author:
- larrylf
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PBASAction
ACCEL, ICON_DISABLED, ICON_DISABLED_SELECTED, ICON_PRESSED, ICON_ROLLOVER, ICON_ROLLOVER_SELECTED, ICON_SELECTED, MNEM, TOOL_TITLE, TOOLBAR_LABEL
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionPBASToggleAction
(PClientComponent comp, String tag) Creates a newAction
from a supplied component and resource tag.PBASToggleAction
(PClientComponent comp, String tag, String helpID) Creates a newAction
from a supplied component, resource tag, and help ID.PBASToggleAction
(String tag) Creates a newAction
from a supplied component and resource tag. -
Method Summary
Methods inherited from class com.portal.bas.PBASAction
equals, getComponent, getHelpID, getPreferredMenu, getTag, handleError, setActionHelpOn, setPreferredMenu
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
PBASToggleAction
Creates a newAction
from a supplied component and resource tag.- Parameters:
tag
- the resource tag used to look up info from.The icon is expected at: <component resource base>.tag.icon
The name is expected at: <component resource base>.tag.name
The description is expected at: <component resource base>.tag.desc
comp
- the component this action will act upon
-
PBASToggleAction
Creates a newAction
from a supplied component and resource tag.- Parameters:
comp
- the target component of this actiontag
- the resource tag used to look up information.The icon is expected at: <component resource base>.tag.icon
The name is expected at: <component resource base>.tag.name
The description is expected at: <component resource base>.tag.desc
-
PBASToggleAction
Creates a newAction
from a supplied component, resource tag, and help ID.- Parameters:
comp
- the target component of this actiontag
- the resource tag used to look up information.The icon is expected at: <component resource base>.tag.icon
The name is expected at: <component resource base>.tag.name
The description is expected at: <component resource base>.tag.desc
helpID
- The help ID for this action.
-
-
Method Details
-
setState
public void setState(boolean state) Sets the state of the control created or to be created by this action.- Parameters:
state
- the button's state
-
getState
public boolean getState()Gets the state of the control created or to be created by this action.- Returns:
- The button's state.
-
actionPerformed
DefaultactionPerformed
method that tracks state changes. Subclasses that override this method need to callsuper.actionPerformed()
.- Parameters:
evt
- the action event
-