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
protected RadioControl()
           
  RadioControl(String bindID)
           
 
Method Summary
 void addRadioButton(RadioButton radioButton, V value)
           
 String getTitle()
           
 V getValue()
          Returns field value.
protected  void onChange()
           
 void setOnChangeEvent(Event onChangeEvent)
           
 void setOrientation(RadioControl.RadioOrientation orientation)
           
 void setTitle(String title)
           
 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
 
Methods inherited from class nl.coderight.jazz.form.FormField
dispatchEvent, dispose, focusNextField, focusPreviousField, getBackground, getBorder, getComponent, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getPreferredSize, getToolTipText, isBindable, isChanged, isEnabled, isFocusable, isOpaque, isReadonly, isScrollable, 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, setToolTipText, setVisible, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioControl

protected RadioControl()

RadioControl

public RadioControl(String bindID)
Method Detail

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

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.