All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.webrunner.bab.ActionEnabler
java.lang.Object
|
+----com.ibm.webrunner.bab.ActionEnabler
- public class ActionEnabler
- extends Object
- implements Serializable, PropertyChangeListener
This enables Action for derived classes of AbstractButton such as
JMenuItem, JButton, JRadioButton, etc. This is basically an adapter
that ties an Action with a Button.
The target Action properties such as name, icon, short description, enabled/disabled,
etc. are propagated automatically to the Button. If the specified button
is used in toolbar and if you do not want to see the text in the button then
you must explicitly set the textVisible property to false.
Modification(s) History :
09/15/98 - created
- Version:
- 0.1
- See Also:
- BAction, AbstractButton
-
ActionEnabler()
- Empty constructor
-
getButton()
- Returns the button associated with this ActionEnabler
-
getTargetAction()
- Returns the Action associated with this ActionEnabler
-
isIconVisible()
- Is button icon visible ?
-
isTextVisible()
- is button text visible ?
-
propertyChange(PropertyChangeEvent)
- Syncs the Button state with Action
-
setButton(AbstractButton)
- Set the Button on which the Action is enabled
-
setIconVisible(boolean)
- Set Icon visible
-
setTargetAction(BAction)
- Set the Target Action
-
setTextVisible(boolean)
- Set Text visible
ActionEnabler
public ActionEnabler()
- Empty constructor
setTargetAction
public void setTargetAction(BAction newAction)
- Set the Target Action
getTargetAction
public BAction getTargetAction()
- Returns the Action associated with this ActionEnabler
setButton
public void setButton(AbstractButton newButton)
- Set the Button on which the Action is enabled
getButton
public AbstractButton getButton()
- Returns the button associated with this ActionEnabler
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Syncs the Button state with Action
setTextVisible
public void setTextVisible(boolean newTextVisible)
- Set Text visible
isTextVisible
public boolean isTextVisible()
- is button text visible ?
setIconVisible
public void setIconVisible(boolean newIconVisible)
- Set Icon visible
isIconVisible
public boolean isIconVisible()
- Is button icon visible ?
All Packages Class Hierarchy This Package Previous Next Index