Package com.hybris.cockpitng.editors
Interface FormattableNumberEditor<T extends java.lang.Number>
-
- Type Parameters:
T- subtype ofNumberthe editor supports
- All Known Implementing Classes:
AbstractDecimalEditor,AbstractIntegralEditor,DefaultBigDecimalEditor,DefaultBigIntegerEditor,DefaultByteEditor,DefaultDecimalEditor,DefaultFloatEditor,DefaultIntegerEditor,DefaultLongEditor,DefaultShortEditor
public interface FormattableNumberEditor<T extends java.lang.Number>Marks editor as being number editor with configurable number format. ThesetNumberFormat(InputElement, EditorContext)method is called automatically byAbstractTextBasedEditorRenderer.initViewComponent(InputElement, EditorContext, EditorListener).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAMETER_NUMBER_FORMATName ofeditor-parameterused to configure number format
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsetNumberFormat(org.zkoss.zul.impl.InputElement editorView, EditorContext<T> context)Sets the number format ofInputElement.
Default implementation works only forFormatInputElementview components and sets the number format to the value ofPARAMETER_NUMBER_FORMATparameter passed incontextobject.
-
-
-
Field Detail
-
PARAMETER_NUMBER_FORMAT
static final java.lang.String PARAMETER_NUMBER_FORMAT
Name ofeditor-parameterused to configure number format- See Also:
- Constant Field Values
-
-
Method Detail
-
setNumberFormat
default void setNumberFormat(org.zkoss.zul.impl.InputElement editorView, EditorContext<T> context)Sets the number format ofInputElement.
Default implementation works only forFormatInputElementview components and sets the number format to the value ofPARAMETER_NUMBER_FORMATparameter passed incontextobject. It also switches off theInputElement.instantflag.- Parameters:
editorView- view component of editorcontext-
-
-