|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FormContainer
FormContainer is a container which maintains Form(s) as element(s).
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 removed
Form getFormByName(String name)
name
- - the name of the form
Iterator<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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |