Note that this panel will not automatically resize itself to allow enough room for its absolutely-positioned children. It must be explicitly sized in order to make room for them.
Once a widget has been added to an absolute panel, the panel effectively "owns" the positioning of the widget. Any existing positioning attributes on the widget may be modified by the panel.
AbsolutePanel() | Creates an empty absolute panel. |
add(Widget) | Adds a child widget to this panel. |
add(Widget, int, int) | Adds a widget to the panel at the specified position. |
getWidgetLeft(Widget) | Gets the position of the left outer border edge of the widget relative to the left outer border edge of the panel. |
getWidgetTop(Widget) | Gets the position of the top outer border edge of the widget relative to the top outer border edge of the panel. |
remove(Widget) | Overrides ComplexPanel.remove(Widget) to change the removed Widget's element back to static positioning.This is done so that any positioning changes to the widget that were done by the panel are undone when the widget is disowned from the panel. |
setWidgetPosition(Widget, int, int) | Sets the position of the specified child widget. |
(-1, -1)
will cause the child widget to be positioned
statically.(-1, -1)
will cause the child widget to be positioned
statically.