Package com.independentsoft.office.odf
Class Space
java.lang.Object
com.independentsoft.office.odf.Space
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents the [UNICODE] character SPACE (U+0020).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.intgetCount()Gets the number of SPACE (U+0020) characters.Returns the parent content element.voidsetCount(int count)Sets the number of SPACE (U+0020) characters.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current Space object to its equivalent string representation.
-
Constructor Details
-
Space
public Space()Initializes a new instance of the Space class. -
Space
public Space(int count)Initializes a new instance of the Space class.- Parameters:
count- the count
-
-
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- Specified by:
clonein interfaceIParagraphContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Space object to its equivalent string representation. -
getCount
public int getCount()Gets the number of SPACE (U+0020) characters.- Returns:
- the count
-
setCount
public void setCount(int count)Sets the number of SPACE (U+0020) characters.- Parameters:
count- the new count
-