Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
      • Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent

        org.zkoss.zk.ui.AbstractComponent.Children
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String BTNPREFIX  
      boolean isPersonalLock
      Show Personal Lock
      static 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  
      • Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        _zclass
      • Fields inherited from interface org.zkoss.zk.ui.Component

        APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
      • Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl

        AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
    • 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 button
      void enableCustomize​(boolean enabled)  
      void enableDelete​(boolean enabled)  
      void enableExport​(boolean b)
      Enable/disable export button
      void enableFileImport​(boolean b)
      Enable/disable file import button
      void 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 Toolbar
      boolean 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
      • Methods inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl

        invalidatePartial
    • Constructor Detail

      • ADWindowToolbar

        public ADWindowToolbar()
        Last Modifier of Action Event
    • Method Detail

      • 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 interface org.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 interface org.zkoss.zk.ui.sys.ComponentCtrl
        Overrides:
        onPageDetached in class org.zkoss.zk.ui.AbstractComponent
      • onPageAttached

        public void onPageAttached​(org.zkoss.zk.ui.Page newpage,
                                   org.zkoss.zk.ui.Page oldpage)
        Specified by:
        onPageAttached in interface org.zkoss.zk.ui.sys.ComponentCtrl
        Overrides:
        onPageAttached in class org.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