org.odftoolkit.simple.form
public abstract class FormControl extends Component
Modifier and Type | Field and Description |
---|---|
protected Control |
drawingShape |
protected FormFormElement |
formElement |
protected OdfElement |
mElement |
protected FormPropertiesElement |
mFormProperties |
Constructor and Description |
---|
FormControl() |
Modifier and Type | Method and Description |
---|---|
Control |
getDrawControl()
Get the drawing shape binding to this control
|
abstract String |
getId()
Get the control id.
|
abstract String |
getName()
Get the control name.
|
OdfElement |
getOdfElement()
Get the OdfElement which represents this control
|
FrameRectangle |
getRectangle()
Return the rectangle used as the bounding box of this form control
|
boolean |
remove()
Remove the form control from the container.
|
void |
setAnchorType(StyleTypeDefinitions.AnchorType anchorType)
Set the anchor position how this form control is bound to a text
document.
|
abstract void |
setControlImplementation(String controlImpl)
Set the implementation of this control.
|
protected void |
setFormProperty(String formPropertyName,
String officeValueType,
String officeStringValue,
Boolean officeBooleanValue,
String officeDateValue,
String officeTimeValue,
Double officeValue,
String officeCurrency) |
abstract void |
setId(String id)
Set the control id.
|
abstract void |
setName(String name)
Set the control name.
|
void |
setRectangle(FrameRectangle rectangle)
Set the rectangle used as the bounding box of this form control
|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent
protected Control drawingShape
protected FormFormElement formElement
protected FormPropertiesElement mFormProperties
protected OdfElement mElement
public boolean remove()
The resource is removed if it's only used by this object.
Control.remove()
public OdfElement getOdfElement()
getOdfElement
in class Component
public Control getDrawControl()
public abstract void setId(String id)
id
- -the control id.public abstract String getId()
public abstract void setName(String name)
name
- - the control name.public abstract String getName()
public abstract void setControlImplementation(String controlImpl)
controlImpl
- - the implementation description of this controlpublic void setAnchorType(StyleTypeDefinitions.AnchorType anchorType)
anchorType
- - the anchor positionpublic FrameRectangle getRectangle()
public void setRectangle(FrameRectangle rectangle)
rectangle
- - the rectangleCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.