Package org.waveprotocol.wave.client.wavepanel.impl.toolbar.gadget.GadgetInfoProvider

Examples of org.waveprotocol.wave.client.wavepanel.impl.toolbar.gadget.GadgetInfoProvider.GadgetInfo


        infoProviderList.size());
  }

  private void assertSameList(List<GadgetInfo> expected, List<GadgetInfo> actual) {
    for (int i = 0; i < expected.size(); i++) {
      GadgetInfo gadget1 = expected.get(i);
      GadgetInfo gadget2 = actual.get(i);
      if (!isEqual(gadget1, gadget2)) {
        fail("The filtered gadgets are not the same: " + gadget1.getName() + ", "
            + gadget2.getName());
      }
    }
  }
View Full Code Here


    JSONValue value = JSONParser.parseStrict(json);
    JSONArray array = value.isArray();
    if (array != null) {
      for (int i = 0; i < array.size(); i++) {
        JSONValue item = array.get(i);
        GadgetInfo info = parseGadgetInfo(item);
        if (info != null) {
          gadgetList.add(info);
        }
      }
    }
View Full Code Here

      String gadgetUrl = object.get("gadgetUrl").isString().stringValue();
      String author = object.get("author").isString().stringValue();
      String submittedBy = object.get("submittedBy").isString().stringValue();
      String imageUrl = object.get("imageUrl").isString().stringValue();

      return new GadgetInfo(name, desc, primaryCategory, secondaryCategory, gadgetUrl, author,
          submittedBy, imageUrl);
    }
    return null;
  }
View Full Code Here

    JSONValue value = JSONParser.parseStrict(json);
    JSONArray array = value.isArray();
    if (array != null) {
      for (int i = 0; i < array.size(); i++) {
        JSONValue item = array.get(i);
        GadgetInfo info = parseGadgetInfo(item);
        if (info != null) {
          gadgetList.add(info);
        }
      }
    }
View Full Code Here

      String gadgetUrl = object.get("gadgetUrl").isString().stringValue();
      String author = object.get("author").isString().stringValue();
      String submittedBy = object.get("submittedBy").isString().stringValue();
      String imageUrl = object.get("imageUrl").isString().stringValue();

      return new GadgetInfo(name, desc, primaryCategory, secondaryCategory, gadgetUrl, author,
          submittedBy, imageUrl);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.wavepanel.impl.toolbar.gadget.GadgetInfoProvider.GadgetInfo

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.