Class DateAdapterFormats
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.adapters.DateAdapterFormats
-
public final class DateAdapterFormats extends NativeObjectContainer
Contains all date time formats that a date adapter can manage.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DateAdapterFormats()
Creates the object with an empty native object instance.protected
DateAdapterFormats(NativeObject nativeObject)
Creates the object with the native object to map java script properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDateTime()
Returns the date time format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getDay()
Returns the day format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getFormat(TimeUnit unit)
String
getHour()
Returns the hour format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getMillisecond()
Returns the millisecond format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getMinute()
Returns the minute format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getMonth()
Returns the month format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getQuarter()
Returns the quarter format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getSecond()
Returns the second format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getWeek()
Returns the week format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.String
getYear()
Returns the year format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.-
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
-
-
-
-
Constructor Detail
-
DateAdapterFormats
protected DateAdapterFormats()
Creates the object with an empty native object instance.
-
DateAdapterFormats
protected DateAdapterFormats(NativeObject nativeObject)
Creates the object with the native object to map java script properties.- Parameters:
nativeObject
- native object to map java script properties
-
-
Method Detail
-
getDateTime
public String getDateTime()
Returns the date time format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the date time format provided by adapter.
-
getMillisecond
public String getMillisecond()
Returns the millisecond format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the millisecond format provided by adapter.
-
getSecond
public String getSecond()
Returns the second format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the second format provided by adapter.
-
getMinute
public String getMinute()
Returns the minute format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the minute format provided by adapter.
-
getHour
public String getHour()
Returns the hour format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the hour format provided by adapter.
-
getDay
public String getDay()
Returns the day format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the day format provided by adapter.
-
getWeek
public String getWeek()
Returns the week format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the week format provided by adapter.
-
getMonth
public String getMonth()
Returns the month format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the month format provided by adapter.
-
getQuarter
public String getQuarter()
Returns the quarter format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the quarter format provided by adapter.
-
getYear
public String getYear()
Returns the year format provided by adapter.
If not set, returnsConstants.EMPTY_STRING
.- Returns:
- the year format provided by adapter.
-
-