public class Button extends FormControl
drawingShape, formElement, mElement, mFormProperties| Modifier and Type | Method and Description |
|---|---|
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.
|
getDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectanglegetComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic static Button getInstanceOf(FormButtonElement element)
element - - an instance of FormButtonElementpublic void setControlImplementation(String controlImpl)
FormControlsetControlImplementation in class FormControlcontrolImpl - - the implementation description of this controlpublic void setId(String id)
FormControlsetId in class FormControlid - -the control id.public String getId()
FormControlgetId in class FormControlpublic String getName()
FormControlgetName in class FormControlpublic void setName(String name)
FormControlsetName in class FormControlname - - 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 buttonsCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.