Class AbsolutePanel

public class AbsolutePanel
extends ComplexPanel

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

Constructors

AbsolutePanel()Creates an empty absolute panel.

Methods

add(Widget)
add(Widget, int, int)Adds a widget to the panel at the specified position.
remove(Widget)
setWidgetPosition(Widget, int, int)Sets the position of the specified child widget.

Constructor Detail

AbsolutePanel

public AbsolutePanel()
Creates an empty absolute panel.

Method Detail

add

public boolean add(Widget w)

Parameters

w

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

Return Value

true

remove

public boolean remove(Widget w)

Parameters

w

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