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

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


        // Ignore events outside of the sandbox
        NativeEvent nativeEvent = event.getNativeEvent();
        Element target = Element.as(nativeEvent.getEventTarget());
        if (!sandbox.getElement().isOrHasChild(target)
            && !positioner.getElement().isOrHasChild(target)) {
          positioner.removeFromParent();
          return;
        }
               
        switch (Event.as(nativeEvent).getTypeInt()) {
          case Event.ONMOUSEMOVE:
View Full Code Here

    final SimplePanel sp = new SimplePanel();
    m_Image.addLoadHandler(new LoadHandler() {
     
      @Override
      public void onLoad(LoadEvent event) {
        sp.removeFromParent();
       
        Loading.getInstance().hideAnimation();
       
        add(m_Image);
        show();
View Full Code Here

    });
    m_Image.addErrorHandler(new ErrorHandler() {
     
      @Override
      public void onError(ErrorEvent event) {
        sp.removeFromParent();
        G3Viewer.displayError("Error Loading Image", "It could be that the resized version of the image has not been built correctly.");
        Loading.getInstance().endLoading();
      }
    });
   
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.