Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.RowSorter.SortKey
public static class RowSorter.SortKey extends Object
SortKey describes the sort order for a particular column. The column index is in terms of the underlying model, which may differ from that of the view.
Constructor and Description |
---|
RowSorter.SortKey(int column,
SortOrder sortOrder)
Creates a SortKey for the specified column with
the specified sort order. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns true if this object equals the specified object. |
int |
getColumn()
Returns the index of the column. |
SortOrder |
getSortOrder()
Returns the sort order of the column. |
int |
hashCode()
Returns the hash code for this SortKey . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowSorter.SortKey(int column, SortOrder sortOrder)
SortKey
for the specified column with
the specified sort order.
column
- index of the column, in terms of the modelsortOrder
- the sorter orderIllegalArgumentException
- if sortOrder
is
null
Method Detail |
---|
public final int getColumn()
public final SortOrder getSortOrder()
public int hashCode()
SortKey
.
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean equals(Object o)
SortKey
and
references the same column and sort order, the two objects
are equal.
equals
in class Object
o
- the object to compare too
is equal to this SortKey
Object.hashCode()
,
HashMap
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.