| 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 known Subclasses: com.google.gwt.user.client.ui.RootPanel,
AbsolutePanel | public class AbsolutePanel extends ComplexPanel (Code) | | An absolute panel positions all of its children absolutely, allowing them to
overlap.
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.
|
Constructor Summary | |
public | AbsolutePanel() Creates an empty absolute panel. |
Method Summary | |
public void | add(Widget w) Adds a child widget to this panel. | public void | add(Widget w, int left, int top) Adds a widget to the panel at the specified position. | public int | getWidgetLeft(Widget w) Gets the position of the left outer border edge of the widget relative to
the left outer border edge of the panel. | public int | getWidgetTop(Widget w) Gets the position of the top outer border edge of the widget relative to
the top outer border edge of the panel. | public boolean | remove(Widget w) 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. | public void | setWidgetPosition(Widget w, int left, int top) Sets the position of the specified child widget. |
AbsolutePanel | public AbsolutePanel()(Code) | | Creates an empty absolute panel.
|
add | public void add(Widget w)(Code) | | Adds a child widget to this panel.
Parameters: w - the child widget to be added |
add | public void add(Widget w, int left, int top)(Code) | | Adds a widget to the panel at the specified position. Setting a position of
(-1, -1) will cause the child widget to be positioned
statically.
Parameters: w - the widget to be added Parameters: left - the widget's left position Parameters: top - the widget's top position |
getWidgetLeft | public int getWidgetLeft(Widget w)(Code) | | Gets the position of the left outer border edge of the widget relative to
the left outer border edge of the panel.
Parameters: w - the widget whose position is to be retrieved the widget's left position |
getWidgetTop | public int getWidgetTop(Widget w)(Code) | | Gets the position of the top outer border edge of the widget relative to
the top outer border edge of the panel.
Parameters: w - the widget whose position is to be retrieved the widget's top position |
remove | public boolean remove(Widget w)(Code) | | 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 | public void setWidgetPosition(Widget w, int left, int top)(Code) | | Sets the position of the specified child widget. Setting a position of
(-1, -1) will cause the child widget to be positioned
statically.
Parameters: w - the child widget to be positioned Parameters: left - the widget's left position Parameters: top - the widget's top position |
|
|