01: package jimm.datavision.gui;
02:
03: import jimm.datavision.Group;
04: import jimm.datavision.Selectable;
05:
06: /**
07: * Group win list items are used by the group editing window {@link GroupWin}
08: * and the {@link jimm.datavision.gui.cmd.GroupEditCommand} to remember a
09: * group and its sort order.
10: *
11: * @author Jim Menard, <a href="mailto:jimm@io.com">jimm@io.com</a>
12: */
13: public class GroupWinListItem extends TLWListItem {
14:
15: Group group;
16:
17: public GroupWinListItem(Selectable selectable, Group group) {
18: super (selectable, group == null ? Group.SORT_ASCENDING : group
19: .getSortOrder());
20: this .group = group; // May be null
21: }
22:
23: public Group getGroup() {
24: return group;
25: }
26:
27: public boolean sortsAscending() {
28: return sortOrder == Group.SORT_ASCENDING;
29: }
30:
31: }
|