Examples of removeFromParent()


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

    public void handleDashboardWidgetDrop(DashboardWidget dashboardWidget) throws DropVetoException {
        if (placeHolderIndex < 0) {
            throw new DropVetoException();
        }
        SimplePanel placeHolder = (SimplePanel) main.getWidget(placeHolderIndex);
        placeHolder.removeFromParent();
        placeHolder = new SimplePanel();
        main.insert(placeHolder, placeHolderIndex);
        placeHolder.setWidget(dashboardWidget);
        dashboardWidget.setWidth("100%");
        placeHolder.setWidth("100%");
View Full Code Here

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

                    public void onKeyDown(KeyDownEvent event) {

                        if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {

                            about.getElement().setInnerHTML(nome.getValue());
                            nome.removeFromParent();
                            about.setVisible(true);
                            if (password.equals(cpassword)) {
                                edit_profile_check.getElement().getStyle()
                                        .setOpacity(1);
                                edit_profile_check.setEnabled(true);
View Full Code Here

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

    tb.setFocus(true);
    tb.addBlurHandler(new BlurHandler() {
      @Override
      public void onBlur(BlurEvent event) {
        applyText(tb.getText(), (HasVkText) widget);
        tb.removeFromParent();
      }
    });
    tb.addKeyDownHandler(new KeyDownHandler() {
      @Override
      public void onKeyDown(KeyDownEvent event) {
View Full Code Here

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

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

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

        // 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

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

        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

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

        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

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

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

  /**
   * @return
 
View Full Code Here

Examples of com.gwtext.client.widgets.Panel.removeFromParent()

        seeAllClassesAnchor.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                seeAllClasses = !seeAllClasses;
                remove(clsesPanel.getId());
                clsesPanel.removeFromParent();
                Panel clsesPanel1 = createClsesPanel();
                insert(0, clsesPanel1);
                doLayout();
            }
        });
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.