Class UserVariableInputField
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.UserVariableInputField
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents alternative method of displaying user variables.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the UserVariableInputField class.Instantiates a new user variable input field. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the message that is displayed when users are prompted for input.getName()Gets the name of a user defined field that shall be declared already by a preceding UserVariableDeclaration objects.Returns the parent content element.getStyle()Gets the data style to format a field value.getValue()Gets the user variable.voidsetDescription(String name)Sets the message that is displayed when users are prompted for input.voidSets the name of a user defined field that shall be declared already by a preceding UserVariableDeclaration objects.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the data style to format a field value.voidSets the user variable.toString()Converts the value of the current UserVariableInputField object to its equivalent string representation.
-
Constructor Details
-
UserVariableInputField
public UserVariableInputField()Initializes a new instance of the UserVariableInputField class. -
UserVariableInputField
Instantiates a new user variable input field.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classField- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classField- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classField- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein classField- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current UserVariableInputField object to its equivalent string representation. -
getName
Gets the name of a user defined field that shall be declared already by a preceding UserVariableDeclaration objects.- Returns:
- the name
-
setName
Sets the name of a user defined field that shall be declared already by a preceding UserVariableDeclaration objects.- Parameters:
name- the new name
-
getDescription
Gets the message that is displayed when users are prompted for input.- Returns:
- the description
-
setDescription
Sets the message that is displayed when users are prompted for input.- Parameters:
name- the new description
-
getStyle
Gets the data style to format a field value.- Returns:
- the style
-
setStyle
Sets the data style to format a field value.- Parameters:
style- the new style
-
getValue
Gets the user variable.- Returns:
- the value
-
setValue
Sets the user variable.- Parameters:
value- the new value
-