Interface FormattableNumberEditor<T extends java.lang.Number>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PARAMETER_NUMBER_FORMAT
      Name of editor-parameter used to configure number format
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method 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.
    • Field Detail

      • PARAMETER_NUMBER_FORMAT

        static final java.lang.String PARAMETER_NUMBER_FORMAT
        Name of editor-parameter used 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 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. It also switches off the InputElement.instant flag.
        Parameters:
        editorView - view component of editor
        context -