Class AbstractDecimalEditor<T extends java.lang.Number>

    • Constructor Detail

      • AbstractDecimalEditor

        public AbstractDecimalEditor​(java.lang.Class<T> valueType,
                                     T minValue,
                                     T maxValue)
    • Method Detail

      • setRawValue

        protected void setRawValue​(org.zkoss.zul.impl.InputElement editorView,
                                   T rawValue)
        Description copied from class: AbstractTextBasedEditorRenderer
        Sets the value to the given editor component.
        Specified by:
        setRawValue in class AbstractTextBasedEditorRenderer<T extends java.lang.Number>
        Parameters:
        editorView - the underlying editor component
        rawValue - the value
      • coerceFromString

        protected T coerceFromString​(org.zkoss.zul.impl.InputElement editorView,
                                     java.lang.String text)
        Description copied from class: AbstractTextBasedEditorRenderer
        Converts string value to a real value.
        Specified by:
        coerceFromString in class AbstractTextBasedEditorRenderer<T extends java.lang.Number>
        Parameters:
        editorView - the underlying editor component
        text - the string vale
        Returns:
        the value
      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           EditorContext<T> context,
                           EditorListener<T> listener)
        Description copied from interface: CockpitEditorRenderer
        Creates a new editor component and attaches it to the specified Component component.
        Specified by:
        render in interface CockpitEditorRenderer<T extends java.lang.Number>
        Parameters:
        parent - parent component the editor should be attached to
        context - the context for the editor creation
        listener - the listener to notify the rest of the world about value changes and other events
      • validateRange

        protected void validateRange​(org.zkoss.zk.ui.Component component,
                                     EditorContext<T> context,
                                     T object)