Home about services products contact login
   com.smardec.asc

Advanced Swing Components

  animatepanel
  autocomplete
  dropdown
  filechooser
  fontchooser
  gradient
  hyperlink
  outlookpanel
  outlookpanel.renderers
  quick
  rotate
  sliderpanel
  spantable
  splashscreen
  statusbar
  table
  table.renderers
  table.wrappers
  tree
  treetable
  util
  xmlbars
  xmlbars.menubar
  xmlbars.toolbar
  xmlbars.toolbar.layouts
com.smardec.asc.table
Interface RowComparator

All Known Implementing Classes:
DefaultRowComparator

public interface RowComparator

A comparison function used for sorting table rows.


Method Summary
int compare(int row1, int row2, int column, javax.swing.table.TableModel tableModel)
Compares two rows for order.

Method Detail
compare

public int compare(int row1,
                   int row2,
                   int column,
                   javax.swing.table.TableModel tableModel)
Compares two rows for order. Returns a negative integer, zero, or a positive integer as the first row is less than, equal to, or greater than the second.

Parameters:
row1 - the first row to be compared
row2 - the second row to be compared
column - sorting column
tableModel - table's model
Returns:
a negative integer, zero, or a positive integer as the first row is less than, equal to, or greater than the second.
Home about services products contact login