|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.swing.event.RowSorterEvent
public class RowSorterEvent
RowSorterEvent 提供 RowSorter 的更改通知。可能有兩種型別的通知:
Type.SORT_ORDER_CHANGED:表示排序順序發生了更改。此通知通常跟有以下通知:
Type.SORTED:表示已經以某種方式轉換了模型的內容。例如,可能對內容進行了排序或過濾。
RowSorter| 巢狀類別摘要 | |
|---|---|
static class |
RowSorterEvent.Type
RowSorterEvent 型別的列舉。 |
| 欄位摘要 |
|---|
| 從類別 java.util.EventObject 繼承的欄位 |
|---|
source |
| 建構子摘要 | |
|---|---|
RowSorterEvent(RowSorter source)
創建型別為 SORT_ORDER_CHANGED 的 RowSorterEvent。 |
|
RowSorterEvent(RowSorter source,
RowSorterEvent.Type type,
int[] previousRowIndexToModel)
創建一個 RowSorterEvent。 |
|
| 方法摘要 | |
|---|---|
int |
convertPreviousRowIndexToModel(int index)
返回基於模型排序之前的 index 的位置。 |
int |
getPreviousRowCount()
返回排序之前行的數量。 |
RowSorter |
getSource()
返回以 RowSorter 形式表示的事件源。 |
RowSorterEvent.Type |
getType()
返回事件的型別。 |
| 從類別 java.util.EventObject 繼承的方法 |
|---|
toString |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public RowSorterEvent(RowSorter source)
SORT_ORDER_CHANGED 的 RowSorterEvent。
source - 更改的源
IllegalArgumentException - 如果 source 為 null
public RowSorterEvent(RowSorter source,
RowSorterEvent.Type type,
int[] previousRowIndexToModel)
RowSorterEvent。
source - 更改的源type - 事件的型別previousRowIndexToModel - 從模型索引到排序之前的視圖索引的映射關係,可以為 null
IllegalArgumentException - 如果 source 或 type 為 null| 方法詳細資訊 |
|---|
public RowSorter getSource()
RowSorter 形式表示的事件源。
EventObject 中的 getSourceRowSorter 形式表示的事件源public RowSorterEvent.Type getType()
public int convertPreviousRowIndexToModel(int index)
index 的位置。此方法只用於型別為 SORTED 的事件。如果索引無效或者尚未提供排序之前的位置,則此方法將返回 -1。
index - 基於視圖的索引
public int getPreviousRowCount()
SORTED 的事件;如果尚未提供最後的位置,此方法將返回 0。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。