public class DefaultDateEditor extends AbstractDateTimeEditor<org.zkoss.zul.Datebox>
Date values (incl. time).| Modifier and Type | Field and Description |
|---|---|
protected static String |
DATE_FORMAT |
protected static String |
DEFAULT_TIMEZONES |
static String |
DISABLE_INLINE_EDITING |
static String |
DISABLE_INLINE_EDITING_SCLASS |
static String |
DISPLAYED_TIME_ZONES |
protected static String |
SHOW_CALENDAR_ON_FOCUS |
static String |
TIME_ZONE_READ_ONLY |
protected static String |
TIMEZONES_DELIMITER |
DATE_FORMAT_NONE, SELECTED_TIME_ZONESETTING_INPUT_INSTANTHEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
DefaultDateEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected Date |
coerceFromString(org.zkoss.zul.impl.InputElement editorView,
String text)
Converts string value to a real value.
|
protected org.zkoss.zul.Datebox |
createEditorView()
Creates a view component.
|
protected String |
getDateFormat(int dateStyle)
Determines a format string for specified format style (see:
DateFormat) |
protected String |
getDateFormat(String dateFormatInput)
Determines the date format for the component.
|
protected String |
getDateTimeFormat(int dateStyle,
int timeStyle) |
protected String |
getDisplayedTimeZones(EditorContext<Date> context) |
protected String |
getFormatConfigurationParameter()
Defines a name of configuration parameter that stands for a date format.
|
protected List<TimeZone> |
getTimeZones(String timeZonesString) |
void |
initTimeZone(org.zkoss.zul.Datebox box,
EditorContext<Date> context) |
protected void |
initTimezoneManagement(org.zkoss.zul.Datebox box,
EditorContext<Date> context)
Deprecated.
since 6.5, please use the
initTimeZone(Datebox, EditorContext) instead. |
protected void |
initViewComponent(org.zkoss.zul.impl.InputElement editorView,
EditorContext<Date> context,
EditorListener<Date> listener)
Adds event listeners to this editor component, parses the parameter for initial value etc.
|
protected boolean |
isInitialTimeZoneInDisplayedTimezones(String displayedTimeZonesString,
TimeZone initialTimeZone) |
protected boolean |
isTimeZoneReadOnly(EditorContext<Date> context) |
protected void |
setTimeZone(org.zkoss.zul.Datebox box,
TimeZone timeZone) |
protected boolean |
shouldInputBeDisabled(EditorContext<Date> context) |
getDateFormat, getDefaultDateFormat, getDefaultDateFormat, getInitialTimeZoneFromConfig, getPatternDateFormat, getRawValue, getRequiredStyle, getSessionTimeZoneAttribute, getZKDefaultTimeZone, handleReadOnly, render, setRawValueclearInvalidInputAndNotify, handleChangeEvent, handleChangeEvent, handleChangingEvent, hasInvalidInput, isPrimitive, onCancelEvent, onChangeEvent, onChangingEvent, onFocusEvent, onOkEventextractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorpublic static final String TIME_ZONE_READ_ONLY
public static final String DISPLAYED_TIME_ZONES
public static final String DISABLE_INLINE_EDITING
public static final String DISABLE_INLINE_EDITING_SCLASS
protected static final String DATE_FORMAT
protected static final String SHOW_CALENDAR_ON_FOCUS
protected static final String DEFAULT_TIMEZONES
protected static final String TIMEZONES_DELIMITER
protected org.zkoss.zul.Datebox createEditorView()
AbstractDateTimeEditorcreateEditorView in class AbstractDateTimeEditor<org.zkoss.zul.Datebox>protected String getDateFormat(String dateFormatInput)
AbstractDateTimeEditor
The given date format can be either a custom date format e. g. dd/MM/yyyy (see SimpleDateFormat)
or the following constants for getting a localized date format:
getDateFormat in class AbstractDateTimeEditor<org.zkoss.zul.Datebox>dateFormatInput - the configured date formatDateFormat) for the component or null if format is
invalidprotected String getDateFormat(int dateStyle)
AbstractDateTimeEditorDateFormat)getDateFormat in class AbstractDateTimeEditor<org.zkoss.zul.Datebox>dateStyle - format styleprotected String getDateTimeFormat(int dateStyle, int timeStyle)
protected String getFormatConfigurationParameter()
AbstractDateTimeEditorgetFormatConfigurationParameter in class AbstractDateTimeEditor<org.zkoss.zul.Datebox>protected void initViewComponent(org.zkoss.zul.impl.InputElement editorView,
EditorContext<Date> context,
EditorListener<Date> listener)
AbstractTextBasedEditorRendererinitViewComponent in class AbstractDateTimeEditor<org.zkoss.zul.Datebox>editorView - the editor component previously created in overridden method
CockpitEditorRenderer.render(org.zkoss.zk.ui.Component, com.hybris.cockpitng.editors.EditorContext, com.hybris.cockpitng.editors.EditorListener)context - the editor contextprotected boolean shouldInputBeDisabled(EditorContext<Date> context)
public void initTimeZone(org.zkoss.zul.Datebox box,
EditorContext<Date> context)
initTimeZone in class AbstractDateTimeEditor<org.zkoss.zul.Datebox>@Deprecated protected void initTimezoneManagement(org.zkoss.zul.Datebox box, EditorContext<Date> context)
initTimeZone(Datebox, EditorContext) instead.protected String getDisplayedTimeZones(EditorContext<Date> context)
protected Date coerceFromString(org.zkoss.zul.impl.InputElement editorView, String text)
AbstractTextBasedEditorRenderercoerceFromString in class AbstractTextBasedEditorRenderer<Date>editorView - the underlying editor componenttext - the string valeprotected void setTimeZone(org.zkoss.zul.Datebox box,
TimeZone timeZone)
protected boolean isTimeZoneReadOnly(EditorContext<Date> context)
protected boolean isInitialTimeZoneInDisplayedTimezones(String displayedTimeZonesString, TimeZone initialTimeZone)
Copyright © 2018. All rights reserved.