com.google.gwt.user.client.ui
Class AbsolutePanel

java.lang.Object
  extended bycom.google.gwt.user.client.ui.UIObject
      extended bycom.google.gwt.user.client.ui.Widget
          extended bycom.google.gwt.user.client.ui.Panel
              extended bycom.google.gwt.user.client.ui.ComplexPanel
                  extended bycom.google.gwt.user.client.ui.AbsolutePanel
All Implemented Interfaces:
EventListener, HasWidgets
Direct Known Subclasses:
RootPanel

public class AbsolutePanel
extends ComplexPanel

An absolute panel positions all of its children absolutely, allowing them to overlap as well.


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
AbsolutePanel()
          Creates an empty absolute panel.
 
Method Summary
 boolean add(Widget w)
          Adds a new child widget to the panel.
 boolean add(Widget w, int left, int top)
          Adds a widget to the panel at the specified position.
 boolean remove(Widget w)
          Removes a widget from the panel.
 void setWidgetPosition(Widget w, int left, int top)
          Sets the position of the specified child widget.
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
clear, getWidget, getWidgetCount, getWidgetIndex, insert, iterator
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, disown, onAttach, onDetach
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, onLoad
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode
 

Constructor Detail

AbsolutePanel

public AbsolutePanel()
Creates an empty absolute panel.

Method Detail

add

public boolean add(Widget w)
Description copied from class: Panel
Adds a new child widget to the panel.

Overrides:
add in class ComplexPanel

add

public boolean add(Widget w,
                   int left,
                   int top)
Adds a widget to the panel at the specified position.

Parameters:
w - the widget to be added
left - the widget's left position
top - the widget's top position
Returns:
true

remove

public boolean remove(Widget w)
Description copied from class: Panel
Removes a widget from the panel.

Overrides:
remove in class ComplexPanel

setWidgetPosition

public void setWidgetPosition(Widget w,
                              int left,
                              int top)
Sets the position of the specified child widget.

Parameters:
w - the child widget to be positioned
left - the widget's left position
top - the widget's top position


This javadoc distribution was not produced by Google. The official documentation is here.