All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.webrunner.bab.BRadioButtonMenuItem

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.AbstractButton
                                   |
                                   +----com.sun.java.swing.JMenuItem
                                           |
                                           +----com.sun.java.swing.JRadioButtonMenuItem
                                                   |
                                                   +----com.ibm.webrunner.bab.BRadioButtonMenuItem

public class BRadioButtonMenuItem
extends JRadioButtonMenuItem
implements Serializable, PropertyChangeListener
This is an action aware swing's JRadioButtonMenuItem. The properties of the menu item text. Icon, Tool Tip Text, etc. are initialized from the associated Action's name, icon and short description,etc. respectively.

If you do not want to see the icon in the menu item then you must explicitly set the iconVisible property to false.

Modification(s) History :
09/16/98 - created

Version:
0.1
See Also:
BAction, AbstractAction

Constructor Index

 o BRadioButtonMenuItem()

Method Index

 o getTargetAction()
Returns the Action associated with this Button
 o isIconVisible()
Is Icon Visible ?
 o isTextVisible()
is Text visible ?
 o propertyChange(PropertyChangeEvent)
Listen to property change from Action and change menu item state accordingly
 o setIconVisible(boolean)
Set iconVisible
 o setTargetAction(BAction)
Set the Action that this Button initializes with
 o setTextVisible(boolean)
Set textVisible

Constructors

 o BRadioButtonMenuItem
 public BRadioButtonMenuItem()

Methods

 o setTextVisible
 public void setTextVisible(boolean newTextVisible)
Set textVisible

 o isTextVisible
 public boolean isTextVisible()
is Text visible ?

 o setIconVisible
 public void setIconVisible(boolean newIconVisible)
Set iconVisible

 o isIconVisible
 public boolean isIconVisible()
Is Icon Visible ?

 o setTargetAction
 public void setTargetAction(BAction newAction)
Set the Action that this Button initializes with

 o getTargetAction
 public BAction getTargetAction()
Returns the Action associated with this Button

 o propertyChange
 public void propertyChange(PropertyChangeEvent e)
Listen to property change from Action and change menu item state accordingly


All Packages  Class Hierarchy  This Package  Previous  Next  Index