Class SubCoolBarManager

    • Constructor Detail

      • SubCoolBarManager

        public SubCoolBarManager​(ICoolBarManager mgr)
        Constructs a new manager.
        mgr - the parent manager. All contributions made to the SubCoolBarManager are forwarded and appear in the parent manager.
    • Method Detail

      • add

        public void add​(IToolBarManager toolBarManager)
        Description copied from interface: ICoolBarManager
        A convenience method to add a tool bar as a contribution item to this cool bar manager. Equivalent to add(new ToolBarContributionManager(toolBarManager)).
        Specified by:
        add in interface ICoolBarManager
        toolBarManager - the tool bar manager to be added
        See Also:
      • getStyle

        public int getStyle()
        Description copied from interface: ICoolBarManager
        Returns the style of the underlying cool bar widget.
        Specified by:
        getStyle in interface ICoolBarManager
        the style of the cool bar
      • getParentCoolBarManager

        protected final ICoolBarManager getParentCoolBarManager()
        Returns the parent cool bar manager that this sub-manager contributes to.
        the parent cool bar manager
      • getLockLayout

        public boolean getLockLayout()
        Description copied from interface: ICoolBarManager
        Returns whether the layout of the underlying cool bar widget is locked.
        Specified by:
        getLockLayout in interface ICoolBarManager
        true if cool bar layout is locked, false otherwise
      • setLockLayout

        public void setLockLayout​(boolean value)
        Description copied from interface: ICoolBarManager
        Locks or unlocks the layout of the underlying cool bar widget. Once the cool bar is locked, cool items cannot be repositioned by the user.

        Note that items can be added or removed programmatically even while the cool bar is locked.

        Specified by:
        setLockLayout in interface ICoolBarManager
        value - true to lock the cool bar, false to unlock
      • update

        public void update​(boolean force)
        Description copied from interface: IContributionManager
        Updates this manager's underlying widget(s) with any changes which have been made to it or its items. Normally changes to a contribution manager merely mark it as dirty, without updating the underlying widgets. This brings the underlying widgets up to date with any changes.
        Specified by:
        update in interface IContributionManager
        force - true means update even if not dirty, and false for normal incremental updating