All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.webrunner.bab.BAction
java.lang.Object
|
+----com.sun.java.swing.AbstractAction
|
+----com.ibm.webrunner.bab.BAction
- public class BAction
- extends AbstractAction
- implements Serializable
BAction is a component that implements the swing's Action. This separates
the application logic that is performed on this Action from the UI aspects of
the action itself.
This supports the setters and getters for Action's properties such as Name,
Icon, Short Description and Long Description. The property enabledInApplet
if set to false,this action will be disabled when run as an applet. This is
set to true by default.
The action performed by this is specified by adding an ActionListener to this BAction.
If an undoable action/command is to be performed then a BCommand object must be
implemented and the command itself must added to the BABApp in the ActionListener.
Modification(s) History :
09/15/98 - created
- Version:
- 0.1
- See Also:
- BCommand, AbstractAction
-
listenerList
-
-
BAction()
- No arg constructor
-
actionPerformed(ActionEvent)
-
-
addActionListener(ActionListener)
- adds an ActionListener to the button
-
getActionName()
- Returns Action name
-
getBABApp()
- Returns the BAB App
-
getBABContext()
- Returns current BABContext.
-
getIcon()
- Return the Action's Icon
-
getLongDescription()
- Return the Action's Long description
-
getShortDescription()
- Return the Action's short descriptor
-
isEnabledInApplet()
- Should this action be enabled when running as an Applet ?
-
isSelected()
- Return if this is selected.
-
removeActionListener(ActionListener)
- removes an ActionListener from the button
-
setActionName(String)
- Set a name for the action
-
setEnabledInApplet(boolean)
- Set enabledInApplet
-
setIcon(Icon)
- Set an Icon for the action
-
setLongDescription(String)
- Set long description for the Action
-
setSelected(boolean)
- Set selected.
-
setShortDescription(String)
- Set short description for the Action
listenerList
protected EventListenerList listenerList
BAction
public BAction()
- No arg constructor
actionPerformed
public void actionPerformed(ActionEvent e)
- Overrides:
- actionPerformed in class AbstractAction
setEnabledInApplet
public void setEnabledInApplet(boolean newEnabledInApplet)
- Set enabledInApplet
isEnabledInApplet
public boolean isEnabledInApplet()
- Should this action be enabled when running as an Applet ?
getBABApp
public BABApp getBABApp()
- Returns the BAB App
setActionName
public void setActionName(String newActionName)
- Set a name for the action
getActionName
public String getActionName()
- Returns Action name
setIcon
public void setIcon(Icon newIcon)
- Set an Icon for the action
getIcon
public Icon getIcon()
- Return the Action's Icon
setShortDescription
public void setShortDescription(String newShortDescription)
- Set short description for the Action
getShortDescription
public String getShortDescription()
- Return the Action's short descriptor
setLongDescription
public void setLongDescription(String newLongDescription)
- Set long description for the Action
getLongDescription
public String getLongDescription()
- Return the Action's Long description
getBABContext
public BABContext getBABContext()
- Returns current BABContext. This is normally called from this action's
actionPerformed() method
setSelected
public void setSelected(boolean newSelected)
- Set selected. This is used for actions associated with toggle buttons
isSelected
public boolean isSelected()
- Return if this is selected. This is used for actions associated with toggle buttons
addActionListener
public void addActionListener(ActionListener l)
- adds an ActionListener to the button
removeActionListener
public void removeActionListener(ActionListener l)
- removes an ActionListener from the button
All Packages Class Hierarchy This Package Previous Next Index