Class DateStyle
java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.DateStyle
Represents a style for date 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.getDay()Gets the day of a month in a date.Gets the day of a week in a date.Gets the day of week text.Gets the day text.getEra()Gets the era in which a year is counted.Gets the era text.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.getMonth()Gets the month in a date.Gets the month text.Gets the quarter of the year in a date.Gets the quarter 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.Gets the week of a year in a date.Gets the week of year text.getYear()Gets the year in a date.Gets the yer text.booleanSpecifies whether data is ordered to match the default order for the language and country of a data style.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.voidsetAutoOrder(boolean autoOrder)Specifies whether data is ordered to match the default order for the language and country of a data style.voidsetCountry(String country)Sets the country code for a data style.voidSets the day of a month in a date.voidsetDayOfWeek(DayOfWeek dayOfWeek)Sets the day of a week in a date.voidsetDayOfWeekText(String dayOfWeekText)Sets the day of week text.voidsetDayText(String dayText)Sets the day text.voidSets the era in which a year is counted.voidsetEraText(String eraText)Sets the era text.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.voidSets the month in a date.voidsetMonthText(String monthText)Sets the month text.voidsetQuarter(Quarter quarter)Sets the quarter of the year in a date.voidsetQuarterText(String quarterText)Sets the quarter 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.voidsetWeekOfYear(WeekOfYear weekOfYear)Sets the week of a year in a date.voidsetWeekOfYearText(String weekOfYearText)Sets the week of year text.voidSets the year in a date.voidsetYearText(String yearText)Sets the year text.toString()Converts the value of the current DateStyle object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.styles.Style
getDisplayName, getName, setDisplayName, setName
-
Constructor Details
-
DateStyle
public DateStyle()Initializes a new instance of the DateStyle class. -
DateStyle
Initializes a new instance of the DateStyle 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 DateStyle 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
-
isAutoOrder
public boolean isAutoOrder()Specifies whether data is ordered to match the default order for the language and country of a data style.- Returns:
- true, if is auto order
-
setAutoOrder
public void setAutoOrder(boolean autoOrder)Specifies whether data is ordered to match the default order for the language and country of a data style.- Parameters:
autoOrder- the new auto order
-
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
-
getDay
Gets the day of a month in a date.- Returns:
- the day
-
setDay
Sets the day of a month in a date.- Parameters:
day- the new day
-
getMonth
Gets the month in a date.- Returns:
- the month
-
setMonth
Sets the month in a date.- Parameters:
month- the new month
-
getYear
Gets the year in a date.- Returns:
- the year
-
setYear
Sets the year in a date.- Parameters:
year- the new year
-
getEra
Gets the era in which a year is counted.- Returns:
- the era
-
setEra
Sets the era in which a year is counted.- Parameters:
era- the new era
-
getDayOfWeek
Gets the day of a week in a date.- Returns:
- the day of week
-
setDayOfWeek
Sets the day of a week in a date.- Parameters:
dayOfWeek- the new day of week
-
getWeekOfYear
Gets the week of a year in a date.- Returns:
- the week of year
-
setWeekOfYear
Sets the week of a year in a date.- Parameters:
weekOfYear- the new week of year
-
getQuarter
Gets the quarter of the year in a date.- Returns:
- the quarter
-
setQuarter
Sets the quarter of the year in a date.- Parameters:
quarter- the new quarter
-
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
-
getDayText
Gets the day text.- Returns:
- the day text
-
setDayText
Sets the day text.- Parameters:
dayText- the new day text
-
getMonthText
Gets the month text.- Returns:
- the month text
-
setMonthText
Sets the month text.- Parameters:
monthText- the new month text
-
getYearText
Gets the yer text.- Returns:
- the year text
-
setYearText
Sets the year text.- Parameters:
yearText- the new year text
-
getEraText
Gets the era text.- Returns:
- the era text
-
setEraText
Sets the era text.- Parameters:
eraText- the new era text
-
getDayOfWeekText
Gets the day of week text.- Returns:
- the day of week text
-
setDayOfWeekText
Sets the day of week text.- Parameters:
dayOfWeekText- the new day of week text
-
getWeekOfYearText
Gets the week of year text.- Returns:
- the week of year text
-
setWeekOfYearText
Sets the week of year text.- Parameters:
weekOfYearText- the new week of year text
-
getQuarterText
Gets the quarter text.- Returns:
- the quarter text
-
setQuarterText
Sets the quarter text.- Parameters:
quarterText- the new quarter text
-
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
-