Examples of removeFromParent()


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

        }
      }
    });

    p.removeFromParent();
    b.removeFromParent();
  }

  class TestButtonWidgetFactory implements WidgetFactory<Button> {
    public Button create(Element e) {
      Button button = new Button();
View Full Code Here

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

      @Override
      public void onKeyPress(Widget sender, char keyCode, int modifiers) {
        if (keyCode == KEY_ENTER) {
          theMap.setLocation(((TextBox) sender).getText());
        } else if (keyCode == KEY_ESCAPE) {
          dialog.removeFromParent();
        }
      }
    });
    findButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
View Full Code Here

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

        public void onClick(ClickEvent event) {
          final int cellIndex = flextable.getCellForEvent(event)
              .getCellIndex();
          if (cellIndex == 1) {
            String temp = flextable.getText(0, 0);
            flextable.removeFromParent();
            remove(temp);
          }
        }// onClick
      });
    }
View Full Code Here

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

      if (w instanceof CommentEditorPanel) {
        editorCount++;
      }
    }
    if (editorCount == 0) {
      parent.removeFromParent();
    }

    // If that was the last file with a draft, remove the heading.
    //
    if (draftsPanel.getWidgetCount() == 1) {
View Full Code Here

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

          @Override
          public void onSubmitComplete(SubmitCompleteEvent event) {
            new Timer() {
              @Override
              public void run() {
                fp.removeFromParent();
              }}.schedule(5000);
          }
        });
      }
    };
View Full Code Here

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

        VkDesignerUtil.releaseCapture(draggingWidget);
        final int initialHeight = invokingWidget.getOffsetHeight() - (int)VkDesignerUtil.getDecorationsWidth(widget.getElement());
        final int initialWidth = invokingWidget.getOffsetWidth() - (int)VkDesignerUtil.getDecorationsHeight(widget.getElement());
        final int finalWidth = draggingWidget.getOffsetWidth()  - (invokingWidget instanceof VkRichTextArea ? 0 : (int)VkDesignerUtil.getDecorationsWidth(widget.getElement()));
        final int finalHeight = draggingWidget.getOffsetHeight()  - (int)VkDesignerUtil.getDecorationsHeight(widget.getElement()) - (invokingWidget instanceof VkRichTextArea ? 10 : 0);
        draggingWidget.removeFromParent();
        VkStateHelper.getInstance().getSnapHelper().setIgnoreWidget(null);
        /*if(finalWidth > 0)
          widget.setWidth(finalWidth + "px");
        if(finalHeight > 0)
          widget.setHeight(finalHeight + "px");*/
 
View Full Code Here

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

                    // remove the truncated segment, ... and "show more"
                    if (shortTextToReplace != null)
                    {
                        shortTextToReplace.removeFromParent();
                    }
                    more.removeFromParent();
                    ellipsis.removeFromParent();

                    // render the rest of the content
                    contentRenderer.renderList(remainingSegments, textContainer, searchLinkBuilder);
                }
View Full Code Here

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

    assertEquals(content2, p.getWidget(1));
    assertEquals(header0, p.getTabWidget(0));
    assertEquals(header2, p.getTabWidget(1));

    // Remove a header.
    header2.removeFromParent();
    assertNull(content2.getParent());
    assertNull(header2.getParent());
    assertEquals(1, p.getWidgetCount());
    assertEquals(content0, p.getWidget(0));
    assertEquals(header0, p.getTabWidget(0));
View Full Code Here

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

                                        public void update(final UpdatedActivityFlagResponseEvent ev)
                                        {
                                            if (ev.getResponse().equals(msg.getId()))
                                            {
                                                Session.getInstance().getEventBus().removeObserver(ev, this);
                                                buttonsPanel.removeFromParent();
                                            }
                                        }
                                    });
                }
                FlaggedActivityModel.getInstance().update(new UpdateActivityFlagRequest(msg.getId(), false));
View Full Code Here

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

    MantleApplication mantle = MantleApplication.getInstance();
    mantle.loadApplication();

    RootPanel loadingPanel = RootPanel.get( "loading" ); //$NON-NLS-1$
    if ( loadingPanel != null ) {
      loadingPanel.removeFromParent();
      loadingPanel.setVisible( false );
      loadingPanel.setHeight( "0px" ); //$NON-NLS-1$
    }
  }
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.