|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.simple.Component
org.odftoolkit.simple.form.FormControl
org.odftoolkit.simple.form.Button
public class Button
This class represents the form control of Button, provides methods to get/set the form properties and the style formatting of this control.
Field Summary |
---|
Fields inherited from class org.odftoolkit.simple.form.FormControl |
---|
drawingShape, formElement, mElement, mFormProperties |
Method Summary | |
---|---|
String |
getId()
Get the control id. |
static Button |
getInstanceOf(FormButtonElement element)
Get an instance of button by an instance of FormButtonElement, while searching the document content to make a bind with the DrawControl which already reference to this button. |
String |
getLabel()
Get the label content of this button |
String |
getName()
Get the control name. |
static Iterator<FormControl> |
getSimpleIterator(Form container)
Get a simple iterator for buttons. |
void |
setControlImplementation(String controlImpl)
Set the implementation of this control. |
void |
setId(String id)
Set the control id. |
void |
setLabel(String label)
Set the label content of this 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. |
Methods inherited from class org.odftoolkit.simple.form.FormControl |
---|
getDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectangle |
Methods inherited from class org.odftoolkit.simple.Component |
---|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Button getInstanceOf(FormButtonElement element)
element
- - an instance of FormButtonElement
public void setControlImplementation(String controlImpl)
FormControl
setControlImplementation
in class FormControl
controlImpl
- - the implementation description of this controlpublic void setId(String id)
FormControl
setId
in class FormControl
id
- -the control id.public String getId()
FormControl
getId
in class FormControl
public String getName()
FormControl
getName
in class FormControl
public void setName(String name)
FormControl
setName
in class FormControl
name
- - the control name.public void setLabel(String label)
label
- - the labelpublic String getLabel()
public void setValue(String value)
value
- - the default valuepublic static Iterator<FormControl> getSimpleIterator(Form container)
container
- - an instance of form where to traverse the buttons
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |