nl.coderight.jazz.form.control
Class RadioControl<V>

java.lang.Object
  extended by nl.coderight.jazz.form.FormField<V>
      extended by nl.coderight.jazz.form.FormControl<V>
          extended by nl.coderight.jazz.form.control.RadioControl<V>

public class RadioControl<V>
extends FormControl<V>

Use to arrange a group of RadioButtons. Only one RadioButton can be selected. Default orientation is HORIZONTAL.


Nested Class Summary
static class RadioControl.RadioOrientation
           
 
Field Summary
 
Fields inherited from class nl.coderight.jazz.form.FormField
Config
 
Constructor Summary
RadioControl()
           
RadioControl(String bindID)
           
 
Method Summary
 void addRadioButton(RadioButton radioButton, V value)
           
 V getValue()
          Returns field value.
protected  void onChange()
           
 void setOnChangeEvent(Event onChangeEvent)
           
 void setOrientation(RadioControl.RadioOrientation orientation)
           
 void setValue(V value)
          Sets field value.
 
Methods inherited from class nl.coderight.jazz.form.FormControl
addField, addField, focus, focusField, focusNextField, focusPreviousField, getBindID, getFields, getFocusComponent, hasFocus, registerKeyboardAction, setComponent, setEnabled, setLayout, setTitle
 
Methods inherited from class nl.coderight.jazz.form.FormField
dispatchEvent, dispose, focusNextField, focusPreviousField, getBackground, getBorder, getComponent, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getPreferredSize, getToolTip, isBindable, isChanged, isEnabled, isFocusable, isOpaque, isReadonly, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onFocusGained, onFocusLost, onMouseEnter, onMouseLeave, onPopup, setBackground, setBindID, setBorder, setChanged, setComponent, setCursor, setDataBinding, setFocusable, setForeground, setOnFocusGainedEvent, setOnFocusLostEvent, setOpaque, setPopupMenu, setPreferredSize, setReadonly, setToolTip, setVisible, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioControl

public RadioControl()

RadioControl

public RadioControl(String bindID)
Method Detail

setOrientation

public void setOrientation(RadioControl.RadioOrientation orientation)

getValue

public V getValue()
Description copied from class: FormField
Returns field value.

Overrides:
getValue in class FormField<V>

setValue

public void setValue(V value)
Description copied from class: FormField
Sets field value.

Overrides:
setValue in class FormField<V>

addRadioButton

public void addRadioButton(RadioButton radioButton,
                           V value)

setOnChangeEvent

public void setOnChangeEvent(Event onChangeEvent)

onChange

protected void onChange()
Overrides:
onChange in class FormField<V>


Copyright 2010 CodeRight, All rights reserved.