クラスVetoableChangeListenerProxy
java.lang.Object
java.util.EventListenerProxy<VetoableChangeListener>
java.beans.VetoableChangeListenerProxy
- すべての実装されたインタフェース:
VetoableChangeListener, EventListener
public class VetoableChangeListenerProxy extends EventListenerProxy<VetoableChangeListener> implements VetoableChangeListener
特に「制約」プロパティを使って
VetoableChangeListenerを追加するためにEventListenerProxyを拡張するクラス。 このクラスのインスタンスは、VetoableChangeListenerとして、拒否可能変更イベントをトリガーするのをサポートするBeanに追加可能です。
オブジェクトにgetVetoableChangeListenersメソッドが含まれている場合、返される配列はVetoableChangeListenerおよびVetoableChangeListenerProxyオブジェクトの組み合わせになる場合があります。
- 導入されたバージョン:
- 1.4
- 関連項目:
-
コンストラクタのサマリー
コンストラクタコンストラクタ説明VetoableChangeListenerProxy(String propertyName, VetoableChangeListener listener) VetoableChangeListenerを特定のプロパティにバインドするコンストラクタ。 -
メソッドのサマリー
修飾子と型メソッド説明リスナーに関連付けられている指定されたプロパティの名前を返します。voidプロパティ変更イベントをリスナー委譲に転送します。クラスで宣言されたメソッド EventListenerProxy
getListenerクラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
VetoableChangeListenerProxy
public VetoableChangeListenerProxy(String propertyName, VetoableChangeListener listener) VetoableChangeListenerを特定のプロパティにバインドするコンストラクタ。- パラメータ:
propertyName- 待機しているプロパティの名前listener- リスナー・オブジェクト
-
-
メソッドの詳細
-
vetoableChange
public void vetoableChange(PropertyChangeEvent event) throws PropertyVetoException プロパティ変更イベントをリスナー委譲に転送します。- 定義:
vetoableChange、インタフェースVetoableChangeListener- パラメータ:
event- プロパティ変更イベント- スロー:
PropertyVetoException- 受け取り側がプロパティ変更をロールバックすることを望んでいる場合
-
getPropertyName
-