Class DateAdapterOptions
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.adapters.DateAdapterOptions
-
public final class DateAdapterOptions extends NativeObjectContainer
Simple class to map LUXON options to provide to date time adapter.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateAdapterOptions.DateAdaptersOptionsFactory
Date adapter options factory for LUXON option.
It should be use to get stored LUXON options from global, chart options and configurations.
-
Field Summary
Fields Modifier and Type Field Description static DateAdapterOptions.DateAdaptersOptionsFactory
FACTORY
Date adapter options factory for LUXON option.
It should be use to get stored LUXON options from global, chart options and configurations.
-
Constructor Summary
Constructors Constructor Description DateAdapterOptions()
Creates the object with an empty native object instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateAdapter
create()
Creates aDateAdapter
using a clone of this object as options for the date adapter instance.CLocale
getLocale()
Returns the locale that LUXON must use by the date adapter.
See here the details about locale in LUXON.NumberingSystem
getNumberingSystem()
Returns the name of numbering systems that LUXON must use by the date adapter.
See here the details about numbering system in LUXON.Calendar
getOutputCalendar()
Returns the name of calendaring systems that LUXON must use by the date adapter.
See here the list of implemented and available.TimeZone
getZone()
Returns the zone that LUXON must use by the date adapter.
See here the details about time zone in LUXON.void
setLocale(CLocale locale)
Sets the locale that LUXON must use by the date adapter.
See here the details about locale in LUXON.void
setNumberingSystem(NumberingSystem numberingSystem)
Sets the name of numbering systems that LUXON must use by the date adapter.
See here the details about numbering system in LUXON.void
setOutputCalendar(Calendar outputCalendar)
Sets the name of calendaring systems that LUXON must use by the date adapter.
See here the list of implemented and available.void
setZone(TimeZone zone)
Sets the zone that LUXON must use by the date adapter.
See here the details about time zone in LUXON.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Field Detail
-
FACTORY
public static final DateAdapterOptions.DateAdaptersOptionsFactory FACTORY
Date adapter options factory for LUXON option.
It should be use to get stored LUXON options from global, chart options and configurations.
-
-
Method Detail
-
setLocale
public void setLocale(CLocale locale)
Sets the locale that LUXON must use by the date adapter.
See here the details about locale in LUXON.- Parameters:
locale
- the time zone that LUXON must use by the date adapter
-
getLocale
public CLocale getLocale()
Returns the locale that LUXON must use by the date adapter.
See here the details about locale in LUXON.- Returns:
- the locale that LUXON must use by the date adapter
-
setZone
public void setZone(TimeZone zone)
Sets the zone that LUXON must use by the date adapter.
See here the details about time zone in LUXON.- Parameters:
zone
- the zone that LUXON must use by the date adapter
-
getZone
public TimeZone getZone()
Returns the zone that LUXON must use by the date adapter.
See here the details about time zone in LUXON.- Returns:
- the zone that LUXON must use by the date adapter
-
setOutputCalendar
public void setOutputCalendar(Calendar outputCalendar)
Sets the name of calendaring systems that LUXON must use by the date adapter.
See here the list of implemented and available. output calendar systems.- Parameters:
outputCalendar
- the name of calendaring systems that LUXON must use by the date adapter
-
getOutputCalendar
public Calendar getOutputCalendar()
Returns the name of calendaring systems that LUXON must use by the date adapter.
See here the list of implemented and available. output calendar systems.- Returns:
- the name of calendaring systems that LUXON must use by the date adapter
-
setNumberingSystem
public void setNumberingSystem(NumberingSystem numberingSystem)
Sets the name of numbering systems that LUXON must use by the date adapter.
See here the details about numbering system in LUXON.- Parameters:
numberingSystem
- the name of numbering systems that LUXON must use by the date adapter
-
getNumberingSystem
public NumberingSystem getNumberingSystem()
Returns the name of numbering systems that LUXON must use by the date adapter.
See here the details about numbering system in LUXON.- Returns:
- the name of numbering systems that LUXON must use by the date adapter
-
create
public DateAdapter create()
Creates aDateAdapter
using a clone of this object as options for the date adapter instance.- Returns:
- a
DateAdapter
using a clone of this object as options for the date adapter instance
-
-