Class FileName
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.FileName
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a field that displays the name of a file that is being edited.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFileName()Initializes a new instance of the FileName class.FileName(InternalXMLStreamReader reader)Instantiates a new file name. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Specifies how much of the file name to display.Returns the parent content element.getValue()Gets the name of the file that is being edited.booleanisFixed()Specifies whether the value of a field element is fixed.voidsetDisplayType(FileNameDisplayType displayType)Specifies how much of the file name to display.voidsetFixed(boolean isFixed)Specifies whether the value of a field element is fixed.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the name of the file that is being edited.toString()Converts the value of the current FileName object to its equivalent string representation.
-
Constructor Details
-
FileName
public FileName()Initializes a new instance of the FileName class. -
FileName
Instantiates a new file name.- 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 FileName object to its equivalent string representation. -
getDisplayType
Specifies how much of the file name to display.- Returns:
- the display type
-
setDisplayType
Specifies how much of the file name to display.- Parameters:
displayType- the new display type
-
isFixed
public boolean isFixed()Specifies whether the value of a field element is fixed. The defined values are: - false: value of field element may be replaced with a new value in future edits. - true: value of field element shall be preserved in future edits.- Returns:
- true, if is fixed
-
setFixed
public void setFixed(boolean isFixed)Specifies whether the value of a field element is fixed. The defined values are: - false: value of field element may be replaced with a new value in future edits. - true: value of field element shall be preserved in future edits.- Parameters:
isFixed- the new fixed
-
getValue
Gets the name of the file that is being edited.- Returns:
- the value
-
setValue
Sets the name of the file that is being edited.- Parameters:
value- the new value
-