/** * Overrides {@link 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. */ @Override public boolean remove(Widget w) { boolean removed = super.remove(w); if (removed) { changeToStaticPositioning(w.getElement()); } return removed; }
protected void setWidgetPositionImpl(Widget w, int left, int top) { Element h = w.getElement(); if (left == -1 && top == -1) { changeToStaticPositioning(h); } else { h.getStyle().setProperty("position", "absolute"); h.getStyle().setProperty("left", left + "px"); h.getStyle().setProperty("top", top + "px"); } }
/** * Overrides {@link 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. */ @Override public boolean remove(Widget w) { boolean removed = super.remove(w); if (removed) { changeToStaticPositioning(w.getElement()); } return removed; }
/** * Overrides {@link 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. */ @Override public boolean remove(Widget w) { boolean removed = super.remove(w); if (removed) { changeToStaticPositioning(w.getElement()); } return removed; }
protected void setWidgetPositionImpl(Widget w, int left, int top) { Element h = w.getElement(); if (left == -1 && top == -1) { changeToStaticPositioning(h); } else { h.getStyle().setProperty("position", "absolute"); h.getStyle().setProperty("left", left + "px"); h.getStyle().setProperty("top", top + "px"); } }
protected void setWidgetPositionImpl(Widget w, int left, int top) { Element h = w.getElement(); if (left == -1 && top == -1) { changeToStaticPositioning(h); } else { h.getStyle().setProperty("position", "absolute"); h.getStyle().setProperty("left", left + "px"); h.getStyle().setProperty("top", top + "px"); } }