org.jdesktop.html.form
Class AbstractRadioInput

java.lang.Object
  extended by org.jdesktop.beans.AbstractBean
      extended by org.jdesktop.html.form.AbstractRadioInput
All Implemented Interfaces:
Input, RadioInput

public class AbstractRadioInput
extends org.jdesktop.beans.AbstractBean
implements RadioInput

Abstract implementation of the RadioInput interface.


Constructor Summary
protected AbstractRadioInput(String name, Set<String> values)
          Creates a new instance of AbstractRadioInput.
 
Method Summary
 String getName()
          Gets the name of this Input.
 String getValue()
          Gets the value of the Input.
 String[] getValues()
          Gets the set of valid values.
 void setValue(String value)
          Sets the value of the Input.
 
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRadioInput

protected AbstractRadioInput(String name,
                             Set<String> values)
Creates a new instance of AbstractRadioInput.

Parameters:
name - the name, corrosponding to the "name" property of Input.
values - the set of acceptable values
Method Detail

getValues

public String[] getValues()
Description copied from interface: RadioInput
Gets the set of valid values. Any call to #setValue(String) must reference one of these.

Specified by:
getValues in interface RadioInput
Returns:
the array of valid values.

getName

public String getName()
Description copied from interface: Input
Gets the name of this Input.

Specified by:
getName in interface Input
Returns:
the name. This will never be null.

getValue

public String getValue()
Description copied from interface: Input
Gets the value of the Input.

Specified by:
getValue in interface Input
Returns:
the value. This may be null.

setValue

public void setValue(String value)
Description copied from interface: Input
Sets the value of the Input. This value may be null.

Specified by:
setValue in interface Input
Parameters:
value - the value. May be null.