public interface Form
Modifier and Type | Method and Description |
---|---|
FormControl |
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 date 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
|
FormFormElement |
getOdfElement()
Get the instance of
FormFormElemnt element. |
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
|
FormControl createButton(ControlContainer parent, FrameRectangle rectangle, String name, String label)
parent
- - the element that contains this form controlrectangle
- - the bounding rectangle used by this buttonname
- - the name of the controllabel
- - the text label of the buttonFormControl createLabel(ControlContainer parent, FrameRectangle rectangle, String name, String text)
parent
- - the element that contains this form controlrectangle
- - the bounding rectangle used by this buttonname
- - the name of the controltext
- -default text of the labelFormControl createTextBox(ControlContainer parent, FrameRectangle rectangle, String name, String defaultText, boolean isMultipleLine)
parent
- - 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 inputFormControl createListBox(ControlContainer parent, FrameRectangle rectangle, String name, boolean isMultiSelection, boolean isDropDown)
parent
- - 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 notFormControl createComboBox(ControlContainer parent, FrameRectangle rectangle, String name, String defaultText, boolean isDropDown)
parent
- - 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 notFormControl createRadioButton(ControlContainer parent, FrameRectangle rectangle, String name, String label, String value)
parent
- - 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 optionFormControl createCheckBox(ControlContainer parent, FrameRectangle rectangle, String name, String label, String value)
parent
- - 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 optionFormControl createDateField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
parent
- - 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 fieldFormControl createTimeField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
parent
- - 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 fieldFormControl createNumericField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
parent
- - 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 fieldFormControl createPatternField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
parent
- - 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 fieldFormControl createCurrencyField(ControlContainer parent, FrameRectangle rectangle, String name, String defaultValue)
parent
- - 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 fieldvoid setFormName(String name)
name
- - the form nameString getFormName()
void setControlImplementation(String controlImpl)
controlImpl
- - implementation of controlString getControlImplementation()
void setDataSource(String dataSource)
dataSource
- - name of data sourceString getDataSource()
void setCommandType(FormTypeDefinition.FormCommandType commandType)
commandType
- the command typeFormTypeDefinition.FormCommandType getCommandType()
void setCommand(String command)
command
- String getCommand()
FormFormElement getOdfElement()
FormFormElemnt
element.FormFormElemnt
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.