Class WBinaryEditor

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

public class WBinaryEditor extends WEditor
Default editor for DisplayType.Binary.
Implemented with Button component and WMediaDialog dialog.
Author:
Low Heng Sin
  • Constructor Details

    • WBinaryEditor

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

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

    • 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
    • getComponent

      public Button getComponent()
      Overrides:
      getComponent in class WEditor
      Returns:
      Component
    • 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
    • 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