com.google.gwt.widgetideas.client
Class GlassPanel

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.FocusPanel
                      extended by com.google.gwt.widgetideas.client.GlassPanel
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.HasFocus, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesFocusEvents, com.google.gwt.user.client.ui.SourcesKeyboardEvents, com.google.gwt.user.client.ui.SourcesMouseEvents, com.google.gwt.user.client.ui.SourcesMouseWheelEvents

public class GlassPanel
extends com.google.gwt.user.client.ui.FocusPanel
implements com.google.gwt.user.client.EventPreview

Semi-transparent panel which can be attached to any AbsolutePanel, although typically a RootPanel via parent.add(glassPanel, 0, 0). Note that GWT issue 1813 needs to be considered in order to properly use RootPanel.get(id) as the parent panel in the general case.

CSS Style Rules

Example


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
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
GlassPanel(boolean autoHide)
          Create a glass panel widget that can be attached to an AbsolutePanel via absolutePanel.add(glassPanel, 0, 0).
 
Method Summary
protected  void onAttach()
           
protected  void onDetach()
           
 boolean onEventPreview(com.google.gwt.user.client.Event event)
           
 
Methods inherited from class com.google.gwt.user.client.ui.FocusPanel
addClickListener, addFocusListener, addKeyboardListener, addMouseListener, addMouseWheelListener, getTabIndex, onBrowserEvent, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setFocus, setTabIndex
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlassPanel

public GlassPanel(boolean autoHide)
Create a glass panel widget that can be attached to an AbsolutePanel via absolutePanel.add(glassPanel, 0, 0).

Parameters:
autoHide - true if the glass panel should be automatically hidden when the user clicks on it or presses ESC.
Method Detail

onEventPreview

public boolean onEventPreview(com.google.gwt.user.client.Event event)
Specified by:
onEventPreview in interface com.google.gwt.user.client.EventPreview

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