|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.util.EventObject | +--javax.swing.event.TreeSelectionEvent
現在の選択範囲での変更を記述するイベントです。変更はパスの数に基づきます。TreeSelectionListener は、通常、イベントのソースに対して、変更された可能性のある各行の新しく選択された状態を問い合わせます。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
TreeSelectionModel
, 直列化された形式フィールドの概要 | |
protected boolean[] |
areNew
各パスについて、そのパスが実際に新しいパスかどうかを示します。 |
protected TreePath |
newLeadSelectionPath
パスが変更されたあとの leadSelectionPath です。 |
protected TreePath |
oldLeadSelectionPath
パスが変更される前の leadSelectionPath です。 |
protected TreePath[] |
paths
このイベントが表すパスです。 |
クラス java.util.EventObject から継承したフィールド |
source |
コンストラクタの概要 | |
TreeSelectionEvent(Object source,
TreePath[] paths,
boolean[] areNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
TreeSelectionModel の選択範囲内での変更を表します。 |
|
TreeSelectionEvent(Object source,
TreePath path,
boolean isNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
TreeSelectionModel の選択範囲内での変更を表します。 |
メソッドの概要 | |
Object |
cloneWithSource(Object newSource)
レシーバのコピーを返します。 |
TreePath |
getNewLeadSelectionPath()
現在のリードパスを返します。 |
TreePath |
getOldLeadSelectionPath()
以前にリードパスだったパスを返します。 |
TreePath |
getPath()
最初のパス要素を返します。 |
TreePath[] |
getPaths()
選択範囲で追加または削除されたパスを返します。 |
boolean |
isAddedPath()
最初のパス要素が選択範囲に追加された場合は true を返します。 |
boolean |
isAddedPath(TreePath path)
path で指定されるパスが選択範囲に追加された場合は true を返します。 |
クラス java.util.EventObject から継承したメソッド |
getSource,
toString |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
フィールドの詳細 |
protected TreePath[] paths
protected boolean[] areNew
protected TreePath oldLeadSelectionPath
protected TreePath newLeadSelectionPath
コンストラクタの詳細 |
public TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
source
- イベントのソースpaths
- 選択範囲で変更されたパスpublic TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
source
- イベントのソースpath
- 選択範囲で変更されたパスisNew
- パスが選択範囲にとって新しいかどうか。false は path が選択範囲から削除されたことを意味するメソッドの詳細 |
public TreePath[] getPaths()
public TreePath getPath()
public boolean isAddedPath()
public boolean isAddedPath(TreePath path)
public TreePath getOldLeadSelectionPath()
public TreePath getNewLeadSelectionPath()
public Object cloneWithSource(Object newSource)
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |