Class WFileDirectoryEditor

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

public class WFileDirectoryEditor extends WEditor
Default editor for DisplayType.FilePath.
Implemented with FilenameBox (with upload disable) and FolderBrowser component.
Author:
Low Heng Sin
  • Constructor Details

    • WFileDirectoryEditor

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

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

    • getComponent

      public FilenameBox getComponent()
      Overrides:
      getComponent in class WEditor
      Returns:
      Component
    • setValue

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

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

      public String getDisplay()
      Specified by:
      getDisplay in class WEditor
      Returns:
      display text
    • 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
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event)
    • processNewValue

      protected void processNewValue(String newValue)
      Process newValue from user input
      Parameters:
      newValue -
    • getEvents

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