public class JsonDateField<T extends IDateField> extends JsonValueField<T>
AbstractJsonPropertyObserver.P_PropertyChangeListener
EVENT_ACCEPT_INPUT, EVENT_CLIPBOARD_EXPORT
PROP_CURRENT_MENU_TYPES, PROP_MENUS, PROP_MENUS_VISIBLE
Constructor and Description |
---|
JsonDateField(T model,
IUiSession uiSession,
String id,
IJsonAdapter<?> parent) |
Modifier and Type | Method and Description |
---|---|
protected String |
dateToJson(Date date) |
protected String |
dateToJson(Date date,
boolean hasDate,
boolean hasTime) |
String |
getObjectType()
Returns a string used to identify the object-type in the JSON output (JSON attribute 'objectType').
|
protected void |
handleUiAcceptInput(JsonEvent event) |
protected void |
initJsonProperties(T model) |
protected Object |
jsonToValue(String jsonValue) |
protected void |
setDisplayTextFromUI(String displayText) |
protected void |
setErrorStatusFromUI(org.eclipse.scout.rt.platform.status.IStatus status) |
protected void |
setValueFromUI(Object value) |
attachChildAdapters, attachModel, detachModel, disposeChildAdapters, handleModelContextMenuChanged, handleModelContextMenuCurrentMenuTypesChanged, handleModelContextMenuVisibleChanged, handleUiAcceptInputAfterTyping, handleUiAcceptInputWhileTyping, handleUiClipboardExport, handleUiDisplayTextChange, handleUiErrorStatusChange, handleUiEvent, handleUiValueChange, menuTypesToJson, toJson
handleModelPropertyChange
addPropertyChangeEvent, addPropertyEventFilterCondition, addPropertyEventFilterCondition, cleanUpEventFilters, filterPropertyChangeEvent, getJsonProperty, handleLazyJsonProperties, handleModelPropertyChange, init, putJsonProperty, removeJsonProperty, responseAlreadyContainsPropertyChangeEvent
addActionEvent, addActionEvent, addActionEvent, addPropertyChangeEvent, attachAdapter, attachAdapter, attachAdapters, attachAdapters, attachGlobalAdapter, attachGlobalAdapter, attachGlobalAdapters, attachGlobalAdapters, dispose, getAdapter, getAdapter, getAdapters, getAdapters, getGlobalAdapter, getGlobalAdapter, getId, getModel, getObjectTypeVariant, getParent, getUiSession, handleUiPropertyChange, handleUiPropertyChange, isDisposed, isInitialized, processBufferedEvents, putAdapterIdProperty, putAdapterIdProperty, putAdapterIdsProperty, putAdapterIdsProperty, putProperty, registerAsBufferedEventsAdapter, replaceActionEvent, toString, unregisterAsBufferedEventsAdapter
public JsonDateField(T model, IUiSession uiSession, String id, IJsonAdapter<?> parent)
public String getObjectType()
IJsonAdapter
getObjectType
in interface IJsonAdapter<T extends IDateField>
getObjectType
in class JsonValueField<T extends IDateField>
protected void initJsonProperties(T model)
initJsonProperties
in class JsonValueField<T extends IDateField>
protected void handleUiAcceptInput(JsonEvent event)
handleUiAcceptInput
in class JsonValueField<T extends IDateField>
protected Object jsonToValue(String jsonValue)
jsonToValue
in class JsonValueField<T extends IDateField>
protected void setValueFromUI(Object value)
setValueFromUI
in class JsonValueField<T extends IDateField>
protected void setDisplayTextFromUI(String displayText)
setDisplayTextFromUI
in class JsonValueField<T extends IDateField>
protected void setErrorStatusFromUI(org.eclipse.scout.rt.platform.status.IStatus status)
setErrorStatusFromUI
in class JsonValueField<T extends IDateField>
Copyright © 2014–2017. All rights reserved.