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 SummaryConstructors Modifier Constructor Description protectedDateAdapterFormats()Creates the object with an empty native object instance.protectedDateAdapterFormats(NativeObject nativeObject)Creates the object with the native object to map java script properties.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDateTime()Returns the date time format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetDay()Returns the day format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetFormat(TimeUnit unit)StringgetHour()Returns the hour format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetMillisecond()Returns the millisecond format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetMinute()Returns the minute format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetMonth()Returns the month format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetQuarter()Returns the quarter format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetSecond()Returns the second format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetWeek()Returns the week format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.StringgetYear()Returns the year format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckAndGetColor, 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- 
DateAdapterFormatsprotected DateAdapterFormats() Creates the object with an empty native object instance.
 - 
DateAdapterFormatsprotected 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- 
getDateTimepublic String getDateTime() Returns the date time format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the date time format provided by adapter.
 
 - 
getMillisecondpublic String getMillisecond() Returns the millisecond format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the millisecond format provided by adapter.
 
 - 
getSecondpublic String getSecond() Returns the second format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the second format provided by adapter.
 
 - 
getMinutepublic String getMinute() Returns the minute format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the minute format provided by adapter.
 
 - 
getHourpublic String getHour() Returns the hour format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the hour format provided by adapter.
 
 - 
getDaypublic String getDay() Returns the day format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the day format provided by adapter.
 
 - 
getWeekpublic String getWeek() Returns the week format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the week format provided by adapter.
 
 - 
getMonthpublic String getMonth() Returns the month format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the month format provided by adapter.
 
 - 
getQuarterpublic String getQuarter() Returns the quarter format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the quarter format provided by adapter.
 
 - 
getYearpublic String getYear() Returns the year format provided by adapter.
 If not set, returnsConstants.EMPTY_STRING.- Returns:
- the year format provided by adapter.
 
 
- 
 
-