/** * Convenience overload to allow {@link IsWidget} to be used directly. */ public void insert(IsWidget w, int beforeIndex) { insert(asWidgetOrNull(w), beforeIndex); }
public void insert(Widget w, int beforeIndex) { insert(w, getElement(), beforeIndex, true); }
/** * Inserts a child widget at the specified position before the specified * index. Setting a position of <code>(-1, -1)</code> will cause the child * widget to be positioned statically. If the widget is already a child of * this panel, it will be moved to the specified index. * * @param w the child widget to be inserted * @param left the widget's left position * @param top the widget's top position * @param beforeIndex the index before which it will be inserted * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out of * range */ public void insert(Widget w, int left, int top, int beforeIndex) { // In order to avoid the potential for a flicker effect, it is necessary // to set the position of the widget before adding it to the AbsolutePanel. // The Widget should be removed from its parent before any positional // changes are made to prevent flickering. w.removeFromParent(); setWidgetPositionImpl(w, left, top); insert(w, beforeIndex); verifyPositionNotStatic(w); }
/** * Adds a widget to the panel at the specified position. Setting a position of * <code>(-1, -1)</code> will cause the child widget to be positioned * statically. * * @param w the widget to be added * @param left the widget's left position * @param top the widget's top position */ public void add(Widget w, int left, int top) { // In order to avoid the potential for a flicker effect, it is necessary // to set the position of the widget before adding it to the AbsolutePanel. // The Widget should be removed from its parent before any positional // changes are made to prevent flickering. w.removeFromParent(); int beforeIndex = getWidgetCount(); setWidgetPositionImpl(w, left, top); insert(w, beforeIndex); verifyPositionNotStatic(w); }
@Override public void prependGroup(IPaletteGroup group) { LinkedHashSet<IPaletteGroup> groups = new LinkedHashSet<IPaletteGroup>(); groups.add(group); Iterator<IPaletteGroup> it = this.groups.iterator(); while(it.hasNext()){ groups.add(it.next()); } this.mainPanel.insert((Widget) group, 0); this.groups = groups; }
@Override public void insert(com.google.gwt.user.client.ui.IsWidget w, int left, int top, int beforeIndex) { delegate.insert(w.asWidget(), left, top, beforeIndex); }
public void insert(Widget w, int beforeIndex) { insert(w, getElement(), beforeIndex, true); }
/** * Convenience overload to allow {@link IsWidget} to be used directly. */ public void insert(IsWidget w, int beforeIndex) { insert(asWidgetOrNull(w), beforeIndex); }
/** * Convenience overload to allow {@link IsWidget} to be used directly. */ public void insert(IsWidget w, int beforeIndex) { insert(asWidgetOrNull(w), beforeIndex); }
@Override public void insert(com.google.gwt.user.client.ui.IsWidget w, int beforeIndex) { delegate.insert(w.asWidget(), beforeIndex); }
public void insert(Widget w, int beforeIndex) { insert(w, getElement(), beforeIndex, true); }
/** * Inserts a child widget at the specified position before the specified * index. Setting a position of <code>(-1, -1)</code> will cause the child * widget to be positioned statically. If the widget is already a child of * this panel, it will be moved to the specified index. * * @param w the child widget to be inserted * @param left the widget's left position * @param top the widget's top position * @param beforeIndex the index before which it will be inserted * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out of * range */ public void insert(Widget w, int left, int top, int beforeIndex) { // In order to avoid the potential for a flicker effect, it is necessary // to set the position of the widget before adding it to the AbsolutePanel. // The Widget should be removed from its parent before any positional // changes are made to prevent flickering. w.removeFromParent(); setWidgetPositionImpl(w, left, top); insert(w, beforeIndex); verifyPositionNotStatic(w); }
/** * Inserts a child widget at the specified position before the specified * index. Setting a position of <code>(-1, -1)</code> will cause the child * widget to be positioned statically. If the widget is already a child of * this panel, it will be moved to the specified index. * * @param w the child widget to be inserted * @param left the widget's left position * @param top the widget's top position * @param beforeIndex the index before which it will be inserted * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out of * range */ public void insert(Widget w, int left, int top, int beforeIndex) { // In order to avoid the potential for a flicker effect, it is necessary // to set the position of the widget before adding it to the AbsolutePanel. // The Widget should be removed from its parent before any positional // changes are made to prevent flickering. w.removeFromParent(); setWidgetPositionImpl(w, left, top); insert(w, beforeIndex); verifyPositionNotStatic(w); }
/** * Adds a widget to the panel at the specified position. Setting a position of * <code>(-1, -1)</code> will cause the child widget to be positioned * statically. * * @param w the widget to be added * @param left the widget's left position * @param top the widget's top position */ public void add(Widget w, int left, int top) { // In order to avoid the potential for a flicker effect, it is necessary // to set the position of the widget before adding it to the AbsolutePanel. // The Widget should be removed from its parent before any positional // changes are made to prevent flickering. w.removeFromParent(); int beforeIndex = getWidgetCount(); setWidgetPositionImpl(w, left, top); insert(w, beforeIndex); verifyPositionNotStatic(w); }
/** * Adds a widget to the panel at the specified position. Setting a position of * <code>(-1, -1)</code> will cause the child widget to be positioned * statically. * * @param w the widget to be added * @param left the widget's left position * @param top the widget's top position */ public void add(Widget w, int left, int top) { // In order to avoid the potential for a flicker effect, it is necessary // to set the position of the widget before adding it to the AbsolutePanel. // The Widget should be removed from its parent before any positional // changes are made to prevent flickering. w.removeFromParent(); int beforeIndex = getWidgetCount(); setWidgetPositionImpl(w, left, top); insert(w, beforeIndex); verifyPositionNotStatic(w); }