Class AbstractIntegralEditor<T extends java.lang.Number>

    • Constructor Detail

      • AbstractIntegralEditor

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

      • getValueType

        public java.lang.Class<T> getValueType()
      • getMinValue

        public long getMinValue()
      • getMaxValue

        public long getMaxValue()
      • 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)
                              throws org.zkoss.zk.ui.WrongValueException
        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
        Throws:
        org.zkoss.zk.ui.WrongValueException
      • 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