01: package jimm.datavision.gui;
02:
03: import jimm.datavision.Selectable;
04: import jimm.datavision.source.Query;
05:
06: /**
07: * Sort win list items are used by the sort editing window {@link SortWin} and
08: * the {@link jimm.datavision.gui.cmd.SortEditCommand} to remember a sort
09: * column and its sort order.
10: *
11: * @author Jim Menard, <a href="mailto:jimm@io.com">jimm@io.com</a>
12: */
13: public class SortWinListItem extends TLWListItem {
14:
15: public SortWinListItem(Selectable selectable, int sortOrder) {
16: super (selectable, sortOrder == Query.SORT_DESCENDING ? 'd'
17: : 'a');
18: }
19:
20: public boolean sortsAscending() {
21: return sortOrder == 'a';
22: }
23:
24: }
|