Class WLocationEditor

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

public class WLocationEditor extends WEditor implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, PropertyChangeListener, ContextMenuListener, IZoomableEditor
Author:
Sendy Yagambrum
  • Constructor Details

    • WLocationEditor

      public WLocationEditor(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, MLocationLookup mLocation)
      Constructor without GridField
      Parameters:
      columnName - column name
      mandatory - mandatory
      isReadOnly - read only
      isUpdateable - updateable
      mLocation - location model
    • WLocationEditor

      public WLocationEditor(GridField gridField)
      Parameters:
      gridField -
  • 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
    • setValue

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

      public Locationbox 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
    • setFieldStyle

      protected void setFieldStyle(String style)
      Description copied from class: WEditor
      Set field style
      Overrides:
      setFieldStyle in class WEditor
      Parameters:
      style - sclass name (@sclass=) or zclass name (@zclass=) or css style string
    • getC_Location_ID

      public int getC_Location_ID()
      Return Editor value
      Returns:
      value
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Property Change Listener
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class WEditor
      Parameters:
      evt - PropertyChangeEvent
    • 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
    • getEvents

      public String[] getEvents()
      return listener events to be associated with editor component
      Overrides:
      getEvents in class WEditor
      Returns:
      list of WEditor.component events that this editor will listen to
    • onMenu

      public void onMenu(ContextMenuEvent evt)
      Specified by:
      onMenu in interface ContextMenuListener
    • setTableEditor

      public void setTableEditor(boolean b)
      Description copied from class: WEditor
      Set grid view mode. Have no effect if editor doesn't has a separate grid view mode.
      Overrides:
      setTableEditor in class WEditor
    • actionZoom

      public void actionZoom()
      Description copied from interface: IZoomableEditor
      Zoom to AD window
      Specified by:
      actionZoom in interface IZoomableEditor
    • isCloseDialog

      public boolean isCloseDialog()
    • setCloseDialog

      public void setCloseDialog(boolean isCloseDialog)