|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--java.beans.EventSetDescriptor
EventSetDescriptor は、指定された Java bean が発生させるイベントのグループを記述します。
指定されたイベントのグループは、単一のイベントリスナーインタフェースのメソッド呼び出しとして、すべて伝達されます。イベントリスナーオブジェクトは、イベントソースの登録メソッドの呼び出しにより登録できます。
| コンストラクタの概要 | |
EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String listenerMethodName)
このコンストラクタは、次のようなもっとも単純な設計パターンに基づくことを前提にして EventSetDescriptor を作成します。 |
|
EventSetDescriptor(Class sourceClass,
String eventSetName,
Class listenerType,
String[] listenerMethodNames,
String addListenerMethodName,
String removeListenerMethodName)
文字列名を使って新しい 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,
MethodDescriptor[] listenerMethodDescriptors,
Method addListenerMethod,
Method removeListenerMethod)
java.lang.reflect.MethodDescriptor および java.lang.Class オブジェクトを使って新しい EventSetDescriptor を作成します。 |
|
| メソッドの概要 | |
Method |
getAddListenerMethod()
イベントリスナーの追加に使用するメソッドを取得します。 |
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(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,
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 を配列に取得します。public Method getAddListenerMethod()
public Method getRemoveListenerMethod()
public void setUnicast(boolean unicast)
unicast - イベントセットがユニキャストの場合は truepublic boolean isUnicast()
public void setInDefaultEventSet(boolean inDefaultEventSet)
unicast - イベントセットがユニキャストの場合は truepublic boolean isInDefaultEventSet()
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.