protected static class EditableGridDataModel.RowComparator extends Object implements Comparator<GridRow>
Constructor and Description |
---|
EditableGridDataModel.RowComparator(int column,
Comparator<Object> comparator)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(GridRow o1,
GridRow o2)
Compares cell values using the cell comparator.
|
int |
getColumn()
Getter for property 'column'.
|
Comparator<Object> |
getComparator()
Getter for property 'comparator'.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public EditableGridDataModel.RowComparator(int column, Comparator<Object> comparator)
column
- is a column number.comparator
- is a cell comparator.public int getColumn()
public Comparator<Object> getComparator()
public int compare(GridRow o1, GridRow o2)
compare
in interface Comparator<GridRow>
o1
- is the first value.o2
- is the second value.Copyright © 2008–2013. All rights reserved.