|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.form.AbstractFormContainer
public abstract class AbstractFormContainer
AbstractFormContainer is an abstract implementation of the FormContainer interface, with a default implementation for every method defined in FormContainer, except getFormContainerElement(). A subclass must implement the abstract method getFormContainerElement().
| Constructor Summary | |
|---|---|
AbstractFormContainer()
|
|
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFormContainer()
| Method Detail |
|---|
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)
FormContainer
createForm in interface FormContainername - - form name, represents attribute form:name
public boolean removeForm(Form form)
FormContainer
removeForm in interface FormContainerform - - the form to be removed
public Form getFormByName(String name)
FormContainer
getFormByName in interface FormContainername - - the name of the form
public Iterator<Form> getFormIterator()
FormContainer
getFormIterator 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||