Joda System API

org.joda.swing.binder
Class PropertyBooleanRadioButtonGroupModel.RadioButtonModel

java.lang.Object
  |
  +--javax.swing.DefaultButtonModel
        |
        +--javax.swing.JToggleButton.ToggleButtonModel
              |
              +--org.joda.swing.binder.PropertyBooleanRadioButtonGroupModel.RadioButtonModel
All Implemented Interfaces:
javax.swing.ButtonModel, java.awt.ItemSelectable, java.io.Serializable
Enclosing class:
PropertyBooleanRadioButtonGroupModel

public class PropertyBooleanRadioButtonGroupModel.RadioButtonModel
extends javax.swing.JToggleButton.ToggleButtonModel

The button model that is attached to each button

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultButtonModel
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask
 
Constructor Summary
PropertyBooleanRadioButtonGroupModel.RadioButtonModel(javax.swing.JRadioButton component, java.lang.Boolean value)
          Constructor
 
Method Summary
 void setArmed(boolean b)
           
 void setPressed(boolean b)
           
 void setRollover(boolean b)
           
 void setSelected(boolean selected)
          Called when the radio button is selected.
protected  void setSuperSelected()
          Called to set the radio button to selected without impacting the property.
 
Methods inherited from class javax.swing.JToggleButton.ToggleButtonModel
isSelected
 
Methods inherited from class javax.swing.DefaultButtonModel
addActionListener, addChangeListener, addItemListener, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, isArmed, isEnabled, isPressed, isRollover, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setEnabled, setGroup, setMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyBooleanRadioButtonGroupModel.RadioButtonModel

public PropertyBooleanRadioButtonGroupModel.RadioButtonModel(javax.swing.JRadioButton component,
                                                             java.lang.Boolean value)
Constructor

Method Detail

setSuperSelected

protected void setSuperSelected()
Called to set the radio button to selected without impacting the property.


setSelected

public void setSelected(boolean selected)
Called when the radio button is selected.

Specified by:
setSelected in interface javax.swing.ButtonModel
Overrides:
setSelected in class javax.swing.JToggleButton.ToggleButtonModel

setPressed

public void setPressed(boolean b)
Specified by:
setPressed in interface javax.swing.ButtonModel
Overrides:
setPressed in class javax.swing.JToggleButton.ToggleButtonModel
See Also:
ButtonModel.setPressed(boolean)

setArmed

public void setArmed(boolean b)
Specified by:
setArmed in interface javax.swing.ButtonModel
Overrides:
setArmed in class javax.swing.DefaultButtonModel
See Also:
ButtonModel.setArmed(boolean)

setRollover

public void setRollover(boolean b)
Specified by:
setRollover in interface javax.swing.ButtonModel
Overrides:
setRollover in class javax.swing.DefaultButtonModel
See Also:
ButtonModel.setRollover(boolean)

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.