Class WNumberEditor

    • Field Detail

      • LISTENER_EVENTS

        public static final String[] LISTENER_EVENTS
    • Constructor Detail

      • WNumberEditor

        public WNumberEditor()
      • WNumberEditor

        public WNumberEditor​(GridField gridField)
        Parameters:
        gridField -
      • WNumberEditor

        public WNumberEditor​(GridField gridField,
                             boolean tableEditor,
                             IEditorConfiguration editorConfiguration)
        Parameters:
        gridField -
        tableEditor -
        editorConfiguration -
      • WNumberEditor

        public WNumberEditor​(GridField gridField,
                             boolean integral)
        Parameters:
        gridField -
        integral -
      • WNumberEditor

        public WNumberEditor​(String columnName,
                             boolean mandatory,
                             boolean readonly,
                             boolean updateable,
                             int displayType,
                             String title)
        Parameters:
        columnName -
        mandatory -
        readonly -
        updateable -
        displayType -
        title -
    • Method Detail

      • onEvent

        public void onEvent​(org.zkoss.zk.ui.event.Event event)
        Event handler
        Specified by:
        onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
        Parameters:
        event -
      • addDecimalPlaces

        public BigDecimal addDecimalPlaces​(BigDecimal oldValue)
        IDEMPIERE-2553 - Enter amounts without decimal separator
        Parameters:
        oldValue -
        Returns:
      • isReadWrite

        public boolean isReadWrite()
        Specified by:
        isReadWrite in class WEditor
        Returns:
        editable
      • setReadWrite

        public void setReadWrite​(boolean readWrite)
        Specified by:
        setReadWrite in class WEditor
      • setTableEditor

        public void setTableEditor​(boolean b)
        Overrides:
        setTableEditor in class WEditor