public abstract class AbstractDecimalEditor<T extends Number> extends AbstractTextBasedEditorRenderer<T> implements FormattableNumberEditor<T>
SETTING_INPUT_INSTANTHEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTPARAMETER_NUMBER_FORMATINITIAL_EDIT_STRING| Constructor and Description |
|---|
AbstractDecimalEditor(Class<T> valueType,
T minValue,
T maxValue) |
| 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 T |
getRawValue(org.zkoss.zul.impl.InputElement editorView)
Extracts value of the given editor component.
|
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 editorView,
T rawValue)
Sets the value to the given editor component.
|
protected void |
validateRange(org.zkoss.zk.ui.Component component,
EditorContext<T> context,
T object) |
clearInvalidInputAndNotify, handleChangeEvent, handleChangeEvent, handleChangingEvent, handleReadOnly, hasInvalidInput, initViewComponent, isPrimitive, onCancelEvent, onChangeEvent, onChangingEvent, onFocusEvent, onOkEventextractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNumberFormatprotected void setRawValue(org.zkoss.zul.impl.InputElement editorView,
T rawValue)
AbstractTextBasedEditorRenderersetRawValue in class AbstractTextBasedEditorRenderer<T extends Number>editorView - the underlying editor componentrawValue - the valueprotected T getRawValue(org.zkoss.zul.impl.InputElement editorView)
AbstractTextBasedEditorRenderergetRawValue in class AbstractTextBasedEditorRenderer<T extends Number>editorView - the underlying editor componentprotected T coerceFromString(org.zkoss.zul.impl.InputElement editorView, String text)
AbstractTextBasedEditorRenderercoerceFromString in class AbstractTextBasedEditorRenderer<T extends Number>editorView - the underlying editor componenttext - the string valepublic void render(org.zkoss.zk.ui.Component parent,
EditorContext<T> context,
EditorListener<T> listener)
CockpitEditorRendererComponent component.render in interface CockpitEditorRenderer<T extends Number>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 validateRange(org.zkoss.zk.ui.Component component,
EditorContext<T> context,
T object)
Copyright © 2018. All rights reserved.