com.maryanovsky.gwtutils.client
Class PilePanel

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.ComplexPanel
                  extended by com.maryanovsky.gwtutils.client.PilePanel
All Implemented Interfaces:
EventListener, HasWidgets, IndexedPanel, Iterable<Widget>

public class PilePanel
extends ComplexPanel

A panel which piles its children on top of each other, each placed at 0,0 and fills the 100% of the width and height of the panel.

Author:
Maryanovsky Alexander

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
PilePanel()
          Creates a new PilePanel.
 
Method Summary
 void add(Widget widget)
          Adds the specified widget to this panel at z-index 0.
 void add(Widget widget, int zIndex)
          Adds the specified widget at the specified z-index.
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove, remove
 
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, onAttach, onBrowserEvent, onDetach, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, 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

PilePanel

public PilePanel()
Creates a new PilePanel.

Method Detail

add

public void add(Widget widget)
Adds the specified widget to this panel at z-index 0. Widgets with same z-index value appear in the order they were added (later ones on top).

Specified by:
add in interface HasWidgets
Overrides:
add in class Panel

add

public void add(Widget widget,
                int zIndex)
Adds the specified widget at the specified z-index. Widgets with higher z-index values appear on top of widgets with lower z-index values.