Class DefaultBigDecimalEditor

    • Constructor Detail

      • DefaultBigDecimalEditor

        public DefaultBigDecimalEditor()
    • Method Detail

      • setRawValue

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

        protected java.math.BigDecimal getRawValue​(org.zkoss.zul.impl.InputElement editorView)
        Description copied from class: AbstractTextBasedEditorRenderer
        Extracts value of the given editor component.
        Specified by:
        getRawValue in class AbstractTextBasedEditorRenderer<java.math.BigDecimal>
        Parameters:
        editorView - the underlying editor component
        Returns:
        the value
      • coerceFromString

        protected java.math.BigDecimal 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<java.math.BigDecimal>
        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<java.math.BigDecimal> context,
                           EditorListener<java.math.BigDecimal> 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<java.math.BigDecimal>
        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