| Modifier and Type | Field and Description |
|---|---|
protected OfficeFormsElement |
mFormContainerElement |
| Modifier and Type | Method and Description |
|---|---|
Button |
createButton(ControlContainer parent,
FrameRectangle rectangle,
String name,
String label)
Create a button control in this form.
|
FormControl |
createCheckBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
String label,
String value)
Create a check box in this form.
|
FormControl |
createComboBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultText,
boolean isDropDown)
Create a combo box in this form.
|
FormControl |
createCurrencyField(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultValue)
Create a currency field in this form.
|
FormControl |
createDateField(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultValue)
Create a time field in this form.
|
FormControl |
createLabel(ControlContainer parent,
FrameRectangle rectangle,
String name,
String text)
Create a label control in this form.
|
FormControl |
createListBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
boolean isMultiSelection,
boolean isDropDown)
Create a list box in this form.
|
FormControl |
createNumericField(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultValue)
Create a numeric field in this form.
|
FormControl |
createPatternField(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultValue)
Create a pattern field in this form.
|
FormControl |
createRadioButton(ControlContainer parent,
FrameRectangle rectangle,
String name,
String label,
String value)
Create a radio button in this form.
|
FormControl |
createTextBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultText,
boolean isMultipleLine)
Create a textbox in this form.
|
FormControl |
createTimeField(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultValue)
Create a time field in this form.
|
String |
getCommand()
Get the command to execute on a data source
|
FormTypeDefinition.FormCommandType |
getCommandType()
Get the type of command to execute on a data source
|
String |
getControlImplementation()
Get the implementation of the created control
|
String |
getDataSource()
Get the name of data source
|
String |
getFormName()
Get the form name
|
static Form |
getInstance(FormFormElement element)
Get a form instance by an instance of
FormFormElement. |
FormFormElement |
getOdfElement()
Return the instance of OdfElement which presents this structure.
|
Document |
getOwnerDocument()
Get the owner document of this component
|
void |
setCommand(String command)
Set a command to execute on a data source
|
void |
setCommandType(FormTypeDefinition.FormCommandType commandType)
Set the type of command to execute on a data source.
|
void |
setControlImplementation(String controlImpl)
Set the implementation of the created control
|
void |
setDataSource(String dataSource)
Set the data source to be used by the form
|
void |
setFormName(String name)
Set the name of this form
|
getComponentByElement, registerComponent, unregisterComponentprotected OfficeFormsElement mFormContainerElement
public Document getOwnerDocument()
ComponentgetOwnerDocument in class Componentpublic static Form getInstance(FormFormElement element)
FormFormElement.element - public Button createButton(ControlContainer parent, FrameRectangle rectangle, String name, String label)
FormcreateButton in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controllabel - - the text label of the buttonpublic FormControl createLabel(ControlContainer parent, FrameRectangle rectangle, String name, String text)
FormcreateLabel in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controltext - -default text of the labelpublic FormControl createTextBox(ControlContainer parent, FrameRectangle rectangle, String name, String defaultText, boolean isMultipleLine)
FormcreateTextBox in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controldefaultText - -default text of the textboxisMultipleLine - - if this textbox supports multiple lines inputpublic FormControl createListBox(ControlContainer parent, FrameRectangle rectangle, String name, boolean isMultiSelection, boolean isDropDown)
FormcreateListBox in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controlisMultiSelection - - support multi-selection or notisDropDown - - the drop-down list is visible or notpublic FormControl createComboBox(ControlContainer parent, FrameRectangle rectangle, String name, String defaultText, boolean isDropDown)
FormcreateComboBox in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controldefaultText - - the default text of comboboxisDropDown - - the drop-down list is visible or notpublic FormControl createRadioButton(ControlContainer parent, FrameRectangle rectangle, String name, String label, String value)
FormcreateRadioButton in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controllabel - - the label of this radio buttonvalue - - the value assign to this optionpublic FormControl createCheckBox(ControlContainer parent, FrameRectangle rectangle, String name, String label, String value)
FormcreateCheckBox in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controllabel - - the label of this check boxvalue - - the value assign to this optionpublic FormControl createDateField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
createDateField in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controldefaultValue - - the default value of this input field. It's a 6 digits number, e.g.
20121015 represents 2012-10-15.public FormControl createTimeField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
createTimeField in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controldefaultValue - - the default value of this input field. It's a 6 digits number, e.g.
15304000 represents 15:30:40.public FormControl createNumericField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
FormcreateNumericField in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controldefaultValue - - the default value of this input fieldpublic FormControl createPatternField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
FormcreatePatternField in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controldefaultValue - - the default value of this input fieldpublic FormControl createCurrencyField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
FormcreateCurrencyField in interface Formparent - - the element that contains this form controlrectangle - - the bounding rectangle used by this buttonname - - the name of the controldefaultValue - - the default value of this input fieldpublic void setControlImplementation(String controlImpl)
FormsetControlImplementation in interface FormcontrolImpl - - implementation of controlpublic void setFormName(String name)
FormsetFormName in interface Formname - - the form namepublic void setCommand(String command)
FormsetCommand in interface Formpublic void setCommandType(FormTypeDefinition.FormCommandType commandType)
FormsetCommandType in interface FormcommandType - the command typepublic void setDataSource(String dataSource)
FormsetDataSource in interface FormdataSource - - name of data sourcepublic FormFormElement getOdfElement()
ComponentgetOdfElement in interface FormgetOdfElement in class Componentpublic String getFormName()
FormgetFormName in interface Formpublic String getCommand()
FormgetCommand in interface Formpublic FormTypeDefinition.FormCommandType getCommandType()
FormgetCommandType in interface Formpublic String getControlImplementation()
FormgetControlImplementation in interface Formpublic String getDataSource()
FormgetDataSource in interface FormCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.