Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Widget.removeFromParent()


        if (lastIndex < 0) {
          throw new IllegalStateException();
        }
        Widget w = (Widget) uiObjectList.get(lastIndex);
        assert (w.getParent() instanceof HTMLTable);
        w.removeFromParent();
        lastIndex = -1;
      }

      private void findNext() {
        while (++nextIndex < uiObjectList.size()) {
View Full Code Here


          if (lastIndex < 0) {
            throw new IllegalStateException();
          }
          Widget w = (Widget) widgetList.get(lastIndex);
          assert (w.getParent() instanceof HTMLTable);
          w.removeFromParent();
          lastIndex = -1;
        }

        private void findNext() {
          while (++nextIndex < widgetList.size()) {
View Full Code Here

        // Detach any old tab widget, should be max 1
        for (Iterator<Widget> iterator = oldWidgets.iterator(); iterator
                .hasNext();) {
            Widget oldWidget = iterator.next();
            if (oldWidget.isAttached()) {
                oldWidget.removeFromParent();
            }
        }
    }

    @Override
View Full Code Here

        setId(DOMUtil.getID(widget));
    addListener("beforedestroy", new Function() {
      public void execute() {
        Widget widget =  (Widget)JavaScriptObjectHelper.getAttributeAsObject(config, "widget");
        if(DOM.getParent(widget.getElement()) != null) {
          widget.removeFromParent();
        }
      }
    });
  }
View Full Code Here

        for (Iterator iterator = oldPaintables.iterator(); iterator.hasNext();) {
            Object oldPaintable = iterator.next();
            if (oldPaintable instanceof Paintable) {
                Widget w = (Widget) oldPaintable;
                if (w.isAttached()) {
                    w.removeFromParent();
                }
                client.unregisterPaintable((Paintable) oldPaintable);
            }
        }
View Full Code Here

  public void removeWidget(String id, boolean removeFromDOM)
  {
    Widget widget = widgets.remove(id);
    if (widget != null && removeFromDOM)
    {
      widget.removeFromParent();
    }
  }

  /**
   * @return
 
View Full Code Here

          if (lastIndex < 0) {
            throw new IllegalStateException();
          }
          Widget w = (Widget) widgetList.get(lastIndex);
          assert (w.getParent() instanceof HTMLTable);
          w.removeFromParent();
          lastIndex = -1;
        }

        private void findNext() {
          while (++nextIndex < widgetList.size()) {
View Full Code Here

        for (Iterator iterator = oldPaintables.iterator(); iterator.hasNext();) {
            Object oldPaintable = iterator.next();
            if (oldPaintable instanceof Paintable) {
                Widget w = (Widget) oldPaintable;
                if (w.isAttached()) {
                    w.removeFromParent();
                }
                client.unregisterPaintable((Paintable) oldPaintable);
            }
        }
View Full Code Here

                .hasNext();) {
            Object oldPaintable = iterator.next();
            if (oldPaintable instanceof Paintable) {
                Widget w = (Widget) oldPaintable;
                if (w.isAttached()) {
                    w.removeFromParent();
                }
                client.unregisterPaintable((Paintable) oldPaintable);
            }
        }
View Full Code Here

  @Override
  public void clear() {
    for (Iterator i = this.iterator(); i.hasNext();) {
      Widget w = (Widget) i.next();
      w.removeFromParent();
    }
    row = 0;
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.