Class WImageEditor

java.lang.Object
org.adempiere.webui.editor.WEditor
org.adempiere.webui.editor.WImageEditor
All Implemented Interfaces:
PropertyChangeListener, EventListener, IInputValidator, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

public class WImageEditor extends WEditor
Default editor for DisplayType.Image.
Implemented with Image component and WImageDialog.
Author:
Low Heng Sin
  • Constructor Details

    • WImageEditor

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

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

    • getComponent

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

      public String getDisplay()
      Specified by:
      getDisplay in class WEditor
      Returns:
      display text
    • getValue

      public Object getValue()
      Specified by:
      getValue in class WEditor
      Returns:
      Object, current value of editor
    • isMandatory

      public boolean isMandatory()
      Overrides:
      isMandatory in class WEditor
      Returns:
      true if field is mandatory
    • 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:
      true if editable
    • setReadWrite

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

      public void setValue(Object value)
      Description copied from class: WEditor
      Set editor value
      Specified by:
      setValue in class WEditor
    • getDisplayTextForGridView

      public String getDisplayTextForGridView(Object value)
      Overrides:
      getDisplayTextForGridView in class WEditor
      Returns:
      display text for grid view, for consumption by WEditor.getDisplayComponent()
    • getEvents

      public String[] getEvents()
      Overrides:
      getEvents in class WEditor
      Returns:
      list of WEditor.component events that this editor will listen to
    • onEvent

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

      public void fillHorizontal()
      No op., doesn't support stretch of component.
      Overrides:
      fillHorizontal in class WEditor