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

Examples of com.google.gwt.user.client.ui.HasWidgets


    // below - if required
    if (gHandler.isSupported()) {
      mainLogger.addHandler(gHandler);
      gHandler.publish(record);
    } else if (!SaxonceApi.isLogHandlerExternal()) {
          HasWidgets loggingWidget = new LoggingPopup();
          HasWidgetsLogHandler hw = new HasWidgetsLogHandler(loggingWidget);
          mainLogger.addHandler(hw);
          hw.publish(record);
    }
  }
View Full Code Here


                 */
                if ((w instanceof VGridLayout)
                        && "ChildComponentContainer".equals(widgetClassName)
                        && i + 1 < parts.length) {

                    HasWidgets layout = (HasWidgets) w;

                    String nextPart = parts[i + 1];
                    String[] nextSplit = nextPart.split("\\[", 2);
                    String nextWidgetClassName = nextSplit[0];

View Full Code Here

      addHandlerIfNotNull(l, dev);
      Handler firebug = GWT.create(FirebugLogHandler.class);
      addHandlerIfNotNull(l, firebug);
      Handler system = GWT.create(SystemLogHandler.class);
      addHandlerIfNotNull(l, system);
      HasWidgets loggingWidget = GWT.create(LoggingPopup.class);
      if (!(loggingWidget instanceof NullLoggingPopup)) {
        addHandlerIfNotNull(l, new HasWidgetsLogHandler(loggingWidget));
      }
    }
View Full Code Here

                    if (child instanceof ContainerResizedListener) {
                        ((ContainerResizedListener) child).iLayout();
                    }

                    if (child instanceof HasWidgets) {
                        final HasWidgets childContainer = (HasWidgets) child;
                        internalRunDescendentsLayout(childContainer);
                    }
                }
            } else if (child instanceof HasWidgets) {
                // propagate over non Paintable HasWidgets
View Full Code Here

      widgets = handler.getOrderedWidgets(p);
    } else if (p instanceof Container) {
      Container con = (Container) p;
      widgets = con.getItems();
    } else if (p instanceof HasWidgets) {
      HasWidgets hs = (HasWidgets) p;
      widgets = new ArrayList<Widget>();
      Iterator<Widget> it = hs.iterator();
      while (it.hasNext()) {
        widgets.add(it.next());
      }
    }
    if (widgets == null || widgets.size() == 1) {
View Full Code Here

      widgets = handler.getOrderedWidgets(p);
    } else if (p instanceof Container) {
      Container con = (Container) p;
      widgets = con.getItems();
    } else if (p instanceof HasWidgets) {
      HasWidgets hs = (HasWidgets) p;
      widgets = new ArrayList<Widget>();
      Iterator<Widget> it = hs.iterator();
      while (it.hasNext()) {
        widgets.add(it.next());
      }
    }
    if (widgets == null) {
View Full Code Here

      widgets = handler.getOrderedWidgets(p);
    } else if (p instanceof Container) {
      Container con = (Container) p;
      widgets = con.getItems();
    } else if (p instanceof HasWidgets) {
      HasWidgets hs = (HasWidgets) p;
      widgets = new ArrayList<Widget>();
      Iterator<Widget> it = hs.iterator();
      while (it.hasNext()) {
        widgets.add(it.next());
      }
    }
    if (widgets == null) {
View Full Code Here

        menu.add(new HeaderMenuItem(heading));
      }

      Widget con = g.getWidget();
      if (con != null && con instanceof HasWidgets) {
        HasWidgets widgets = (HasWidgets) con;
        Iterator<Widget> it = widgets.iterator();
        while (it.hasNext()) {
          addWidgetToMenu(menu, it.next());
        }
      }
View Full Code Here

    display.animate(animation, false, new AnimationEndCallback() {

      @Override
      public void onAnimationEnd() {
        HasWidgets panel = getPanelToOverlay();
        panel.remove(display.asWidget());
        // see issue 247 => http://code.google.com/p/mgwt/issues/detail?id=247
        MGWTUtil.forceFullRepaint();

      }
    });
View Full Code Here

      return;
    }
    isVisible = true;

    // add overlay to DOM
    HasWidgets panel = getPanelToOverlay();
    panel.add(display.asWidget());

    if (centerContent) {
      container.addStyleName(appearance.dialogCss().animationContainerCenter());

    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HasWidgets

Copyright © 2018 www.massapicom. 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.