Class WImageEditor

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

    public class WImageEditor
    extends WEditor
    This class is based on org.compiere.grid.ed.VImage written by Jorg Janke.
    Author:
    Jorg Janke Modifications - UI Compatibility, Low Heng Sin
    • Constructor Detail

      • WImageEditor

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

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

      • getComponent

        public org.zkoss.zul.Image 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
      • fillHorizontal

        public void fillHorizontal()
        Description copied from class: WEditor
        Stretch editor component to fill container
        Overrides:
        fillHorizontal in class WEditor