T - supported java.lang.Number subclasses: Byte, Short, Integer, Longpublic abstract class AbstractIntegralEditor<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 |
|---|
AbstractIntegralEditor(Class<T> valueType,
long minValue,
long 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.
|
long |
getMaxValue() |
long |
getMinValue() |
protected T |
getRawValue(org.zkoss.zul.impl.InputElement editorView)
Extracts value of the given editor component.
|
Class<T> |
getValueType() |
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.
|
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, waitsetNumberFormatpublic long getMinValue()
public long getMaxValue()
protected 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) throws org.zkoss.zk.ui.WrongValueException
AbstractTextBasedEditorRenderercoerceFromString in class AbstractTextBasedEditorRenderer<T extends Number>editorView - the underlying editor componenttext - the string valeorg.zkoss.zk.ui.WrongValueExceptionpublic 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 eventsCopyright © 2018. All rights reserved.