org.odftoolkit.simple.form
public interface FormContainer
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.
|
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.
|
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. |
OfficeFormsElement getFormContainerElement()
OfficeFormsElement
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.Form createForm(String name)
name
- - form name, represents attribute form:name
boolean removeForm(Form form)
form
- - the form to be removedForm getFormByName(String name)
name
- - the name of the formIterator<Form> getFormIterator()
boolean getApplyDesignMode()
form:apply-design-mode
which specifies
whether forms are presented in editable or non-editable state.boolean getAutomaticFocus()
form:automatic-focus
which specifies
whether the consumer loading the document should set the focus to a form
control.void setApplyDesignMode(boolean isDesignMode)
form:apply-design-mode
which specifies
whether forms are presented in editable or non-editable state.isDesignMode
- - true if forms in document are presented in editable state;
false if forms in document are presented in completed statevoid setAutomaticFocus(boolean isAutoFocus)
form:automatic-focus
which specifies
whether the consumer loading the document should set the focus to a form
control.isAutoFocus
- -true if sets the focus to a form control after loading the
document; false if else.Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.