Class WChartEditor

  • All Implemented Interfaces:
    PropertyChangeListener, EventListener, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

    public class WChartEditor
    extends WEditor
    This class is based on org.compiere.grid.ed.WImageEditor and WGraph written by Low Heng Sin.
    Author:
    Low Heng Sin Modifications - chart display, Paul Bowden, Adaxa Pty Ltd
    • Constructor Detail

      • WChartEditor

        public WChartEditor​(GridField gridField,
                            int windowNo)
        Parameters:
        gridField -
        windowNo -
      • WChartEditor

        public WChartEditor​(GridField gridField,
                            int windowNo,
                            boolean tableEditor,
                            IEditorConfiguration editorConfiguration)
        Parameters:
        gridField -
        windowNo -
        tableEditor -
        editorConfiguration -
    • Method Detail

      • getComponent

        public org.zkoss.zul.Panel getComponent()
        Overrides:
        getComponent in class WEditor
        Returns:
        Component
      • isMandatory

        public boolean isMandatory()
        Overrides:
        isMandatory in class WEditor
        Returns:
        boolean
      • setMandatory

        public void setMandatory​(boolean mandatory)
        Description copied from class: WEditor
        Set whether the editor represents a mandatory field.
        Overrides:
        setMandatory in class WEditor
        Parameters:
        mandatory - whether the field is mandatory
      • isReadWrite

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

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

        public void onEvent​(org.zkoss.zk.ui.event.Event event)
                     throws Exception
        Throws:
        Exception
      • isSearchable

        public boolean isSearchable()
        Overrides:
        isSearchable in class WEditor
        Returns:
        true if usable in find window, false otherwise