|
||||||||||
| 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.OOForm
public class OOForm
This class implements the interface of Form according to the implementation of OpenOffice.org.
| Field Summary | |
|---|---|
protected OfficeFormsElement |
mFormContainerElement
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.odftoolkit.simple.Component |
|---|
getComponentByElement, registerComponent, unregisterComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OfficeFormsElement mFormContainerElement
| Method Detail |
|---|
public Document getOwnerDocument()
Component
getOwnerDocument in class Componentpublic static Form getInstance(FormFormElement element)
FormFormElement.
element -
public Button createButton(ControlContainer parent,
FrameRectangle rectangle,
String name,
String label)
Form
createButton 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 button
public FormControl createLabel(ControlContainer parent,
FrameRectangle rectangle,
String name,
String text)
Form
createLabel 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 label
public FormControl createTextBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultText,
boolean isMultipleLine)
Form
createTextBox 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 input
public FormControl createListBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
boolean isMultiSelection,
boolean isDropDown)
Form
createListBox 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 not
public FormControl createComboBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultText,
boolean isDropDown)
Form
createComboBox 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 not
public FormControl createRadioButton(ControlContainer parent,
FrameRectangle rectangle,
String name,
String label,
String value)
Form
createRadioButton 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 option
public FormControl createCheckBox(ControlContainer parent,
FrameRectangle rectangle,
String name,
String label,
String value)
Form
createCheckBox 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 option
public 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)
Form
createNumericField 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
public FormControl createPatternField(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultValue)
Form
createPatternField 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
public FormControl createCurrencyField(ControlContainer parent,
FrameRectangle rectangle,
String name,
String defaultValue)
Form
createCurrencyField 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
public void setControlImplementation(String controlImpl)
Form
setControlImplementation in interface FormcontrolImpl - - implementation of controlpublic void setFormName(String name)
Form
setFormName in interface Formname - - the form namepublic void setCommand(String command)
Form
setCommand in interface Formpublic void setCommandType(FormTypeDefinition.FormCommandType commandType)
Form
setCommandType in interface FormcommandType - the command typepublic void setDataSource(String dataSource)
Form
setDataSource in interface FormdataSource - - name of data sourcepublic FormFormElement getOdfElement()
Component
getOdfElement in interface FormgetOdfElement in class Componentpublic String getFormName()
Form
getFormName in interface Formpublic String getCommand()
Form
getCommand in interface Formpublic FormTypeDefinition.FormCommandType getCommandType()
Form
getCommandType in interface Formpublic String getControlImplementation()
Form
getControlImplementation in interface Formpublic String getDataSource()
Form
getDataSource in interface Form
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||