Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.smardec.asc.table
Class DefaultRowComparator

    java.lang.Object
      |
      +--com.smardec.asc.table.DefaultRowComparator

All Implemented Interfaces:
  RowComparator

public class DefaultRowComparator
extends java.lang.Object
implements RowComparator

Default implementation of `RowComparator` interface.

Constructor Summary
`DefaultRowComparator()`

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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultRowComparator

    public DefaultRowComparator()

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.

  Specified by:
    `compare` in interface `RowComparator`
  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.

Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2006 Smardec. All Rights Reserved.