org.odftoolkit.simple.form
public class RadioButton extends FormControl
drawingShape, formElement, mElement, mFormProperties
Modifier and Type | Method and Description |
---|---|
boolean |
getCurrentSelected()
Get current selection status of this radio button
|
boolean |
getDefaultSelected()
Get the default selection status of this radio button
|
String |
getId()
Get the control id.
|
static RadioButton |
getInstanceOf(FormRadioElement element)
Get an instance of radio button by an instance of FormRadioElement, while
searching the document content to make a bind with the DrawControl which
already reference to this radio button.
|
String |
getLabel()
Get the label content of this radio button
|
String |
getName()
Get the control name.
|
static Iterator<FormControl> |
getSimpleIterator(Form container)
Get a simple iterator for radio buttons.
|
String |
getValue()
Get the default value of this control.
|
void |
setControlImplementation(String controlImpl)
Set the implementation of this control.
|
void |
setCurrentSelected(boolean isSelected)
Set current selection status of this radio button, it override the
default status
|
void |
setDefaultSelected(boolean isSelected)
Set the default selection status of this radio button
|
void |
setId(String id)
Set the control id.
|
void |
setLabel(String label)
Set the label content of this radio button
|
void |
setName(String name)
Set the control name.
|
void |
setValue(String value)
Set the default value of this control, it will be override by current
value.
|
getDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectangle
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent
public static RadioButton getInstanceOf(FormRadioElement element)
element
- - an instance of FormRadioElementpublic void setControlImplementation(String controlImpl)
FormControl
setControlImplementation
in class FormControl
controlImpl
- - the implementation description of this controlpublic String getId()
FormControl
getId
in class FormControl
public void setId(String id)
FormControl
setId
in class FormControl
id
- -the control id.public void setLabel(String label)
label
- - the label content of this radio buttonpublic String getLabel()
public String getName()
FormControl
getName
in class FormControl
public void setName(String name)
FormControl
setName
in class FormControl
name
- - the control name.public String getValue()
default
- valuepublic void setValue(String value)
value
- - default valuepublic void setDefaultSelected(boolean isSelected)
isSelected
- - true means selected; false means unselectedpublic boolean getDefaultSelected()
public void setCurrentSelected(boolean isSelected)
isSelected
- - true means selected; false means unselectedpublic boolean getCurrentSelected()
public static Iterator<FormControl> getSimpleIterator(Form container)
container
- - an instance of form where to traverse the radio buttonsCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.