|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.RowSorter.SortKey
public static class RowSorter.SortKey
SortKey 描述特定列的排序顺序。列索引是基于底层模型的,它可能不同于视图的列索引。
| 构造方法摘要 | |
|---|---|
RowSorter.SortKey(int column,
SortOrder sortOrder)
使用指定的排序顺序创建指定列的 SortKey。 |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object o)
如果此对象与指定对象相等,则返回 true。 |
int |
getColumn()
返回列的索引。 |
SortOrder |
getSortOrder()
返回列的排序顺序。 |
int |
hashCode()
返回此 SortKey 的哈希码。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public RowSorter.SortKey(int column,
SortOrder sortOrder)
SortKey。
column - 列索引,就模型而言sortOrder - 排序顺序
IllegalArgumentException - 如果 sortOrder 为 null| 方法详细信息 |
|---|
public final int getColumn()
public final SortOrder getSortOrder()
public int hashCode()
SortKey 的哈希码。
Object 中的 hashCodeObject.equals(java.lang.Object),
Hashtablepublic boolean equals(Object o)
SortKey 并且引用相同的列和排序顺序,则这两个对象相等。
Object 中的 equalso - 要比较的对象
o 等于此 SortKey,则返回 trueObject.hashCode(),
Hashtable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。