Class AbsolutePanel
An absolute panel positions all of its children absolutely, allowing them to
overlap as well.
Constructors
Methods
Constructor Detail
AbsolutePanel
public AbsolutePanel()
Creates an empty absolute panel.
Method Detail
add
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