Class TextInputField
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.TextInputField
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a text input field. A text input field is used in a user interface to prompt a user to input text. This text is stored and displayed as the content of this element until it is replaced by a user.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the TextInputField class.TextInputField(InternalXMLStreamReader reader)Instantiates a new text 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 a message that is displayed when users are prompted for input.Returns the parent content element.getValue()Gets the text input.voidsetDescription(String description)Sets a message that is displayed when users are prompted for input.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the text input.toString()Converts the value of the current TextInputField object to its equivalent string representation.
-
Constructor Details
-
TextInputField
public TextInputField()Initializes a new instance of the TextInputField class. -
TextInputField
Instantiates a new text 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 TextInputField object to its equivalent string representation. -
getDescription
Gets a message that is displayed when users are prompted for input.- Returns:
- the description
-
setDescription
Sets a message that is displayed when users are prompted for input.- Parameters:
description- the new description
-
getValue
Gets the text input.- Returns:
- the value
-
setValue
Sets the text input.- Parameters:
value- the new value
-