Class CurrencySymbol
java.lang.Object
com.independentsoft.office.odf.styles.CurrencySymbol
Represents whether a currency symbol is displayed in a currency style.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the CurrencySymbol class.CurrencySymbol(String text)Initializes a new instance of the CurrencySymbol class.CurrencySymbol(String text, String language)Initializes a new instance of the CurrencySymbol class.CurrencySymbol(String text, String language, String country)Initializes a new instance of the CurrencySymbol class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the country code.Gets the language code.getText()Gets the text of the currency symbol.voidsetCountry(String country)Sets the country code.voidsetLanguage(String language)Sets the language code.voidSets the text of the currency symbol.toString()Converts the value of the current CurrencySymbol object to its equivalent string representation.
-
Constructor Details
-
CurrencySymbol
public CurrencySymbol()Initializes a new instance of the CurrencySymbol class. -
CurrencySymbol
Initializes a new instance of the CurrencySymbol class.- Parameters:
text- the text
-
CurrencySymbol
Initializes a new instance of the CurrencySymbol class.- Parameters:
text- the textlanguage- the language
-
CurrencySymbol
Initializes a new instance of the CurrencySymbol class.- Parameters:
text- the textlanguage- the languagecountry- the country
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current CurrencySymbol 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.- Returns:
- the country
-
setCountry
Sets the country code.- Parameters:
country- the new country
-
getText
Gets the text of the currency symbol.- Returns:
- the text
-
setText
Sets the text of the currency symbol.- Parameters:
text- the new text
-