public abstract class AbstractTextEditor<T> extends AbstractTextBasedEditorRenderer<T>
SETTING_INPUT_INSTANTHEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
AbstractTextEditor(Class<T> valueType) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
coerceFromString(org.zkoss.zul.impl.InputElement editorView,
String text)
Converts string value to a real value.
|
protected String |
convertToString(org.zkoss.zul.impl.InputElement editorView,
T initialValue)
Converts component value to String
|
protected T |
getRawValue(org.zkoss.zul.impl.InputElement viewComponent)
Extracts value of the given editor component.
|
protected void |
initAdditionalParameters(org.zkoss.zul.Textbox editorView,
EditorContext<T> context)
Additional initialization of ui component according to specified context
|
void |
render(org.zkoss.zk.ui.Component parent,
EditorContext<T> context,
EditorListener<T> listener)
Creates a new editor component and attaches it to the specified
Component component. |
protected void |
setRawValue(org.zkoss.zul.impl.InputElement viewComponent,
T rawValue)
Sets the value to the given editor component.
|
clearInvalidInputAndNotify, handleChangeEvent, handleChangeEvent, handleChangingEvent, handleReadOnly, hasInvalidInput, initViewComponent, isPrimitive, onCancelEvent, onChangeEvent, onChangingEvent, onFocusEvent, onOkEventextractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorpublic void render(org.zkoss.zk.ui.Component parent,
EditorContext<T> context,
EditorListener<T> listener)
CockpitEditorRendererComponent component.parent - parent component the editor should be attached tocontext - the context for the editor creationlistener - the listener to notify the rest of the world about value changes and other eventsprotected void initAdditionalParameters(org.zkoss.zul.Textbox editorView,
EditorContext<T> context)
editorView - ui componentcontext - contextprotected void setRawValue(org.zkoss.zul.impl.InputElement viewComponent,
T rawValue)
AbstractTextBasedEditorRenderersetRawValue in class AbstractTextBasedEditorRenderer<T>viewComponent - the underlying editor componentrawValue - the valueprotected T getRawValue(org.zkoss.zul.impl.InputElement viewComponent)
AbstractTextBasedEditorRenderergetRawValue in class AbstractTextBasedEditorRenderer<T>viewComponent - the underlying editor componentprotected T coerceFromString(org.zkoss.zul.impl.InputElement editorView, String text) throws org.zkoss.zk.ui.WrongValueException
AbstractTextBasedEditorRenderercoerceFromString in class AbstractTextBasedEditorRenderer<T>editorView - the underlying editor componenttext - the string valeorg.zkoss.zk.ui.WrongValueExceptionCopyright © 2018. All rights reserved.