Oracle Data-aware Controls Reference

oracle.dacf.control.swing
Class RadioButtonModel

java.lang.Object
  extended byjavax.swing.DefaultButtonModel
      extended byoracle.dacf.control.swing.CancellableButtonModelImpl
          extended byoracle.dacf.control.swing.RadioButtonModel
All Implemented Interfaces:
javax.swing.ButtonModel, CancellableButtonModel, java.awt.ItemSelectable, java.io.Serializable

public class RadioButtonModel
extends CancellableButtonModelImpl

Extension of a ButtonModel that can hold a value for determining button state.

Version:
SDK
See Also:
ButtonModel, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultButtonModel
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask
 
Constructor Summary
RadioButtonModel()
          Constructs a default RadioButtonModel
RadioButtonModel(java.lang.String value)
          Constructs a RadioButtonModel with the given value
 
Method Summary
 java.lang.String getValue()
          Gets the value used this model to determine the selection state
 void setValue(java.lang.String value)
          Sets the value to be used to determine the selection state of this model
 
Methods inherited from class oracle.dacf.control.swing.CancellableButtonModelImpl
addSelectionChangingListener, fireSelectionChanging, isSelected, removeSelectionChangingListener, setPressed, setSelected
 
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, setArmed, setEnabled, setGroup, setMnemonic, setRollover
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ButtonModel
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setRollover
 
Methods inherited from interface java.awt.ItemSelectable
getSelectedObjects
 

Constructor Detail

RadioButtonModel

public RadioButtonModel()
Constructs a default RadioButtonModel


RadioButtonModel

public RadioButtonModel(java.lang.String value)
Constructs a RadioButtonModel with the given value

Parameters:
value - Value to be used for determining the state of this model
Method Detail

getValue

public java.lang.String getValue()
Gets the value used this model to determine the selection state

Returns:
the value used this model to determine the selection state

setValue

public void setValue(java.lang.String value)
Sets the value to be used to determine the selection state of this model

Parameters:
value - the value used this model to determine the selection state

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.