com.vaadin.terminal.gwt.client
Class VDebugConsole

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.google.gwt.user.client.ui.PopupPanel
                      extended by com.vaadin.terminal.gwt.client.ui.VOverlay
                          extended by com.vaadin.terminal.gwt.client.VDebugConsole
All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, 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.EventHandler, 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, Console, Iterable<com.google.gwt.user.client.ui.Widget>

public class VDebugConsole
extends VOverlay
implements Console

A helper console for client side development. The debug console can also be used to resolve layout issues, inspect the communication between browser and the server, start GWT dev mode and restart application.

This implementation is used vaadin is in debug mode (see manual) and developer appends "?debug" query parameter to url. Debug information can also be shown on browsers internal console only, by appending "?debug=quiet" query parameter.

This implementation can be overridden with GWT deferred binding.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.gwt.client.ui.VOverlay
VOverlay.ShadowAnimation
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
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
 
Field Summary
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.VOverlay
CLASSNAME_SHADOW, Z_INDEX
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VDebugConsole()
           
 
Method Summary
 void dirUIDL(ValueMap u, ApplicationConfiguration conf)
           
protected  void dumpConnectorInfo(ApplicationConnection a)
           
 void error(String msg)
           
 void error(Throwable e)
           
protected  String getRemoteLogUrl()
           
 void init()
           
 void log(String msg)
           
 void log(Throwable e)
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void printLayoutProblems(ValueMap meta, ApplicationConnection ac, Set<ComponentConnector> zeroHeightComponents, Set<ComponentConnector> zeroWidthComponents)
           
 void printObject(Object msg)
           
protected  void remoteLog(String msg)
           
 void setPixelSize(int width, int height)
           
 void setQuietMode(boolean quietDebugMode)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.VOverlay
getOwner, isShadowEnabled, isSinkShadowEvents, onClose, onDetach, setHeight, setOwner, setPopupPosition, setShadowEnabled, setShadowStyle, setSinkShadowEvents, setVisible, setWidth, setZIndex, show, sinkEvents, updateShadowSizeAndPosition
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, 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, adopt, clear, disown, 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, onAttach, onLoad, removeFromParent, setLayoutData
 
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, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

VDebugConsole

public VDebugConsole()
Method Detail

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

setPixelSize

public void setPixelSize(int width,
                         int height)
Overrides:
setPixelSize in class com.google.gwt.user.client.ui.UIObject

log

public void log(String msg)
Specified by:
log in interface Console

getRemoteLogUrl

protected String getRemoteLogUrl()

remoteLog

protected void remoteLog(String msg)

error

public void error(String msg)
Specified by:
error in interface Console

printObject

public void printObject(Object msg)
Specified by:
printObject in interface Console

dirUIDL

public void dirUIDL(ValueMap u,
                    ApplicationConfiguration conf)
Specified by:
dirUIDL in interface Console

printLayoutProblems

public void printLayoutProblems(ValueMap meta,
                                ApplicationConnection ac,
                                Set<ComponentConnector> zeroHeightComponents,
                                Set<ComponentConnector> zeroWidthComponents)
Specified by:
printLayoutProblems in interface Console

log

public void log(Throwable e)
Specified by:
log in interface Console

error

public void error(Throwable e)
Specified by:
error in interface Console

init

public void init()
Specified by:
init in interface Console

dumpConnectorInfo

protected void dumpConnectorInfo(ApplicationConnection a)

setQuietMode

public void setQuietMode(boolean quietDebugMode)
Specified by:
setQuietMode in interface Console


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.