|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.SortedTableModel.SortContainer
public static class SortedTableModel.SortContainer
Helper class for sorting the columns.
| Constructor Summary | |
|---|---|
SortedTableModel.SortContainer(java.lang.Comparable value,
int index)
Initializes the container. |
|
| Method Summary | |
|---|---|
int |
compareTo(SortedTableModel.SortContainer o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getIndex()
Returns the original index of the item. |
java.lang.Comparable |
getValue()
Returns the value to sort on. |
java.lang.String |
toString()
Returns a string representation of the sort container. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SortedTableModel.SortContainer(java.lang.Comparable value,
int index)
value - the value to sort onindex - the original index| Method Detail |
|---|
public java.lang.Comparable getValue()
public int getIndex()
public int compareTo(SortedTableModel.SortContainer o)
compareTo in interface java.lang.Comparable<SortedTableModel.SortContainer>o - the object to be compared.
java.lang.ClassCastException - if the specified object's type prevents it
from being compared to this object.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.
java.lang.ClassCastException - if the specified object's type prevents it
from being compared to this object.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||