com.vaadin.client.debug.internal.

Class VDebugWindow

  • All Implemented Interfaces:

    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, 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.ui.SourcesPopupEvents, Iterable<com.google.gwt.user.client.ui.Widget>

    public final class VDebugWindow
    extends VOverlay

    Debug window implementation.

    Since:

    7.1

    Author:

    Vaadin Ltd

    • Nested Class Summary

      Nested Classes
      Modifier and Type Class Description
      protected class  VDebugWindow.Menu

      Popup menu for VDebugWindow.

      protected class  VDebugWindow.MouseHandler

      Handler for resizing and moving window, also updates cursor on mousemove.

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

        com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
      • 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
      VDebugWindow()

      This class should only be instantiated by the framework, use get() instead to get the singleton instance.

    • Method Summary

      All Methods
      Modifier and Type Method Description
      void addSection​(Section section)

      Adds the given Section as a tab in the VDebugWindow UI.

      void close()

      Closes the window and stops visual logging.

      static VDebugWindow get()

      Gets the VDebugWindow() singleton instance.

      com.google.gwt.user.client.Element getOverlayContainer()

      Gets the container element for this window.

      void init()

      Called when the window is initialized.

      void meta​(ApplicationConnection ac, ValueMap meta)

      Called when the result from analyzeLayouts is received.

      void uidl​(ApplicationConnection ac, ValueMap uidl)

      Called when a response is received.

      • Methods inherited from class com.google.gwt.user.client.ui.PopupPanel

        addAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeTo
      • Methods inherited from class com.google.gwt.user.client.ui.SimplePanel

        add, getWidget, iterator, remove, 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, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

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

        fireEvent
    • Field Detail

      • activeSection

        protected Section activeSection
      • minimized

        protected boolean minimized
      • fullX

        protected int fullX
      • fullY

        protected int fullY
      • fullW

        protected int fullW
      • fullH

        protected int fullH
      • minX

        protected int minX
      • minY

        protected int minY
      • fontSize

        protected int fontSize
      • window

        protected com.google.gwt.user.client.ui.FlowPanel window
      • head

        protected com.google.gwt.user.client.ui.FlowPanel head
      • tabs

        protected com.google.gwt.user.client.ui.FlowPanel tabs
      • controls

        protected com.google.gwt.user.client.ui.FlowPanel controls
      • minimize

        protected com.google.gwt.user.client.ui.Button minimize
      • menu

        protected com.google.gwt.user.client.ui.Button menu
      • close

        protected com.google.gwt.user.client.ui.Button close
      • sectionHead

        protected com.google.gwt.user.client.ui.FlowPanel sectionHead
      • content

        protected com.google.gwt.user.client.ui.SimplePanel content
      • mouseDownHandler

        protected com.google.gwt.event.shared.HandlerRegistration mouseDownHandler
      • mouseMoveHandler

        protected com.google.gwt.event.shared.HandlerRegistration mouseMoveHandler
    • Method Detail

      • close

        public void close()

        Closes the window and stops visual logging.

      • init

        public void init()

        Called when the window is initialized.

      • meta

        public void meta​(ApplicationConnection ac,
                         ValueMap meta)

        Called when the result from analyzeLayouts is received.

        Parameters:

        ac -

        meta -

      • getOverlayContainer

        public com.google.gwt.user.client.Element getOverlayContainer()

        Gets the container element for this window. The debug window is always global to the document and not related to any ApplicationConnection in particular.

        Overrides:

        getOverlayContainer in class VOverlay

        Returns:

        The global overlay container element.