Class TimeStyle
java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.TimeStyle
Represents a style for time values.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.styles.Style
displayName, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.getAmPm()Specifies whether AM/PM is included as part of a date or time.Gets the am/pm text.Gets the country code for a data style.Gets the source of definitions of the short and long display formats.getHours()Specifies whether hours are displayed as part of a date or time.Gets the hours text.Gets the language code.Specifies whether minutes are displayed as part of a date or time.Gets the minutes text.Specifies whether seconds are displayed as part of a date or time.Gets the seconds text.Contains a collection of StyleMapping objects.getText()Gets the text.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.voidSpecifies whether AM/PM is included as part of a date or time.voidsetAmPmText(String amPmText)Sets the am/pm text.voidsetCountry(String country)Sets the country code for a data style.voidsetFormatSource(FormatSource formatSource)Sets the source of definitions of the short and long display formats.voidSpecifies whether hours are displayed as part of a date or time.voidsetHoursText(String hoursText)Sets the hours text.voidsetLanguage(String language)Sets the language code.voidsetMinutes(Minutes minutes)Specifies whether minutes are displayed as part of a date or time.voidsetMinutesText(String minutesText)Sets the minutes text.voidsetSeconds(Seconds seconds)Specifies whether seconds are displayed as part of a date or time.voidsetSecondsText(String secondsText)Sets the seconds text.voidSets the text.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 TimeStyle object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.styles.Style
getDisplayName, getName, setDisplayName, setName
-
Constructor Details
-
TimeStyle
public TimeStyle()Initializes a new instance of the TimeStyle class. -
TimeStyle
Initializes a new instance of the TimeStyle 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 TimeStyle 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
-
getFormatSource
Gets the source of definitions of the short and long display formats.- Returns:
- the format source
-
setFormatSource
Sets the source of definitions of the short and long display formats.- Parameters:
formatSource- the new format source
-
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
-
getText
Gets the text.- Returns:
- the text
-
setText
Sets the text.- Parameters:
text- the new text
-
getStyleMappings
Contains a collection of StyleMapping objects.- Returns:
- the style mappings
-
getHours
Specifies whether hours are displayed as part of a date or time.- Returns:
- the hours
-
setHours
Specifies whether hours are displayed as part of a date or time.- Parameters:
hours- the new hours
-
getMinutes
Specifies whether minutes are displayed as part of a date or time.- Returns:
- the minutes
-
setMinutes
Specifies whether minutes are displayed as part of a date or time.- Parameters:
minutes- the new minutes
-
getSeconds
Specifies whether seconds are displayed as part of a date or time.- Returns:
- the seconds
-
setSeconds
Specifies whether seconds are displayed as part of a date or time.- Parameters:
seconds- the new seconds
-
getAmPm
Specifies whether AM/PM is included as part of a date or time.- Returns:
- the am pm
-
setAmPm
Specifies whether AM/PM is included as part of a date or time.- Parameters:
amPm- the new am pm
-
getHoursText
Gets the hours text.- Returns:
- the hours text
-
setHoursText
Sets the hours text.- Parameters:
hoursText- the new hours text
-
getMinutesText
Gets the minutes text.- Returns:
- the minutes text
-
setMinutesText
Sets the minutes text.- Parameters:
minutesText- the new minutes text
-
getSecondsText
Gets the seconds text.- Returns:
- the seconds text
-
setSecondsText
Sets the seconds text.- Parameters:
secondsText- the new seconds text
-
getAmPmText
Gets the am/pm text.- Returns:
- the am pm text
-
setAmPmText
Sets the am/pm text.- Parameters:
amPmText- the new am pm text
-