Class VUI

  • All Implemented Interfaces:
    com.google.gwt.event.dom.client.HasScrollHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasResizeHandlers, com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.Window.ClosingHandler, Focusable, ShortcutActionHandler.ShortcutActionHandlerOwner, Iterable<com.google.gwt.user.client.ui.Widget>

    public class VUI
    extends com.google.gwt.user.client.ui.SimplePanel
    implements com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.user.client.Window.ClosingHandler, ShortcutActionHandler.ShortcutActionHandlerOwner, Focusable, com.google.gwt.user.client.ui.Focusable, com.google.gwt.event.logical.shared.HasResizeHandlers, com.google.gwt.event.dom.client.HasScrollHandlers
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
    • Constructor Summary

      Constructors 
      Constructor Description
      VUI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      com.google.gwt.event.shared.HandlerRegistration addResizeHandler​(com.google.gwt.event.logical.shared.ResizeHandler resizeHandler)  
      com.google.gwt.event.shared.HandlerRegistration addScrollHandler​(com.google.gwt.event.dom.client.ScrollHandler scrollHandler)  
      void focus()
      Sets focus to this widget.
      void focusStoredElement()
      Restores the previously stored focus Element.
      ShortcutActionHandler getShortcutActionHandler()
      Returns the ShortCutActionHandler currently used or null if there is currently no shortcutactionhandler
      int getTabIndex()  
      String getTheme()
      Deprecated.
      as of 7.3.
      static void goTo​(String url)  
      boolean isEmbedded()
      Returns true if the body is NOT generated, i.e if someone else has made the page that we're running in.
      protected boolean isMonitoringParentSize()
      Returns true if the size of the parent should be checked periodically and the application should react to its changes.
      void makeScrollable()
      Ensures the widget is scrollable eg.
      protected void onAttach()  
      protected void onDetach()  
      protected void onLoad()
      Start to periodically monitor for parent element resizes if embedded application (e.g.
      void onResize​(com.google.gwt.event.logical.shared.ResizeEvent event)  
      protected void onUnload()
      Stop monitoring for parent element resizes.
      void onWindowClosing​(com.google.gwt.user.client.Window.ClosingEvent event)  
      protected void performSizeCheck()
      Called when the window or parent div might have been resized.
      void sendClientResized()
      Send new dimensions to the server.
      void setAccessKey​(char key)  
      void setFocus​(boolean focused)  
      void setTabIndex​(int index)  
      void storeFocus()
      Allows to store the currently focused Element.
      protected void windowSizeMaybeChanged​(int newWindowWidth, int newWindowHeight)
      Deprecated.
      • Methods inherited from class com.google.gwt.user.client.ui.SimplePanel

        add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.event.shared.HasHandlers

        fireEvent
      • Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets

        add, clear, iterator, remove
    • Field Detail

      • id

        public String id
        For internal use only. May be removed or replaced in the future.
      • actionHandler

        public ShortcutActionHandler actionHandler
        For internal use only. May be removed or replaced in the future.
      • connection

        public ApplicationConnection connection
        For internal use only. May be removed or replaced in the future.
      • immediate

        public boolean immediate
        For internal use only. May be removed or replaced in the future.
      • resizeLazy

        public boolean resizeLazy
        For internal use only. May be removed or replaced in the future.
      • currentFragment

        public String currentFragment
        The current URI fragment, used to avoid sending updates if nothing has changed.

        For internal use only. May be removed or replaced in the future.

    • Constructor Detail

      • VUI

        public VUI()
    • Method Detail

      • onLoad

        protected void onLoad()
        Start to periodically monitor for parent element resizes if embedded application (e.g. portlet).
        Overrides:
        onLoad in class com.google.gwt.user.client.ui.Widget
      • onAttach

        protected void onAttach()
        Overrides:
        onAttach in class com.google.gwt.user.client.ui.Widget
      • onDetach

        protected void onDetach()
        Overrides:
        onDetach in class com.google.gwt.user.client.ui.Widget
      • onUnload

        protected void onUnload()
        Stop monitoring for parent element resizes.
        Overrides:
        onUnload in class com.google.gwt.user.client.ui.Widget
      • performSizeCheck

        protected void performSizeCheck()
        Called when the window or parent div might have been resized. This immediately checks the sizes of the window and the parent div (if monitoring it) and triggers layout recalculation if they have changed.
      • windowSizeMaybeChanged

        @Deprecated
        protected void windowSizeMaybeChanged​(int newWindowWidth,
                                              int newWindowHeight)
        Deprecated.
        Called when the window or parent div might have been resized. This immediately checks the sizes of the window and the parent div (if monitoring it) and triggers layout recalculation if they have changed.
        Parameters:
        newWindowWidth - The new width of the window
        newWindowHeight - The new height of the window
      • isEmbedded

        public boolean isEmbedded()
        Returns true if the body is NOT generated, i.e if someone else has made the page that we're running in. Otherwise we're in charge of the whole page.
        Returns:
        true if we're running embedded
      • isMonitoringParentSize

        protected boolean isMonitoringParentSize()
        Returns true if the size of the parent should be checked periodically and the application should react to its changes.
        Returns:
        true if size of parent should be tracked
      • onResize

        public void onResize​(com.google.gwt.event.logical.shared.ResizeEvent event)
        Specified by:
        onResize in interface com.google.gwt.event.logical.shared.ResizeHandler
      • sendClientResized

        public void sendClientResized()
        Send new dimensions to the server.

        For internal use only. May be removed or replaced in the future.

      • goTo

        public static void goTo​(String url)
      • onWindowClosing

        public void onWindowClosing​(com.google.gwt.user.client.Window.ClosingEvent event)
        Specified by:
        onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandler
      • focus

        public void focus()
        Description copied from interface: Focusable
        Sets focus to this widget.
        Specified by:
        focus in interface Focusable
      • makeScrollable

        public void makeScrollable()
        Ensures the widget is scrollable eg. after style name changes.

        For internal use only. May be removed or replaced in the future.

      • addResizeHandler

        public com.google.gwt.event.shared.HandlerRegistration addResizeHandler​(com.google.gwt.event.logical.shared.ResizeHandler resizeHandler)
        Specified by:
        addResizeHandler in interface com.google.gwt.event.logical.shared.HasResizeHandlers
      • addScrollHandler

        public com.google.gwt.event.shared.HandlerRegistration addScrollHandler​(com.google.gwt.event.dom.client.ScrollHandler scrollHandler)
        Specified by:
        addScrollHandler in interface com.google.gwt.event.dom.client.HasScrollHandlers
      • getTabIndex

        public int getTabIndex()
        Specified by:
        getTabIndex in interface com.google.gwt.user.client.ui.Focusable
      • setAccessKey

        public void setAccessKey​(char key)
        Specified by:
        setAccessKey in interface com.google.gwt.user.client.ui.Focusable
      • setFocus

        public void setFocus​(boolean focused)
        Specified by:
        setFocus in interface com.google.gwt.user.client.ui.Focusable
      • setTabIndex

        public void setTabIndex​(int index)
        Specified by:
        setTabIndex in interface com.google.gwt.user.client.ui.Focusable
      • storeFocus

        public void storeFocus()
        Allows to store the currently focused Element. Current use case is to store the focus when a Window is opened. Does currently handle only a single value. Needs to be extended for #12158
        Parameters:
        focusedElement -
      • focusStoredElement

        public void focusStoredElement()
        Restores the previously stored focus Element. Current use case is to restore the focus when a Window is closed. Does currently handle only a single value. Needs to be extended for #12158