public class DefaultTimeEditor extends AbstractDateTimeEditor<org.zkoss.zul.Timebox>
Date values regarding only time.| Modifier and Type | Field and Description |
|---|---|
protected static String |
TIME_FORMAT |
DATE_FORMAT_NONE, SELECTED_TIME_ZONESETTING_INPUT_INSTANTHEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
DefaultTimeEditor() |
| 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.Timebox |
createEditorView()
Creates a view component.
|
protected String |
getDateFormat(int dateStyle)
Determines a format string for specified format style (see:
DateFormat) |
protected String |
getFormatConfigurationParameter()
Defines a name of configuration parameter that stands for a date format.
|
void |
initTimeZone(org.zkoss.zul.Timebox box,
EditorContext<Date> context) |
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.
|
getDateFormat, 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, getL10nDecoratorprotected static final String TIME_FORMAT
protected org.zkoss.zul.Timebox createEditorView()
AbstractDateTimeEditorcreateEditorView in class AbstractDateTimeEditor<org.zkoss.zul.Timebox>protected String getDateFormat(int dateStyle)
AbstractDateTimeEditorDateFormat)getDateFormat in class AbstractDateTimeEditor<org.zkoss.zul.Timebox>dateStyle - format styleprotected String getFormatConfigurationParameter()
AbstractDateTimeEditorgetFormatConfigurationParameter in class AbstractDateTimeEditor<org.zkoss.zul.Timebox>protected void initViewComponent(org.zkoss.zul.impl.InputElement editorView,
EditorContext<Date> context,
EditorListener<Date> listener)
AbstractTextBasedEditorRendererinitViewComponent in class AbstractDateTimeEditor<org.zkoss.zul.Timebox>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 contextpublic void initTimeZone(org.zkoss.zul.Timebox box,
EditorContext<Date> context)
initTimeZone in class AbstractDateTimeEditor<org.zkoss.zul.Timebox>protected Date coerceFromString(org.zkoss.zul.impl.InputElement editorView, String text) throws org.zkoss.zk.ui.WrongValueException
AbstractTextBasedEditorRenderercoerceFromString in class AbstractTextBasedEditorRenderer<Date>editorView - the underlying editor componenttext - the string valeorg.zkoss.zk.ui.WrongValueExceptionCopyright © 2018. All rights reserved.