|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--java.beans.EventSetDescriptor
EventSetDescriptor は、指定の JavaBean がトリガするイベントのグループを記述します。
指定のイベントグループは、すべて単一のイベントリスナーインタフェース上のメソッド呼び出しとして配信されます。イベントリスナーオブジェクトは、イベントソースから提供される登録メソッドの呼び出しによって登録されます。
| コンストラクタの概要 | |
EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String listenerMethodName)
指定されたイベント fred が (1) FredListener インタフェースの単一のメソッド呼び出しとして配信される、(2) FredEvent 型の単一の引数をとる、(3) FredListener をソースコンポーネントの addFredListener メソッドの呼び出しで登録し removeFredListener メソッドの呼び出しで削除する、という最も単純な標準設計パターンに従うものとして、EventSetDescriptor を作成します。 |
|
EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String[] listenerMethodNames,
String addListenerMethodName,
String removeListenerMethodName)
文字列名を使って、ゼロから EventSetDescriptor を作成します。 |
|
EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String[] listenerMethodNames,
String addListenerMethodName,
String removeListenerMethodName,
String getListenerMethodName)
このコンストラクタは、文字列名を使って、ゼロから EventSetDescriptor を作成します。 |
|
EventSetDescriptor(String eventSetName,
Class listenerType,
Method[] listenerMethods,
Method addListenerMethod,
Method removeListenerMethod)
java.lang.reflect.Method オブジェクトと java.lang.Class オブジェクトを使って、ゼロから EventSetDescriptor を作成します。 |
|
EventSetDescriptor(String eventSetName,
Class listenerType,
Method[] listenerMethods,
Method addListenerMethod,
Method removeListenerMethod,
Method getListenerMethod)
このコンストラクタは、java.lang.reflect.Method オブジェクトと java.lang.Class オブジェクトを使って、ゼロから EventSetDescriptor を作成します。 |
|
EventSetDescriptor(String eventSetName,
Class listenerType,
MethodDescriptor[] listenerMethodDescriptors,
Method addListenerMethod,
Method removeListenerMethod)
java.lang.reflect.MethodDescriptor オブジェクトと java.lang.Class オブジェクトを使って、ゼロから EventSetDescriptor を作成します。 |
|
| メソッドの概要 | |
Method |
getAddListenerMethod()
イベントリスナーの追加時に使用するメソッドを取得します。 |
Method |
getGetListenerMethod()
登録済みイベントリスナーへのアクセスに使用するメソッドを取得します。 |
MethodDescriptor[] |
getListenerMethodDescriptors()
ターゲットリスナーインタフェースの MethodDescriptor を取得します。 |
Method[] |
getListenerMethods()
ターゲットリスナーインタフェースのメソッドを取得します。 |
Class |
getListenerType()
ターゲットインタフェースの Class オブジェクトを取得します。 |
Method |
getRemoveListenerMethod()
イベントリスナーの削除時に使用するメソッドを取得します。 |
boolean |
isInDefaultEventSet()
イベントセットがデフォルトのセットであるかどうかを報告します。 |
boolean |
isUnicast()
通常、イベントソースはマルチキャストです。 |
void |
setInDefaultEventSet(boolean inDefaultEventSet)
イベントセットをデフォルトのセットとしてマークします。 |
void |
setUnicast(boolean unicast)
イベントセットをユニキャスト、または非ユニキャストとしてマークします。 |
| クラス java.beans.FeatureDescriptor から継承したメソッド |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String listenerMethodName)
throws IntrospectionException
sourceClass - イベントをトリガするクラスeventSetName - イベントのプログラム名 (fred など)。通常、先頭の文字はアルファベットの小文字になるlistenerType - イベントの配信先となるターゲットインタフェースlistenerMethodName - イベントがターゲットリスナーインタフェースに配信されたときに呼び出されるメソッド
IntrospectionException - イントロスペクション中に例外が発生した場合
public EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String[] listenerMethodNames,
String addListenerMethodName,
String removeListenerMethodName)
throws IntrospectionException
sourceClass - イベントをトリガするクラスeventSetName - イベントセットのプログラム名。通常、先頭の文字はアルファベットの小文字になるlistenerType - イベントの配信先となるターゲットインタフェースのクラスlistenerMethodNames - イベントがターゲットリスナーインタフェースに配信されたときに呼び出されるメソッドの名前addListenerMethodName - イベントリスナーオブジェクトの登録に使用されるイベントソース上のメソッドの名前removeListenerMethodName - イベントリスナーオブジェクトの登録解除に使用されるイベントソース上のメソッドの名前
IntrospectionException - イントロスペクション中に例外が発生した場合
public EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String[] listenerMethodNames,
String addListenerMethodName,
String removeListenerMethodName,
String getListenerMethodName)
throws IntrospectionException
sourceClass - イベントをトリガするクラスeventSetName - イベントセットのプログラム名。通常、先頭の文字はアルファベットの小文字になるlistenerType - イベントの配信先となるターゲットインタフェースのクラスlistenerMethodNames - イベントがターゲットリスナーインタフェースに配信されたときに呼び出されるメソッドの名前addListenerMethodName - イベントリスナーオブジェクトの登録に使用されるイベントソース上のメソッドの名前removeListenerMethodName - イベントリスナーオブジェクトの登録解除に使用されるイベントソース上のメソッドの名前getListenerMethodName - イベントリスナーオブジェクトの配列へのアクセスに使用されるイベントソース上のメソッド
IntrospectionException - イントロスペクション中に例外が発生した場合
public EventSetDescriptor(String eventSetName,
Class listenerType,
Method[] listenerMethods,
Method addListenerMethod,
Method removeListenerMethod)
throws IntrospectionException
eventSetName - イベントセットのプログラム名listenerType - リスナーインタフェースのクラスlistenerMethods - ターゲットリスナー内の個々のイベント処理メソッドについて記述する Method オブジェクトの配列addListenerMethod - イベントリスナーオブジェクトの登録に使用されるイベントソース上のメソッドremoveListenerMethod - イベントリスナーオブジェクトの登録解除に使用されるイベントソース上のメソッド
IntrospectionException - イントロスペクション中に例外が発生した場合
public EventSetDescriptor(String eventSetName,
Class listenerType,
Method[] listenerMethods,
Method addListenerMethod,
Method removeListenerMethod,
Method getListenerMethod)
throws IntrospectionException
eventSetName - イベントセットのプログラム名listenerType - リスナーインタフェースのクラスlistenerMethods - ターゲットリスナー内の個々のイベント処理メソッドについて記述する Method オブジェクトの配列addListenerMethod - イベントリスナーオブジェクトの登録に使用されるイベントソース上のメソッドremoveListenerMethod - イベントリスナーオブジェクトの登録解除に使用されるイベントソース上のメソッドgetListenerMethod - イベントリスナーオブジェクトの配列へのアクセスに使用されるイベントソース上のメソッド
IntrospectionException - イントロスペクション中に例外が発生した場合
public EventSetDescriptor(String eventSetName,
Class listenerType,
MethodDescriptor[] listenerMethodDescriptors,
Method addListenerMethod,
Method removeListenerMethod)
throws IntrospectionException
eventSetName - イベントセットのプログラム名listenerType - リスナーインタフェースのクラスlistenerMethodDescriptors - ターゲットリスナー内の個々のイベント処理メソッドについて記述する MethodDescriptor オブジェクトの配列addListenerMethod - イベントリスナーオブジェクトの登録に使用されるイベントソース上のメソッドremoveListenerMethod - イベントリスナーオブジェクトの登録解除に使用されるイベントソース上のメソッド
IntrospectionException - イントロスペクション中に例外が発生した場合| メソッドの詳細 |
public Class getListenerType()
public Method[] getListenerMethods()
public MethodDescriptor[] getListenerMethodDescriptors()
MethodDescriptor を取得します。
MethodDescriptor オブジェクトの配列public Method getAddListenerMethod()
public Method getRemoveListenerMethod()
public Method getGetListenerMethod()
public void setUnicast(boolean unicast)
unicast - イベントセットがユニキャストである場合は truepublic boolean isUnicast()
public void setInDefaultEventSet(boolean inDefaultEventSet)
inDefaultEventSet - イベントセットがデフォルトのセットである場合は true、それ以外の場合は falsepublic boolean isInDefaultEventSet()
true
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.