com.google.gwt.user.client.ui
Class AbsolutePanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.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.
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.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
AbsolutePanel
public AbsolutePanel()
- Creates an empty absolute panel.
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 addedleft
- the widget's left positiontop
- 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 positionedleft
- the widget's left positiontop
- the widget's top position
This javadoc distribution was not produced by Google. The official documentation is here.