Package org.adempiere.webui.adwindow
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 Summary
ConstructorDescriptionToolbarCustomButton
(MToolBarButton mToolbarButton, org.zkoss.zul.Toolbarbutton btn, String actionId, int windowNo) ToolbarCustomButton
(MToolBarButton mToolbarButton, org.zkoss.zul.Toolbarbutton btn, String actionId, int windowNo, int tabNo) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delegate todynamicDisplay(boolean)
void
dynamicDisplay
(boolean forceValidation) Dynamic update of button state.get_ValueAsString
(String variableName) Get Variable Valueorg.zkoss.zul.Toolbarbutton
void
onEvent
(org.zkoss.zk.ui.event.Event event) CallIAction.execute(Object)
.void
Evaluate pressedLogic (if defined)void
Evaluate readOnlyLogic (if defined)
-
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
CallIAction.execute(Object)
.- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
get_ValueAsString
Description copied from interface:Evaluatee
Get Variable Value- Specified by:
get_ValueAsString
in interfaceEvaluatee
- Parameters:
variableName
- name- Returns:
- value
-
dynamicDisplay
public void dynamicDisplay()Delegate todynamicDisplay(boolean)
-
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
-