public final class VDebugWindow extends VOverlay
Modifier and Type | Class and Description |
---|---|
protected class |
VDebugWindow.Menu
Popup menu for
VDebugWindow . |
protected class |
VDebugWindow.MouseHandler
Handler for resizing and moving window, also updates cursor on mousemove.
|
Overlay.PositionAndSize, Overlay.ResizeAnimation
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
Modifier and Type | Field and Description |
---|---|
protected Section |
activeSection |
protected com.google.gwt.user.client.ui.Button |
close |
protected com.google.gwt.user.client.ui.SimplePanel |
content |
protected com.google.gwt.user.client.ui.FlowPanel |
controls |
protected int |
fontSize |
protected int |
fullH |
protected int |
fullW |
protected int |
fullX |
protected int |
fullY |
protected static int |
HANDLE_SIZE |
protected com.google.gwt.user.client.ui.FlowPanel |
head |
protected com.google.gwt.user.client.ui.Button |
menu |
protected VDebugWindow.Menu |
menuPopup |
protected static int |
MIN_HEIGHT |
protected com.google.gwt.user.client.ui.Button |
minimize |
protected boolean |
minimized |
protected int |
minX |
protected int |
minY |
protected com.google.gwt.event.shared.HandlerRegistration |
mouseDownHandler |
protected com.google.gwt.event.shared.HandlerRegistration |
mouseMoveHandler |
protected static int |
MOVE_TRESHOLD |
protected com.google.gwt.user.client.ui.FlowPanel |
sectionHead |
protected ArrayList<Section> |
sections |
protected static String |
STYLENAME_CONTENT |
protected static String |
STYLENAME_CONTROLS |
protected static String |
STYLENAME_HEAD |
protected static String |
STYLENAME_SECTION_HEAD |
protected static String |
STYLENAME_SELECTED |
protected static String |
STYLENAME_TAB |
protected static String |
STYLENAME_TABS |
protected com.google.gwt.user.client.ui.FlowPanel |
tabs |
protected com.google.gwt.user.client.ui.FlowPanel |
window |
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, Z_INDEX
Constructor and Description |
---|
VDebugWindow()
This class should only be instantiated by the framework, use
get() instead to get the singleton instance. |
Modifier and Type | Method and 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
|
getApplicationConnection, getOverlayContainer, setOverlayContainerLabel
center, getOwner, hide, hide, hide, isFitInWindow, isShadowEnabled, isShimElementEnabled, isSinkShadowEvents, needsShimElement, onAttach, onClose, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setPopupPosition, setShadowEnabled, setShadowStyle, setSinkShadowEvents, setVisible, setWidth, setZIndex, show, sinkEvents, updateShadowSizeAndPosition, useShadowDiv
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
add, getWidget, iterator, remove, setWidget
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, removeFromParent, setLayoutData, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected static final String STYLENAME_HEAD
protected static final String STYLENAME_TABS
protected static final String STYLENAME_TAB
protected static final String STYLENAME_CONTROLS
protected static final String STYLENAME_SECTION_HEAD
protected static final String STYLENAME_CONTENT
protected static final String STYLENAME_SELECTED
protected static final int MOVE_TRESHOLD
protected static final int MIN_HEIGHT
protected static final int HANDLE_SIZE
protected Section activeSection
protected boolean minimized
protected int fullX
protected int fullY
protected int fullW
protected int fullH
protected int minX
protected int minY
protected int fontSize
protected com.google.gwt.user.client.ui.FlowPanel window
protected com.google.gwt.user.client.ui.FlowPanel head
protected com.google.gwt.user.client.ui.FlowPanel tabs
protected com.google.gwt.user.client.ui.FlowPanel controls
protected com.google.gwt.user.client.ui.Button minimize
protected com.google.gwt.user.client.ui.Button menu
protected com.google.gwt.user.client.ui.Button close
protected VDebugWindow.Menu menuPopup
protected com.google.gwt.user.client.ui.FlowPanel sectionHead
protected com.google.gwt.user.client.ui.SimplePanel content
protected com.google.gwt.event.shared.HandlerRegistration mouseDownHandler
protected com.google.gwt.event.shared.HandlerRegistration mouseMoveHandler
public VDebugWindow()
get()
instead to get the singleton instance.
VDebugWindow
provides windowing functionality and shows
Section
s added with addSection(Section)
as tabs.
Section.getTabButton()
is called to obtain a unique id for the
Sections; the id should actually be an identifier for an icon in the
icon-font in use.
Section.getControls()
and Section.getContent()
is called
when the Section is activated (displayed). Additionally
Section.show()
is called to allow the Section to initialize
itself as needed when shown. Conversely Section.hide()
is called
when the Section is deactivated.
Sections should take care to prefix CSS classnames used with
VDebugWindow
.STYLENAME
to avoid that application theme
interferes with the debug window content.
Some of the window state, such as position and size, is persisted to
localStorage. Sections can use
writeState(Storage, String, Object)
and
readState(Storage, String, String)
(and relatives) to write and
read own persisted settings, keys will automatically be prefixed with
.
public static VDebugWindow get()
VDebugWindow()
singleton instance.public void close()
public void addSection(Section section)
Section
as a tab in the VDebugWindow
UI.
Section.getTabButton()
is called to obtain a button which is used
tab.section
- public void init()
public void meta(ApplicationConnection ac, ValueMap meta)
ac
- meta
- public void uidl(ApplicationConnection ac, ValueMap uidl)
ac
- uidl
- public com.google.gwt.user.client.Element getOverlayContainer()
ApplicationConnection
in particular.getOverlayContainer
in class VOverlay
Copyright © 2016 Vaadin Ltd. All rights reserved.