/** * Sets the position of the specified child widget. Setting a position of * <code>(-1, -1)</code> will cause the child widget to be positioned * statically. * * @param w the child widget to be positioned * @param left the widget's left position * @param top the widget's top position */ public void setWidgetPosition(Widget w, int left, int top) { checkWidgetParent(w); setWidgetPositionImpl(w, left, top); verifyPositionNotStatic(w); }
/** * Gets the position of the left outer border edge of the widget relative to * the left outer border edge of the panel. * * @param w the widget whose position is to be retrieved * @return the widget's left position */ public int getWidgetLeft(Widget w) { checkWidgetParent(w); return w.getElement().getAbsoluteLeft() - getElement().getAbsoluteLeft(); }
/** * Gets the position of the top outer border edge of the widget relative to * the top outer border edge of the panel. * * @param w the widget whose position is to be retrieved * @return the widget's top position */ public int getWidgetTop(Widget w) { checkWidgetParent(w); return w.getElement().getAbsoluteTop() - getElement().getAbsoluteTop(); }
/** * Sets the position of the specified child widget. Setting a position of * <code>(-1, -1)</code> will cause the child widget to be positioned * statically. * * @param w the child widget to be positioned * @param left the widget's left position * @param top the widget's top position */ public void setWidgetPosition(Widget w, int left, int top) { checkWidgetParent(w); setWidgetPositionImpl(w, left, top); verifyPositionNotStatic(w); }
/** * Sets the position of the specified child widget. Setting a position of * <code>(-1, -1)</code> will cause the child widget to be positioned * statically. * * @param w the child widget to be positioned * @param left the widget's left position * @param top the widget's top position */ public void setWidgetPosition(Widget w, int left, int top) { checkWidgetParent(w); setWidgetPositionImpl(w, left, top); verifyPositionNotStatic(w); }
/** * Gets the position of the left outer border edge of the widget relative to * the left outer border edge of the panel. * * @param w the widget whose position is to be retrieved * @return the widget's left position */ public int getWidgetLeft(Widget w) { checkWidgetParent(w); return w.getElement().getAbsoluteLeft() - getElement().getAbsoluteLeft(); }
/** * Gets the position of the top outer border edge of the widget relative to * the top outer border edge of the panel. * * @param w the widget whose position is to be retrieved * @return the widget's top position */ public int getWidgetTop(Widget w) { checkWidgetParent(w); return w.getElement().getAbsoluteTop() - getElement().getAbsoluteTop(); }
/** * Gets the position of the left outer border edge of the widget relative to * the left outer border edge of the panel. * * @param w the widget whose position is to be retrieved * @return the widget's left position */ public int getWidgetLeft(Widget w) { checkWidgetParent(w); return w.getElement().getAbsoluteLeft() - getElement().getAbsoluteLeft(); }
/** * Gets the position of the top outer border edge of the widget relative to * the top outer border edge of the panel. * * @param w the widget whose position is to be retrieved * @return the widget's top position */ public int getWidgetTop(Widget w) { checkWidgetParent(w); return w.getElement().getAbsoluteTop() - getElement().getAbsoluteTop(); }