Package com.googlecode.mgwt.examples.showcase.client.activities.gcell.GroupedCellListView

Examples of com.googlecode.mgwt.examples.showcase.client.activities.gcell.GroupedCellListView.Header


  private List<CellGroup<Header, Content>> buildList() {
    ArrayList<CellGroup<Header, Content>> list = new ArrayList<CellGroup<Header, Content>>();

    for (int i = 0; i < labels.length; i++) {
      final Header header = new Header(labels[i]);
      final ArrayList<Content> arrayList = new ArrayList<Content>();

      //int max = (int) (Math.random() * 5);

      int max = 2;

      for (int j = 0; j < max; j++) {
        arrayList.add(new Content("" + j));
      }

      CellGroup<Header, Content> cellGroup = new StandardCellGroup<Header, Content>(header.getName(), header, arrayList);

      list.add(cellGroup);

    }

View Full Code Here

TOP

Related Classes of com.googlecode.mgwt.examples.showcase.client.activities.gcell.GroupedCellListView.Header

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.