Class WDashboardContentEditor

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

public class WDashboardContentEditor extends WEditor
Default editor for DisplayType.DashboardContent.
A readonly editor that render dashboard content from MDashboardContent to Panel component.
Author:
hengsin
  • Constructor Details

    • WDashboardContentEditor

      public WDashboardContentEditor(GridField gridField, int windowNo)
      Parameters:
      gridField -
      windowNo -
    • WDashboardContentEditor

      public WDashboardContentEditor(GridField gridField, int windowNo, boolean tableEditor, IEditorConfiguration editorConfiguration)
      Parameters:
      gridField - GridField for PA_DashboardContent_ID
      windowNo -
      tableEditor -
      editorConfiguration -
  • Method Details

    • onEvent

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

      public void setReadWrite(boolean readWrite)
      No op.
      Specified by:
      setReadWrite in class WEditor
    • isReadWrite

      public boolean isReadWrite()
      Specified by:
      isReadWrite in class WEditor
      Returns:
      true if editable
    • setValue

      public void setValue(Object value)
      No op.
      Specified by:
      setValue in class WEditor
    • getValue

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

      public String getDisplay()
      Always return null.
      Specified by:
      getDisplay in class WEditor
      Returns:
      display text
    • dynamicDisplay

      public void dynamicDisplay()
      Post ON_RENDER_CONTENT event to render dashboard content.
      Overrides:
      dynamicDisplay in class WEditor
    • getComponent

      public org.zkoss.zul.Panel getComponent()
      Overrides:
      getComponent in class WEditor
      Returns:
      Component
    • 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