jimm.datavision.gui
Class TLWListItem

java.lang.Object
  extended by jimm.datavision.gui.TLWListItem
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
GroupWinListItem, SortWinListItem

abstract class TLWListItem
extends java.lang.Object
implements java.lang.Comparable

Used in lists to hold and display database column and sort order.

Author:
Jim Menard, jimm@io.com
See Also:
TwoListWin, GroupWin, SortWin

Field Summary
(package private)  Selectable selectable
           
(package private)  int sortOrder
           
 
Constructor Summary
TLWListItem(Selectable selectable, int sortOrder)
          Constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 Selectable getSelectable()
           
 int getSortOrder()
           
abstract  boolean sortsAscending()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selectable

Selectable selectable

sortOrder

int sortOrder
Constructor Detail

TLWListItem

TLWListItem(Selectable selectable,
            int sortOrder)
Constructor.

Parameters:
selectable - a selectable thingie
sortOrder - a subclass-specific value for sort order
Method Detail

sortsAscending

public abstract boolean sortsAscending()

getSelectable

public Selectable getSelectable()

getSortOrder

public int getSortOrder()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object