Package jimm.datavision.gui

Examples of jimm.datavision.gui.GroupWinListItem


    // Create list of current groups
    oldGroupItems = new ArrayList();
    for (Iterator iter = report.groups(); iter.hasNext(); ) {
  Group group = (Group)iter.next();
  oldGroupItems.add(new GroupWinListItem(group.getSelectable(), group));
    }

}
View Full Code Here


protected void setGroups(Collection fromList, Collection toList) {
    switch (whatChanged(fromList, toList)) {
    case ONLY_SORTING_CHANGE:
  for (Iterator iter = toList.iterator(); iter.hasNext(); ) {
      GroupWinListItem item = (GroupWinListItem)iter.next();
      item.getGroup().setSortOrder(item.getSortOrder());
  }
  break;
    case DRASTIC_CHANGE:
  report.removeAllGroups();
  for (Iterator iter = toList.iterator(); iter.hasNext(); ) {
      GroupWinListItem item = (GroupWinListItem)iter.next();
      Group g = item.getGroup();
      if (g == null)
    g = Group.create(report, item.getSelectable());
      g.setSortOrder(item.getSortOrder());
      report.addGroup(g);
  }
  designer.rebuildGroups();
  break;
    case NO_CHANGE:
View Full Code Here

    int change = NO_CHANGE;
    Iterator fromIter = fromList.iterator();
    Iterator toIter = toList.iterator();
    while (fromIter.hasNext()) {
  GroupWinListItem fromItem = (GroupWinListItem)fromIter.next();
  GroupWinListItem toItem = (GroupWinListItem)toIter.next();
  if (fromItem.getGroup() != toItem.getGroup())
      return DRASTIC_CHANGE;
  if (fromItem.sortsAscending() != toItem.sortsAscending())
      change = ONLY_SORTING_CHANGE;
    }
    return change;    // Either NO_CHANGE or ONLY_SORTING_CHANGE
}
View Full Code Here

TOP

Related Classes of jimm.datavision.gui.GroupWinListItem

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.