Class WButtonEditor

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

public class WButtonEditor extends WEditor implements IProcessButton
Default editor for DisplayType.Button. Modifications - UI Compatibility
Author:
ashley
  • Field Details

  • Constructor Details

    • WButtonEditor

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

      public WButtonEditor(GridField gridField, int rowIndex)
      Parameters:
      gridField -
      rowIndex -
    • WButtonEditor

      public WButtonEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)
      Parameters:
      gridField -
      tableEditor -
      editorConfiguration -
    • WButtonEditor

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

    • getProcess_ID

      public int getProcess_ID()
      Description copied from interface: IProcessButton
      Get AD_Process_ID
      Specified by:
      getProcess_ID in interface IProcessButton
      Returns:
      AD_Process_ID or 0
    • getInfoWindow_ID

      public int getInfoWindow_ID()
      Specified by:
      getInfoWindow_ID in interface IProcessButton
      Returns:
      AD_InfoWindow_ID
    • getGridField

      public GridField getGridField()
      Overrides:
      getGridField in class WEditor
      Returns:
      GridField
    • getDisplay

      public String getDisplay()
      Specified by:
      getDisplay in interface IProcessButton
      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
    • setValue

      public void setValue(Object value)
      Description copied from class: WEditor
      Set editor value
      Specified by:
      setValue in class WEditor
    • 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
    • getValues

      public HashMap<String,String> getValues()
      Returns:
      AD_Ref_List Value:Name HashMap
    • addActionListener

      public void addActionListener(ActionListener actionListener)
      Parameters:
      actionListener -
    • removeActionListener

      public boolean removeActionListener(ActionListener actionListener)
      Parameters:
      actionListener -
      Returns:
      true if found and remove
    • 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
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Throws:
      Exception
    • setADTabpanel

      public void setADTabpanel(IADTabpanel adTabpanel)
      Parameters:
      adTabpanel -
    • getADTabpanel

      public IADTabpanel getADTabpanel()
      Specified by:
      getADTabpanel in interface IProcessButton
      Returns:
      IADTabpanel instance that own this button
    • isSearchable

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