Class ToolbarCustomButton

java.lang.Object
org.adempiere.webui.adwindow.ToolbarCustomButton
All Implemented Interfaces:
Evaluatee, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

public class ToolbarCustomButton extends Object implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, Evaluatee
Model for AD_ToolBarButton with IsCustomization=Y
Author:
hengsin
  • Constructor Details

    • ToolbarCustomButton

      public ToolbarCustomButton(MToolBarButton mToolbarButton, org.zkoss.zul.Toolbarbutton btn, String actionId, int windowNo)
      Parameters:
      mToolbarButton -
      btn -
      actionId -
      windowNo -
    • ToolbarCustomButton

      public ToolbarCustomButton(MToolBarButton mToolbarButton, org.zkoss.zul.Toolbarbutton btn, String actionId, int windowNo, int tabNo)
      Parameters:
      mToolbarButton -
      btn -
      actionId -
      windowNo -
      tabNo -
  • Method Details

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

      public String get_ValueAsString(String variableName)
      Description copied from interface: Evaluatee
      Get Variable Value
      Specified by:
      get_ValueAsString in interface Evaluatee
      Parameters:
      variableName - name
      Returns:
      value
    • dynamicDisplay

      public void dynamicDisplay()
    • dynamicDisplay

      public void dynamicDisplay(boolean forceValidation)
      Dynamic update of button state.
      Parameters:
      forceValidation - if true, execute dynamic update event if button is in detached state
    • pressedLogic

      public void pressedLogic()
      Evaluate pressedLogic (if defined)
    • readOnlyLogic

      public void readOnlyLogic()
      Evaluate readOnlyLogic (if defined)
    • getToolbarbutton

      public org.zkoss.zul.Toolbarbutton getToolbarbutton()
      Returns:
      Toolbarbutton