org.odftoolkit.simple.form
public class TextBox extends FormControl
drawingShape, formElement, mElement, mFormProperties
Modifier and Type | Method and Description |
---|---|
String |
getCurrentValue()
Get the current value of this control
|
String |
getId()
Get the control id.
|
static TextBox |
getInstanceOf(OdfElement element)
Get an instance of text box by an instance of OdfElement, while searching
the document content to make a bind with the DrawControl which already
reference to this text box.
|
String |
getName()
Get the control name.
|
static Iterator<FormControl> |
getSimpleIterator(Form container)
Get a simple iterator for text boxes.
|
String |
getValue()
Get the default value of this control
|
void |
setControlImplementation(String controlImpl)
Set the implementation of this control.
|
void |
setCurrentValue(String currentValue)
Set the current value of this control, it override the default value.
|
void |
setId(String id)
Set the control id.
|
void |
setName(String name)
Set the control name.
|
void |
setValue(String defaultValue)
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 TextBox getInstanceOf(OdfElement element)
element
- - an instance of OdfElementpublic 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 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 defaultValue)
value
- - default valuepublic String getValue()
public void setCurrentValue(String currentValue)
currentValue
- - current valuepublic String getCurrentValue()
public static Iterator<FormControl> getSimpleIterator(Form container)
container
- - an instance of form where to traverse the text boxesCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.