net.pleso.framework.client.ui.windows
Class ErrorMessageWindow

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.google.gwt.user.client.ui.DialogBox
                          extended by net.pleso.framework.client.ui.windows.ErrorMessageWindow
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.MouseListener, com.google.gwt.user.client.ui.SourcesPopupEvents

public class ErrorMessageWindow
extends com.google.gwt.user.client.ui.DialogBox
implements com.google.gwt.user.client.ui.ClickListener

Represents error message window widget.

CSS Style Rules


Constructor Summary
ErrorMessageWindow()
          Constructs a newly allocated ErrorMessageWindow object.
 
Method Summary
 void onClick(com.google.gwt.user.client.ui.Widget sender)
           
 void show()
           
 void showError(java.lang.String message, java.lang.Throwable cause)
          Show window with specified Throwable with friendly user message.
 void showError(java.lang.Throwable e)
          Show window with specified Throwable error message.
 
Methods inherited from class com.google.gwt.user.client.ui.DialogBox
getHTML, getText, onEventPreview, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, remove, setHTML, setText, setWidget, setWidth
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addPopupListener, center, getPopupLeft, getPopupTop, getTitle, hide, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setHeight, setPopupPosition, setTitle, setVisible
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
clear
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setPixelSize, setSize, setStyleName, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorMessageWindow

public ErrorMessageWindow()
Constructs a newly allocated ErrorMessageWindow object.

Method Detail

showError

public void showError(java.lang.String message,
                      java.lang.Throwable cause)
Show window with specified Throwable with friendly user message.

Parameters:
message - a String with error message text
cause - a Throwable to be shown in details

showError

public void showError(java.lang.Throwable e)
Show window with specified Throwable error message.

Parameters:
e - a Throwable to be shown in details

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener

show

public void show()
Overrides:
show in class com.google.gwt.user.client.ui.PopupPanel


Copyright © 2006-2007 pleso.net crew All Rights Reserved.