Class HiddenText
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.HiddenText
- All Implemented Interfaces:
IContentElement,IParagraphContent
Hides the text it contains when a specified condition is true.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the HiddenText class.HiddenText(InternalXMLStreamReader reader)Instantiates a new hidden text. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the Boolean expression.Returns all content elements.Returns the parent content element.getText()Gets the text to display if a condition has the value of false.getValue()Gets the text.booleanisHidden()Specifies whether a field or or paragraph is currently visible.voidsetCondition(String condition)Sets the Boolean expression.voidsetHidden(boolean isHidden)Specifies whether a field or or paragraph is currently visible.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the text to display if a condition has the value of false.voidSets the text.toString()Converts the value of the current HiddenText object to its equivalent string representation.
-
Constructor Details
-
HiddenText
public HiddenText()Initializes a new instance of the HiddenText class. -
HiddenText
Instantiates a new hidden text.- 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 HiddenText object to its equivalent string representation. -
getCondition
Gets the Boolean expression.- Returns:
- the condition
-
setCondition
Sets the Boolean expression.- Parameters:
condition- the new condition
-
getText
Gets the text to display if a condition has the value of false.- Returns:
- the text
-
setText
Sets the text to display if a condition has the value of false.- Parameters:
text- the new text
-
isHidden
public boolean isHidden()Specifies whether a field or or paragraph is currently visible.- Returns:
- true, if is hidden
-
setHidden
public void setHidden(boolean isHidden)Specifies whether a field or or paragraph is currently visible.- Parameters:
isHidden- the new hidden
-
getValue
Gets the text.- Returns:
- the value
-
setValue
Sets the text.- Parameters:
value- the new value
-