|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kalmeo.kuix.widget.Widget
org.kalmeo.kuix.widget.List
org.kalmeo.kuix.widget.RadioGroup
public class RadioGroup
This class represents a radio buttons group.
For further informations, visit the Kuix widgets reference page.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget |
---|
Widget.BindInstruction |
Field Summary |
---|
Fields inherited from class org.kalmeo.kuix.widget.Widget |
---|
bindInstructions, DEFAULT_ALIGN, DEFAULT_BACKGROUND_ALIGN, DEFAULT_BACKGROUND_REPEAT, DEFAULT_BORDER, DEFAULT_GAP, DEFAULT_MARGIN, DEFAULT_MIN_SIZE, DEFAULT_PADDING, DEFAULT_SPAN, DEFAULT_WEIGHT, next, parent, previous |
Constructor Summary | |
---|---|
RadioGroup()
Construct a RadioGroup |
|
RadioGroup(java.lang.String tag)
Construct a RadioGroup |
Method Summary | |
---|---|
Widget |
add(Widget widget)
Add a Widget to this as child |
void |
cleanUp()
CleanUp all widget's link and propagate the action on its children. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the specified attribute |
java.lang.String |
getOnChange()
|
RadioButton |
getSelectedRadioButton()
|
java.lang.String |
getValue()
|
protected void |
onChildRemoved(Widget widget)
Event called when the child widjet is removed. |
protected void |
processNewRadioButtonValue(RadioButton radioButton)
|
boolean |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value to the specified attribute representing by
the name |
void |
setOnChange(java.lang.String onChange)
|
void |
setSelectedRadioButton(RadioButton radioButton,
boolean propagateChangeEvent)
Set the current selected RadioButton . |
void |
setValue(java.lang.String value)
Check if the value exists in RadioButton children value and the select the first occurrence |
Methods inherited from class org.kalmeo.kuix.widget.List |
---|
addItem, addItem, addItem, addItem, getDefaultStylePropertyValue, getItemWidget, getRenderer, isObjectAttribute, processItemsModelUpdateEvent, removeAllItems, removeItem, setItems, setObjectAttribute, setRenderer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadioGroup()
RadioGroup
public RadioGroup(java.lang.String tag)
RadioGroup
tag
- Method Detail |
---|
public boolean setAttribute(java.lang.String name, java.lang.String value)
Widget
value
to the specified attribute representing by
the name
setAttribute
in class List
true
if the attribute existspublic java.lang.Object getAttribute(java.lang.String name)
Widget
getAttribute
in class Widget
public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- public java.lang.String getOnChange()
public void setOnChange(java.lang.String onChange)
onChange
- the onChange to setpublic RadioButton getSelectedRadioButton()
public void setSelectedRadioButton(RadioButton radioButton, boolean propagateChangeEvent)
RadioButton
.
radioButton
- the selectedButton to setpropagateChangeEvent
- if true
the onChange event could be propagatedpublic Widget add(Widget widget)
Widget
Widget
to this as child
add
in class Widget
widget
- The Widget
to add
Widget
public void cleanUp()
Widget
cleanUp
in class Widget
protected void processNewRadioButtonValue(RadioButton radioButton)
radioButton
- protected void onChildRemoved(Widget widget)
Widget
widjet
is removed.
onChildRemoved
in class Widget
widget
- The widget child witch is removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |