Class TimeStyle

java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.TimeStyle

public class TimeStyle extends Style
Represents a style for time values.
  • Constructor Details

    • TimeStyle

      public TimeStyle()
      Initializes a new instance of the TimeStyle class.
    • TimeStyle

      public TimeStyle(String name)
      Initializes a new instance of the TimeStyle class.
      Parameters:
      name - the name
  • Method Details

    • clone

      public TimeStyle clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in class Style
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current TimeStyle object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getLanguage

      public String getLanguage()
      Gets the language code.
      Returns:
      the language
    • setLanguage

      public void setLanguage(String language)
      Sets the language code.
      Parameters:
      language - the new language
    • getCountry

      public String getCountry()
      Gets the country code for a data style.
      Returns:
      the country
    • setCountry

      public void setCountry(String country)
      Sets the country code for a data style.
      Parameters:
      country - the new country
    • getTitle

      public String getTitle()
      Gets the title of a data style.
      Returns:
      the title
    • setTitle

      public void setTitle(String title)
      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

      public FormatSource getFormatSource()
      Gets the source of definitions of the short and long display formats.
      Returns:
      the format source
    • setFormatSource

      public void setFormatSource(FormatSource formatSource)
      Sets the source of definitions of the short and long display formats.
      Parameters:
      formatSource - the new format source
    • getTransliterationFormat

      public String getTransliterationFormat()
      Specifies which number characters to use.
      Returns:
      the transliteration format
    • setTransliterationFormat

      public void setTransliterationFormat(String transliterationFormat)
      Specifies which number characters to use.
      Parameters:
      transliterationFormat - the new transliteration format
    • getTransliterationLanguage

      public String getTransliterationLanguage()
      Gets the language code in conformance with [RFC5646].
      Returns:
      the transliteration language
    • setTransliterationLanguage

      public void setTransliterationLanguage(String transliterationLanguage)
      Sets the language code in conformance with [RFC5646].
      Parameters:
      transliterationLanguage - the new transliteration language
    • getTransliterationCountry

      public String getTransliterationCountry()
      Gets the country code in conformance with [RFC5646].
      Returns:
      the transliteration country
    • setTransliterationCountry

      public void setTransliterationCountry(String transliterationCountry)
      Sets the country code in conformance with [RFC5646].
      Parameters:
      transliterationCountry - the new transliteration country
    • getTransliterationStyle

      public TransliterationStyle getTransliterationStyle()
      Gets the transliteration-format of a number system.
      Returns:
      the transliteration style
    • setTransliterationStyle

      public void setTransliterationStyle(TransliterationStyle transliterationStyle)
      Sets the transliteration-format of a number system.
      Parameters:
      transliterationStyle - the new transliteration style
    • getTextProperties

      public TextProperties getTextProperties()
      Specifies formatting properties for text.
      Returns:
      the text properties
    • getText

      public String getText()
      Gets the text.
      Returns:
      the text
    • setText

      public void setText(String text)
      Sets the text.
      Parameters:
      text - the new text
    • getStyleMappings

      public List<StyleMapping> getStyleMappings()
      Contains a collection of StyleMapping objects.
      Returns:
      the style mappings
    • getHours

      public Hours getHours()
      Specifies whether hours are displayed as part of a date or time.
      Returns:
      the hours
    • setHours

      public void setHours(Hours hours)
      Specifies whether hours are displayed as part of a date or time.
      Parameters:
      hours - the new hours
    • getMinutes

      public Minutes getMinutes()
      Specifies whether minutes are displayed as part of a date or time.
      Returns:
      the minutes
    • setMinutes

      public void setMinutes(Minutes minutes)
      Specifies whether minutes are displayed as part of a date or time.
      Parameters:
      minutes - the new minutes
    • getSeconds

      public Seconds getSeconds()
      Specifies whether seconds are displayed as part of a date or time.
      Returns:
      the seconds
    • setSeconds

      public void setSeconds(Seconds seconds)
      Specifies whether seconds are displayed as part of a date or time.
      Parameters:
      seconds - the new seconds
    • getAmPm

      public AmPm getAmPm()
      Specifies whether AM/PM is included as part of a date or time.
      Returns:
      the am pm
    • setAmPm

      public void setAmPm(AmPm amPm)
      Specifies whether AM/PM is included as part of a date or time.
      Parameters:
      amPm - the new am pm
    • getHoursText

      public String getHoursText()
      Gets the hours text.
      Returns:
      the hours text
    • setHoursText

      public void setHoursText(String hoursText)
      Sets the hours text.
      Parameters:
      hoursText - the new hours text
    • getMinutesText

      public String getMinutesText()
      Gets the minutes text.
      Returns:
      the minutes text
    • setMinutesText

      public void setMinutesText(String minutesText)
      Sets the minutes text.
      Parameters:
      minutesText - the new minutes text
    • getSecondsText

      public String getSecondsText()
      Gets the seconds text.
      Returns:
      the seconds text
    • setSecondsText

      public void setSecondsText(String secondsText)
      Sets the seconds text.
      Parameters:
      secondsText - the new seconds text
    • getAmPmText

      public String getAmPmText()
      Gets the am/pm text.
      Returns:
      the am pm text
    • setAmPmText

      public void setAmPmText(String amPmText)
      Sets the am/pm text.
      Parameters:
      amPmText - the new am pm text