Class OfficeForms
java.lang.Object
com.independentsoft.office.odf.forms.OfficeForms
- All Implemented Interfaces:
IContentElement
Represents a container for a form.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the OfficeForms class.OfficeForms(InternalXMLStreamReader reader)Instantiates a new office forms. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Contains a collection of IOfficeFormsContent objects.Returns all content elements.Contains a collection of IEventListener objects.Returns the parent content element.Contains a collection of FormProperty objects.booleanSpecifies whether the consumer is supposed to present the forms in this document in editable or fill-out state.booleanSpecifies whether the consumer loading the document should set the focus to a form control.voidsetApplyDesignMode(boolean applyDesignMode)Specifies whether the consumer is supposed to present the forms in this document in editable or fill-out state.voidsetAutomaticFocus(boolean automaticFocus)Specifies whether the consumer loading the document should set the focus to a form control.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current OfficeForms object to its equivalent string representation.
-
Constructor Details
-
OfficeForms
public OfficeForms()Initializes a new instance of the OfficeForms class. -
OfficeForms
Instantiates a new office forms.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current OfficeForms object to its equivalent string representation. -
getContent
Contains a collection of IOfficeFormsContent objects.- Returns:
- the content
-
getProperties
Contains a collection of FormProperty objects.- Returns:
- the properties
-
getEventListeners
Contains a collection of IEventListener objects.- Returns:
- the event listeners
-
isAutomaticFocus
public boolean isAutomaticFocus()Specifies whether the consumer loading the document should set the focus to a form control.- Returns:
- true, if is automatic focus
-
setAutomaticFocus
public void setAutomaticFocus(boolean automaticFocus)Specifies whether the consumer loading the document should set the focus to a form control.- Parameters:
automaticFocus- the new automatic focus
-
isApplyDesignMode
public boolean isApplyDesignMode()Specifies whether the consumer is supposed to present the forms in this document in editable or fill-out state.- Returns:
- true, if is apply design mode
-
setApplyDesignMode
public void setApplyDesignMode(boolean applyDesignMode)Specifies whether the consumer is supposed to present the forms in this document in editable or fill-out state.- Parameters:
applyDesignMode- the new apply design mode
-