KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jimm > datavision > gui > GroupWinListItem


1 package jimm.datavision.gui;
2 import jimm.datavision.Group;
3 import jimm.datavision.Selectable;
4
5 /**
6  * Group win list items are used by the group editing window {@link GroupWin}
7  * and the {@link jimm.datavision.gui.cmd.GroupEditCommand} to remember a
8  * group and its sort order.
9  *
10  * @author Jim Menard, <a HREF="mailto:jimm@io.com">jimm@io.com</a>
11  */

12 public class GroupWinListItem extends TLWListItem {
13
14 Group group;
15
16 public GroupWinListItem(Selectable selectable, Group group) {
17     super(selectable,
18       group == null ? Group.SORT_ASCENDING : group.getSortOrder());
19     this.group = group; // May be null
20
}
21
22 public Group getGroup() { return group; }
23
24 public boolean sortsAscending() { return sortOrder == Group.SORT_ASCENDING; }
25
26 }
27
Popular Tags