public class CheckBox extends FormControl
drawingShape, formElement, mElement, mFormProperties
Modifier and Type | Method and Description |
---|---|
FormTypeDefinition.FormCheckboxState |
getCurrentState()
Get current state of this check box
|
FormTypeDefinition.FormCheckboxState |
getDefaultState()
Get the default state of this check box
|
String |
getId()
Get the control id.
|
static CheckBox |
getInstanceOf(FormCheckboxElement element)
Get an instance of check box by an instance of FormCheckboxElement, while
searching the document content to make a bind with the DrawControl which
already reference to this check box.
|
String |
getLabel()
Get the label content of this check box
|
String |
getName()
Get the control name.
|
static Iterator<FormControl> |
getSimpleIterator(Form container)
Get a simple iterator for check boxes.
|
String |
getValue()
Get the default value of this control, it will be override by current
value.
|
void |
setControlImplementation(String controlImpl)
Set the implementation of this control.
|
void |
setCurrentState(FormTypeDefinition.FormCheckboxState state)
Set current state of this check box
|
void |
setDefaultState(FormTypeDefinition.FormCheckboxState state)
Set the default state of this check box
|
void |
setId(String id)
Set the control id.
|
void |
setLabel(String label)
Set the label content of this check box
|
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 CheckBox getInstanceOf(FormCheckboxElement element)
element
- - an instance of FormCheckboxElementpublic 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 of this check boxpublic String getLabel()
label
- - the label of this check boxpublic String getName()
FormControl
getName
in class FormControl
public void setName(String name)
FormControl
setName
in class FormControl
name
- - the control name.public void setValue(String value)
value
- - the default valuepublic String getValue()
public void setDefaultState(FormTypeDefinition.FormCheckboxState state)
state
- - default state of this check boxpublic FormTypeDefinition.FormCheckboxState getDefaultState()
public void setCurrentState(FormTypeDefinition.FormCheckboxState state)
state
- - current state of this check boxpublic FormTypeDefinition.FormCheckboxState getCurrentState()
public static Iterator<FormControl> getSimpleIterator(Form container)
container
- - an instance of form where to traverse the check boxesCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.