Package com.google.gwt.museum.client.common.ControlInputPanel

Examples of com.google.gwt.museum.client.common.ControlInputPanel.IntegerInput


  public Widget createIssue() {
    VerticalPanel v = new VerticalPanel();
    ControlInputPanel p = new ControlInputPanel();
    v.add(p);
    v.add(log);
    final IntegerInput size = new IntegerInput("how many clipped images", 10,
        30, p);

    Button createClippedImages = new Button("time the creation",
        new ClickHandler() {
          boolean firstTime = true;

          public void onClick(ClickEvent event) {
            final Duration d = new Duration();

            final int numImages = size.getValue();
            final TreeImages test = GWT.<TreeImages> create(TreeImages.class);

            for (int i = 0; i < numImages; i++) {
              Image current = test.treeClosed().createImage();
View Full Code Here


  public Widget createIssue() {
    VerticalPanel v = new VerticalPanel();
    ControlInputPanel p = new ControlInputPanel();
    v.add(p);
    v.add(log);
    final IntegerInput size = new IntegerInput("flowpanel", 10, p);
    Button create = new Button("create widget", new ClickHandler() {

      public void onClick(ClickEvent event) {
        createLargeFlowPanel(size.getValue());
      }
    });

    Button distroy = new Button("time the removal", new ClickHandler() {
      public void onClick(ClickEvent event) {
        Duration d = new Duration();
        target.clear();

        log.report("Took " + d.elapsedMillis() + " milliseconds to clear "
            + size.getValue() + " widgets from a flow panel");
        for (Widget child : children) {
          if (child.getElement().getPropertyString("__listener") != null) {
            throw new IllegalStateException(
                "each child should no longer have a listener");
          }
View Full Code Here

TOP

Related Classes of com.google.gwt.museum.client.common.ControlInputPanel.IntegerInput

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.