KickJava   Java API By Example, From Geeks To Geeks.

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


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

12 public class SortWinListItem extends TLWListItem {
13
14 public SortWinListItem(Selectable selectable, int sortOrder) {
15     super(selectable, sortOrder == Query.SORT_DESCENDING ? 'd' : 'a');
16 }
17
18 public boolean sortsAscending() { return sortOrder == 'a'; }
19
20 }
21
Popular Tags