Package com.google.gwt.debugpanel.models

Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsValue


    }

    private void setActivityMethod(GwtDebugStatisticsModel model, GwtNode node, StatisticsEvent event) {
      Object method = event.getExtraParameter("method");
      if (method != null) {
        GwtDebugStatisticsValue value = node.getValue();
        value.setRpcMethod(String.valueOf(method));
      }
    }
View Full Code Here


  }

  private void setRpcMethod(GwtDebugStatisticsModel model, GwtNode node, StatisticsEvent event) {
    Object method = event.getExtraParameter("method");
    if (method != null) {
      GwtDebugStatisticsValue value = node.getValue();
      value.setRpcMethod(String.valueOf(method));
    }
  }
View Full Code Here

  }

  private void setRpcMethod(GwtDebugStatisticsModel model, GwtNode node, StatisticsEvent event) {
    Object method = event.getExtraParameter("method");
    if (method != null) {
      GwtDebugStatisticsValue value = node.getValue();
      value.setRpcMethod(String.valueOf(method));
    }
  }
View Full Code Here

    //@Override
    public boolean include(DebugStatisticsValue value) {
      if (pattern == null || pattern.length() == 0) {
        return true;
      } else if (value instanceof GwtDebugStatisticsValue) {
        GwtDebugStatisticsValue v = (GwtDebugStatisticsValue) value;
        return v.hasRpcMethod() && v.getRpcMethod().matches(pattern);
      }
      return false;
    }
View Full Code Here

  private static DebugStatisticsValue value(final long start, final long end) {
    return new DebugStatisticsValue("name", "module", start, end) {};
  }

  private static DebugStatisticsValue value(String rpc) {
    GwtDebugStatisticsValue value = new GwtDebugStatisticsValue("name", "module", 10, 20);
    if (rpc != null) {
      value.setRpcMethod(rpc);
    }
    return value;
  }
View Full Code Here

    assertEquals(2, view.getChildCount(parent));
    listener.assertAddedAndReset(parent, view.getChild(parent, 1), 1);
  }

  public void testChangeInValueIsPropagated() {
    GwtDebugStatisticsValue value1 = value(), value2 = value();
    Node<GwtDebugStatisticsValue> myParent = new Node<GwtDebugStatisticsValue>(value1);
    view.nodeAdded(myRoot, myParent, 0);
    Object node = view.getChild(root, 0);
    listener.reset();
View Full Code Here

    assertEquals(0, listener.removed);
    assertEquals(0, listener.changed);
  }

  private static GwtDebugStatisticsValue value() {
    return new GwtDebugStatisticsValue("label", "module", 0, 1);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.debugpanel.models.GwtDebugStatisticsValue

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.