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) widgetList.get(lastIndex);
          assert (w.getParent() instanceof HTMLTable);
          w.removeFromParent();
          lastIndex = -1;
        }

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


                public void onClick(final ClickEvent inEvent)
                {
                    // remove the truncated segment, ... and "show more"
                    if (shortTextToReplace != null)
                    {
                        shortTextToReplace.removeFromParent();
                    }
                    more.removeFromParent();
                    ellipsis.removeFromParent();

                    // render the rest of the content
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

   */
  protected void accept(final DropEvent event) {
    Checker.notNull("parameter:event", event);

    final Widget widget = event.getWidget();
    widget.removeFromParent();
    this.setWidget(widget);
  }

  @Override
  protected void onAttach() {
View Full Code Here

    }

    @Override
    public void onDrop(DragContext context) {
        Widget widget = context.draggable;
        widget.removeFromParent();
    }
}
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.