Class NumberLevelStyle
java.lang.Object
com.independentsoft.office.odf.styles.NumberLevelStyle
- All Implemented Interfaces:
IListStyleContent
Represents a list style where list items are preceded by numbers.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the NumberLevelStyle class.NumberLevelStyle(String name)Initializes a new instance of the NumberLevelStyle class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.intGets the number of levels whose numbers are displayed at the current level.intgetLevel()Gets the level of an outline or number list style.Specifies formatting properties for list level.getName()Gets the style name.Gets the numbering sequence.Specifies what to display before a number.intGets the value that restarts numbering at the current list level.Specifies what to display before and after the number.Specifies formatting properties for text.voidsetDisplayLevels(int displayLevels)Sets the number of levels whose numbers are displayed at the current level.voidsetLevel(int level)Sets the level of an outline or number list style.voidSets the style name.voidsetNumberFormat(String numberFormat)Sets the numbering sequence.voidsetPrefixCharacter(String prefixCharacter)Specifies what to display before a number.voidsetStartValue(int startValue)Sets the value that restarts numbering at the current list level.voidsetSuffixCharacter(String suffixCharacter)Specifies what to display before and after the number.toString()Converts the value of the current NumberLevelStyle object to its equivalent string representation.
-
Constructor Details
-
NumberLevelStyle
public NumberLevelStyle()Initializes a new instance of the NumberLevelStyle class. -
NumberLevelStyle
Initializes a new instance of the NumberLevelStyle class.- Parameters:
name- the name
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIListStyleContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current NumberLevelStyle object to its equivalent string representation. -
getTextProperties
Specifies formatting properties for text.- Returns:
- the text properties
-
getListLevelProperties
Specifies formatting properties for list level.- Returns:
- the list level properties
-
getName
Gets the style name.- Returns:
- the name
-
setName
Sets the style name.- Parameters:
name- the new name
-
getPrefixCharacter
Specifies what to display before a number.- Returns:
- the prefix character
-
setPrefixCharacter
Specifies what to display before a number.- Parameters:
prefixCharacter- the new prefix character
-
getSuffixCharacter
Specifies what to display before and after the number.- Returns:
- the suffix character
-
setSuffixCharacter
Specifies what to display before and after the number.- Parameters:
suffixCharacter- the new suffix character
-
getNumberFormat
Gets the numbering sequence.- Returns:
- the number format
-
setNumberFormat
Sets the numbering sequence.- Parameters:
numberFormat- the new number format
-
getLevel
public int getLevel()Gets the level of an outline or number list style.- Returns:
- the level
-
setLevel
public void setLevel(int level)Sets the level of an outline or number list style.- Parameters:
level- the new level
-
getDisplayLevels
public int getDisplayLevels()Gets the number of levels whose numbers are displayed at the current level.- Returns:
- the display levels
-
setDisplayLevels
public void setDisplayLevels(int displayLevels)Sets the number of levels whose numbers are displayed at the current level.- Parameters:
displayLevels- the new display levels
-
getStartValue
public int getStartValue()Gets the value that restarts numbering at the current list level.- Returns:
- the start value
-
setStartValue
public void setStartValue(int startValue)Sets the value that restarts numbering at the current list level.- Parameters:
startValue- the new start value
-