Class PBASToggleAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
PToggleAcctNavAction, PToggleShowAcctAction, PToggleShowToolsAction, PToggleToolTipAction

public abstract class PBASToggleAction extends PBASAction
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:
  • Constructor Details

    • PBASToggleAction

      public PBASToggleAction(String tag)
      Creates a new Action 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

      public PBASToggleAction(PClientComponent comp, String tag)
      Creates a new Action from a supplied component and resource tag.
      Parameters:
      comp - the target component of this action
      tag - 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

      public PBASToggleAction(PClientComponent comp, String tag, String helpID)
      Creates a new Action from a supplied component, resource tag, and help ID.
      Parameters:
      comp - the target component of this action
      tag - 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

      public void actionPerformed(ActionEvent evt)
      Default actionPerformed method that tracks state changes. Subclasses that override this method need to call super.actionPerformed().
      Parameters:
      evt - the action event