public abstract class AbstractFormContainer extends Object implements FormContainer
| Constructor and Description |
|---|
AbstractFormContainer() |
| Modifier and Type | Method and Description |
|---|---|
Form |
createForm(String name)
create and add a form into this container.
|
boolean |
getApplyDesignMode()
Get the attribute
form:apply-design-mode which specifies whether forms are
presented in editable or non-editable state. |
boolean |
getAutomaticFocus()
Get the attribute
form:automatic-focus which specifies whether the consumer
loading the document should set the focus to a form control. |
Form |
getFormByName(String name)
Return a form whose name is a given value.
|
abstract OfficeFormsElement |
getFormContainerElement()
Get the ODF element
OfficeFormsElement which can have FormFormElement
as child element directly according to ODF specification. |
Iterator<Form> |
getFormIterator()
Get an iterator to traverse each form in this container.
|
FormProvider |
getProvider()
Get the form provider of this container.
|
boolean |
removeForm(Form form)
Remove the form and its binding shape.
|
void |
setApplyDesignMode(boolean isDesignMode)
Set the attribute
form:apply-design-mode which specifies whether forms are
presented in editable or non-editable state. |
void |
setAutomaticFocus(boolean isAutoFocus)
Set the attribute
form:automatic-focus which specifies whether the consumer
loading the document should set the focus to a form control. |
void |
setProvider(FormProvider provider)
Set the form provider of this container.
|
public abstract OfficeFormsElement getFormContainerElement()
FormContainerOfficeFormsElement which can have FormFormElement
as child element directly according to ODF specification. This element will help to find the
position to insert a new FormFormElement element.getFormContainerElement in interface FormContainerpublic Form createForm(String name)
FormContainercreateForm in interface FormContainername - - form name, represents attribute form:namepublic boolean removeForm(Form form)
FormContainerremoveForm in interface FormContainerform - - the form to be removedpublic Form getFormByName(String name)
FormContainergetFormByName in interface FormContainername - - the name of the formpublic Iterator<Form> getFormIterator()
FormContainergetFormIterator in interface FormContainerpublic boolean getApplyDesignMode()
FormContainerform:apply-design-mode which specifies whether forms are
presented in editable or non-editable state.getApplyDesignMode in interface FormContainerpublic boolean getAutomaticFocus()
FormContainerform:automatic-focus which specifies whether the consumer
loading the document should set the focus to a form control.getAutomaticFocus in interface FormContainerpublic void setApplyDesignMode(boolean isDesignMode)
FormContainerform:apply-design-mode which specifies whether forms are
presented in editable or non-editable state.setApplyDesignMode in interface FormContainerisDesignMode - - true if forms in document are presented in editable state; false if forms
in document are presented in completed statepublic void setAutomaticFocus(boolean isAutoFocus)
FormContainerform:automatic-focus which specifies whether the consumer
loading the document should set the focus to a form control.setAutomaticFocus in interface FormContainerisAutoFocus - -true if sets the focus to a form control after loading the document; false
if else.public void setProvider(FormProvider provider)
provider - - which is used to instantiate a formpublic FormProvider getProvider()
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.