Skip navigation links
com.sencha.gxt.widget.core.client

Class WindowManager

Package class diagram package WindowManager
    • Constructor Detail

      • WindowManager

        public WindowManager()
        Creates a window manager.
    • Method Detail

      • get

        public static WindowManager get()
        Returns the singleton instance.
        Returns:
        the window manager
      • activateNext

        public boolean activateNext(Widget widget)
        Activates the next window in the access stack.
        Parameters:
        widget - the reference window
        Returns:
        true if the next window exists
      • activatePrevious

        public boolean activatePrevious(Widget widget)
        Activates the previous widget in the access stack.
        Parameters:
        widget - the reference window
        Returns:
        true if a previous window exists
      • bringToFront

        public boolean bringToFront(Widget widget)
        Brings the specified widget to the front of any other active widgets. Window instances will automatically call this method when focused, all other types must call manually.
        Parameters:
        widget - the window
        Returns:
        true if the widget was brought to the front, else false if it was already in front
      • getActive

        public Widget getActive()
        Gets the currently-active widget in the group.
        Returns:
        the active window
      • getStack

        public Stack<Widget> getStack()
        Returns the ordered widgets.
        Returns:
        the widgets
      • getWindows

        public List<Widget> getWindows()
        Returns the visible widgets.
        Returns:
        the widgets
      • hideAll

        public void hideAll()
        Hides all widgets that are registered to this WindowManager.
      • register

        public void register(Widget widget)
        Registers the window with the WindowManager. Window instances will automatically register and unregister themselves. All other types must register / unregister manually.
        Parameters:
        widget - the window
      • sendToBack

        public void sendToBack(Widget widget)
        Sends the specified window to the back of other active widgets.
        Parameters:
        widget - the widget
      • unregister

        public void unregister(Widget widget)
        Unregisters the window with the WindowManager.
        Parameters:
        widget - the widget
      • activateLast

        protected void activateLast()
        Activates the top window in the stack. Protected so it can be overridden to activate more than just GXT Window objects.
      • focus

        protected void focus(Widget widget)
      • setActiveWin

        protected void setActiveWin(Widget window)
        Indicates that this window should be made active. Protected so it can be overridden to provide specialized behavior when more than GXT Windows are used.
        Parameters:
        window -

Copyright © 2018. All rights reserved.