de.kupzog.ktable
Class KTableSortOnClick

java.lang.Object
  extended by de.kupzog.ktable.KTableCellSelectionAdapter
      extended by de.kupzog.ktable.KTableSortOnClick
All Implemented Interfaces:
KTableCellSelectionListener

public class KTableSortOnClick
extends KTableCellSelectionAdapter

This class provides the code that makes the table sort when the user clicks on the table header.


Constructor Summary
KTableSortOnClick(KTable table, KTableSortComparator comparator)
           
 
Method Summary
 void fixedCellSelected(int col, int row, int statemask)
          Implements sorting behavior when clicking on the fixed header row.
 
Methods inherited from class de.kupzog.ktable.KTableCellSelectionAdapter
cellSelected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KTableSortOnClick

public KTableSortOnClick(KTable table,
                         KTableSortComparator comparator)
Method Detail

fixedCellSelected

public void fixedCellSelected(int col,
                              int row,
                              int statemask)
Implements sorting behavior when clicking on the fixed header row.

Specified by:
fixedCellSelected in interface KTableCellSelectionListener
Overrides:
fixedCellSelected in class KTableCellSelectionAdapter
Parameters:
col - the column of the cell
row - the row of the cell
statemask - the modifier keys that where pressed when the selection happened.
See Also:
for an explanation of the term "fixed cells".