Class PercentageStyle
java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.PercentageStyle
Represents a style for decimal numbers.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.styles.Style
displayName, name -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the PercentageStyle class.PercentageStyle(String name)Initializes a new instance of the PercentageStyle class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the country code for a data style.Gets the language code.Gets the display formatting properties for a decimal number.Specifies what to display before a number.Contains a collection of StyleMapping objects.Specifies what to display before and after the number.Specifies formatting properties for text.getTitle()Gets the title of a data style.Gets the country code in conformance with [RFC5646].Specifies which number characters to use.Gets the language code in conformance with [RFC5646].Gets the transliteration-format of a number system.booleanSpecifies whether unused style in a document are retained or discarded by consumers.voidsetCountry(String country)Sets the country code for a data style.voidsetLanguage(String language)Sets the language code.voidSets the display formatting properties for a decimal number.voidsetPrefixText(String prefixText)Specifies what to display before a number.voidsetSuffixText(String suffixText)Specifies what to display before and after the number.voidSets the title of a data style.voidsetTransliterationCountry(String transliterationCountry)Sets the country code in conformance with [RFC5646].voidsetTransliterationFormat(String transliterationFormat)Specifies which number characters to use.voidsetTransliterationLanguage(String transliterationLanguage)Sets the language code in conformance with [RFC5646].voidsetTransliterationStyle(TransliterationStyle transliterationStyle)Sets the transliteration-format of a number system.voidsetVolatile(boolean isVolatile)Specifies whether unused style in a document are retained or discarded by consumers.toString()Converts the value of the current PercentageStyle object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.styles.Style
getDisplayName, getName, setDisplayName, setName
-
Constructor Details
-
PercentageStyle
public PercentageStyle()Initializes a new instance of the PercentageStyle class. -
PercentageStyle
Initializes a new instance of the PercentageStyle class.- Parameters:
name- the name
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current PercentageStyle object to its equivalent string representation. -
getLanguage
Gets the language code.- Returns:
- the language
-
setLanguage
Sets the language code.- Parameters:
language- the new language
-
getCountry
Gets the country code for a data style.- Returns:
- the country
-
setCountry
Sets the country code for a data style.- Parameters:
country- the new country
-
getTitle
Gets the title of a data style.- Returns:
- the title
-
setTitle
Sets the title of a data style.- Parameters:
title- the new title
-
isVolatile
public boolean isVolatile()Specifies whether unused style in a document are retained or discarded by consumers.- Returns:
- true, if is volatile
-
setVolatile
public void setVolatile(boolean isVolatile)Specifies whether unused style in a document are retained or discarded by consumers.- Parameters:
isVolatile- the new volatile
-
getTransliterationFormat
Specifies which number characters to use.- Returns:
- the transliteration format
-
setTransliterationFormat
Specifies which number characters to use.- Parameters:
transliterationFormat- the new transliteration format
-
getTransliterationLanguage
Gets the language code in conformance with [RFC5646].- Returns:
- the transliteration language
-
setTransliterationLanguage
Sets the language code in conformance with [RFC5646].- Parameters:
transliterationLanguage- the new transliteration language
-
getTransliterationCountry
Gets the country code in conformance with [RFC5646].- Returns:
- the transliteration country
-
setTransliterationCountry
Sets the country code in conformance with [RFC5646].- Parameters:
transliterationCountry- the new transliteration country
-
getTransliterationStyle
Gets the transliteration-format of a number system.- Returns:
- the transliteration style
-
setTransliterationStyle
Sets the transliteration-format of a number system.- Parameters:
transliterationStyle- the new transliteration style
-
getTextProperties
Specifies formatting properties for text.- Returns:
- the text properties
-
getNumber
Gets the display formatting properties for a decimal number.- Returns:
- the number
-
setNumber
Sets the display formatting properties for a decimal number.- Parameters:
number- the new number
-
getPrefixText
Specifies what to display before a number.- Returns:
- the prefix text
-
setPrefixText
Specifies what to display before a number.- Parameters:
prefixText- the new prefix text
-
getSuffixText
Specifies what to display before and after the number.- Returns:
- the suffix text
-
setSuffixText
Specifies what to display before and after the number.- Parameters:
suffixText- the new suffix text
-
getStyleMappings
Contains a collection of StyleMapping objects.- Returns:
- the style mappings
-