Package org.adempiere.webui.adwindow
Class ADWindowToolbar
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Toolbar
-
- org.adempiere.webui.component.FToolbar
-
- org.adempiere.webui.adwindow.ADWindowToolbar
-
- All Implemented Interfaces:
Serializable
,Cloneable
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
,org.zkoss.zk.ui.ext.Scope
,org.zkoss.zk.ui.sys.ComponentCtrl
public class ADWindowToolbar extends FToolbar implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass, Cristina Ghita, www.arhipac.ro
- FR [ 2076330 ] Add new methods in CWindowToolbar class
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BTNPREFIX
boolean
isPersonalLock
Show Personal Lockstatic String
MNITMPREFIX
static int
VK_A
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A)static int
VK_B
static int
VK_C
static int
VK_D
static int
VK_E
static int
VK_F
static int
VK_G
static int
VK_H
static int
VK_I
static int
VK_J
static int
VK_K
static int
VK_L
static int
VK_M
static int
VK_N
static int
VK_O
static int
VK_P
static int
VK_Q
static int
VK_R
static int
VK_S
static int
VK_T
static int
VK_U
static int
VK_V
static int
VK_W
static int
VK_X
static int
VK_Y
static int
VK_Z
-
Constructor Summary
Constructors Constructor Description ADWindowToolbar()
Last Modifier of Action EventADWindowToolbar(AbstractADWindowContent windowContent, int windowNo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(ToolbarListener toolbarListener)
protected void
addSeparator()
void
dynamicDisplay()
void
enableActiveWorkflows(boolean enabled)
void
enableArchive(boolean enabled)
void
enableAttachment(boolean enabled)
void
enableChat(boolean enabled)
void
enableCopy(boolean enabled)
void
enableCSVImport(boolean b)
Enable/disable CSV import buttonvoid
enableCustomize(boolean enabled)
void
enableDelete(boolean enabled)
void
enableExport(boolean b)
Enable/disable export buttonvoid
enableFileImport(boolean b)
Enable/disable file import buttonvoid
enableFind(boolean enabled)
void
enableGridToggle(boolean enabled)
void
enableIgnore(boolean enabled)
void
enableNew(boolean enabled)
void
enablePostIt(boolean enabled)
void
enablePrint(boolean enabled)
void
enableProcessButton(boolean b)
void
enableQuickForm(boolean enabled)
void
enableRefresh(boolean enabled)
void
enableReport(boolean enabled)
void
enableRequests(boolean enabled)
void
enableSave(boolean enabled)
void
enableTabNavigation(boolean enabled)
void
enableTabNavigation(boolean enableParent, boolean enableDetail)
void
enableZoomAcross(boolean enabled)
int
getAD_UserQuery_ID()
ToolBarButton
getButton(String name)
org.zkoss.zk.ui.event.Event
getEvent()
int
getQuickFormTabHrchyLevel()
org.zkoss.zul.impl.LabelImageElement
getToolbarItem(String name)
boolean
initDefaultQuery()
Init Default Query in Window Toolbarboolean
isDeleteEnable()
boolean
isNewEnabled()
boolean
isSaveEnable()
void
lock(boolean locked)
void
onEvent(org.zkoss.zk.ui.event.Event event)
void
onPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage)
void
onPageDetached(org.zkoss.zk.ui.Page page)
void
onPostAfterSize()
void
refreshUserQuery(int AD_Tab_ID, int AD_UserQuery_ID)
void
removeListener(ToolbarListener toolbarListener)
void
setPressed(String buttonName, boolean pressed)
void
setQuickFormTabHrchyLevel(int quickFormHrchyTabLevel)
void
setSelectedUserQuery(int AD_UserQuery_ID)
void
setSelectedUserQuery(MUserQuery selectedUserQuery)
void
setVisible(String buttonName, boolean visible)
void
setVisibleAll(boolean visible)
void
setWindowNo(int windowNo)
void
updateToolbarAccess()
-
Methods inherited from class org.zkoss.zul.Toolbar
getAlign, getOrient, getOverflowPopupIconSclass, getZclass, isOverflowPopup, renderProperties, setAlign, setOrient, setOverflowPopup, setOverflowPopupIconSclass
-
Methods inherited from class org.zkoss.zul.impl.XulElement
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
-
-
-
Field Detail
-
BTNPREFIX
public static final String BTNPREFIX
- See Also:
- Constant Field Values
-
MNITMPREFIX
public static final String MNITMPREFIX
- See Also:
- Constant Field Values
-
isPersonalLock
public boolean isPersonalLock
Show Personal Lock
-
VK_A
public static final int VK_A
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A)- See Also:
- Constant Field Values
-
VK_B
public static final int VK_B
- See Also:
- Constant Field Values
-
VK_C
public static final int VK_C
- See Also:
- Constant Field Values
-
VK_D
public static final int VK_D
- See Also:
- Constant Field Values
-
VK_E
public static final int VK_E
- See Also:
- Constant Field Values
-
VK_F
public static final int VK_F
- See Also:
- Constant Field Values
-
VK_G
public static final int VK_G
- See Also:
- Constant Field Values
-
VK_H
public static final int VK_H
- See Also:
- Constant Field Values
-
VK_I
public static final int VK_I
- See Also:
- Constant Field Values
-
VK_J
public static final int VK_J
- See Also:
- Constant Field Values
-
VK_K
public static final int VK_K
- See Also:
- Constant Field Values
-
VK_L
public static final int VK_L
- See Also:
- Constant Field Values
-
VK_M
public static final int VK_M
- See Also:
- Constant Field Values
-
VK_N
public static final int VK_N
- See Also:
- Constant Field Values
-
VK_O
public static final int VK_O
- See Also:
- Constant Field Values
-
VK_P
public static final int VK_P
- See Also:
- Constant Field Values
-
VK_Q
public static final int VK_Q
- See Also:
- Constant Field Values
-
VK_R
public static final int VK_R
- See Also:
- Constant Field Values
-
VK_S
public static final int VK_S
- See Also:
- Constant Field Values
-
VK_T
public static final int VK_T
- See Also:
- Constant Field Values
-
VK_U
public static final int VK_U
- See Also:
- Constant Field Values
-
VK_V
public static final int VK_V
- See Also:
- Constant Field Values
-
VK_W
public static final int VK_W
- See Also:
- Constant Field Values
-
VK_X
public static final int VK_X
- See Also:
- Constant Field Values
-
VK_Y
public static final int VK_Y
- See Also:
- Constant Field Values
-
VK_Z
public static final int VK_Z
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ADWindowToolbar
public ADWindowToolbar()
Last Modifier of Action Event
-
ADWindowToolbar
public ADWindowToolbar(AbstractADWindowContent windowContent, int windowNo)
-
-
Method Detail
-
getButton
public ToolBarButton getButton(String name)
-
getToolbarItem
public org.zkoss.zul.impl.LabelImageElement getToolbarItem(String name)
-
addSeparator
protected void addSeparator()
-
addListener
public void addListener(ToolbarListener toolbarListener)
-
removeListener
public void removeListener(ToolbarListener toolbarListener)
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event)
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
enableTabNavigation
public void enableTabNavigation(boolean enabled)
-
enableTabNavigation
public void enableTabNavigation(boolean enableParent, boolean enableDetail)
-
enableRefresh
public void enableRefresh(boolean enabled)
-
enableSave
public void enableSave(boolean enabled)
-
isSaveEnable
public boolean isSaveEnable()
-
enableDelete
public void enableDelete(boolean enabled)
-
isDeleteEnable
public boolean isDeleteEnable()
-
isNewEnabled
public boolean isNewEnabled()
-
enableIgnore
public void enableIgnore(boolean enabled)
-
enableNew
public void enableNew(boolean enabled)
-
enableCopy
public void enableCopy(boolean enabled)
-
enableAttachment
public void enableAttachment(boolean enabled)
-
enableChat
public void enableChat(boolean enabled)
-
enablePrint
public void enablePrint(boolean enabled)
-
enableReport
public void enableReport(boolean enabled)
-
enableFind
public void enableFind(boolean enabled)
-
enableGridToggle
public void enableGridToggle(boolean enabled)
-
enableCustomize
public void enableCustomize(boolean enabled)
-
enableArchive
public void enableArchive(boolean enabled)
-
enableZoomAcross
public void enableZoomAcross(boolean enabled)
-
enableActiveWorkflows
public void enableActiveWorkflows(boolean enabled)
-
enableRequests
public void enableRequests(boolean enabled)
-
enableQuickForm
public void enableQuickForm(boolean enabled)
-
lock
public void lock(boolean locked)
-
enablePostIt
public void enablePostIt(boolean enabled)
-
getEvent
public org.zkoss.zk.ui.event.Event getEvent()
-
setVisibleAll
public void setVisibleAll(boolean visible)
- Parameters:
visible
-
-
setVisible
public void setVisible(String buttonName, boolean visible)
- Parameters:
buttonName
-visible
-
-
setWindowNo
public void setWindowNo(int windowNo)
- Parameters:
windowNo
-
-
enableExport
public void enableExport(boolean b)
Enable/disable export button- Parameters:
b
-
-
enableFileImport
public void enableFileImport(boolean b)
Enable/disable file import button- Parameters:
b
-
-
enableCSVImport
public void enableCSVImport(boolean b)
Enable/disable CSV import button- Parameters:
b
-
-
updateToolbarAccess
public void updateToolbarAccess()
-
enableProcessButton
public void enableProcessButton(boolean b)
-
dynamicDisplay
public void dynamicDisplay()
-
onPageDetached
public void onPageDetached(org.zkoss.zk.ui.Page page)
- Specified by:
onPageDetached
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
onPageDetached
in classorg.zkoss.zk.ui.AbstractComponent
-
onPageAttached
public void onPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage)
- Specified by:
onPageAttached
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
onPageAttached
in classorg.zkoss.zk.ui.AbstractComponent
-
onPostAfterSize
public void onPostAfterSize()
-
setPressed
public void setPressed(String buttonName, boolean pressed)
-
getQuickFormTabHrchyLevel
public int getQuickFormTabHrchyLevel()
- Returns:
-
setQuickFormTabHrchyLevel
public void setQuickFormTabHrchyLevel(int quickFormHrchyTabLevel)
- Parameters:
quickFormHrchyTabLevel
-
-
refreshUserQuery
public void refreshUserQuery(int AD_Tab_ID, int AD_UserQuery_ID)
-
setSelectedUserQuery
public void setSelectedUserQuery(int AD_UserQuery_ID)
-
setSelectedUserQuery
public void setSelectedUserQuery(MUserQuery selectedUserQuery)
-
getAD_UserQuery_ID
public int getAD_UserQuery_ID()
-
initDefaultQuery
public boolean initDefaultQuery()
Init Default Query in Window Toolbar- Returns:
- true if initialized
-
-