T - subtype of Number the editor supportspublic interface FormattableNumberEditor<T extends Number>
setNumberFormat(InputElement, EditorContext) method is called automatically by
AbstractTextBasedEditorRenderer.initViewComponent(InputElement, EditorContext, EditorListener)
.| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER_NUMBER_FORMAT
Name of
editor-parameter used to configure number format |
| Modifier and Type | Method and Description |
|---|---|
default void |
setNumberFormat(org.zkoss.zul.impl.InputElement editorView,
EditorContext<T> context)
Sets the number format of
InputElement.Default implementation works only for FormatInputElement view components and sets the number format to the
value of PARAMETER_NUMBER_FORMAT parameter passed in context object. |
static final String PARAMETER_NUMBER_FORMAT
editor-parameter used to configure number formatdefault void setNumberFormat(org.zkoss.zul.impl.InputElement editorView,
EditorContext<T> context)
InputElement.FormatInputElement view components and sets the number format to the
value of PARAMETER_NUMBER_FORMAT parameter passed in context object. It
also switches off the InputElement.instant flag.editorView - view component of editorcontext - Copyright © 2018. All rights reserved.