public class BeanContextChildSupport extends Object implements BeanContextChild, BeanContextServicesListener, Serializable
BeanContextChildプロトコルの実装をサポートするための一般的なサポート・クラスです。このクラスは、直接サブクラス化されるか、あるいはカプセル化されて委譲されることにより、指定されたコンポーネント用としてこのインタフェースを実装します。
BeanContext, BeanContextServices, BeanContextChild, 直列化された形式| 修飾子と型 | フィールドと説明 |
|---|---|
protected BeanContext |
beanContext
Beanコンテキストです。
|
BeanContextChild |
beanContextChildPeer
この
BeanContextChildが入れ子になっているBeanContext。 |
protected PropertyChangeSupport |
pcSupport
このBeanContextChildSupportに関連付けられているPropertyChangeSupport。
|
protected boolean |
rejectedSetBCOnce
試行されたsetBeanContext操作に対してスローされた
PropertyChangeVetoExceptionが少なくとも1つあることを示すフラグ。 |
protected VetoableChangeSupport |
vcSupport
このBeanContextChildSupportに関連付けられているVetoableChangeSupport。
|
| コンストラクタと説明 |
|---|
BeanContextChildSupport()
JavaBeanコンポーネント自体を実装するために、このクラスのサブクラス化が行われたBeanContextChildSupportを構築します。
|
BeanContextChildSupport(BeanContextChild bcc)
JavaBeanコンポーネント自体がBeanContextChildを実装し、これをカプセル化しているBeanContextChildSupportを構築します。BeanContextChildインタフェースはこの実装に委譲されます。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
void |
addPropertyChangeListener(String name, PropertyChangeListener pcl)
特定のプロパティのPropertyChangeListenerを追加します。
|
void |
addVetoableChangeListener(String name, VetoableChangeListener vcl)
特定のプロパティのVetoableChangeListenerを追加します。
|
void |
firePropertyChange(String name, Object oldValue, Object newValue)
登録されているすべてのリスナーにバウンド・プロパティの更新を通知します。
|
void |
fireVetoableChange(String name, Object oldValue, Object newValue)
登録されているすべてのリスナーに拒否可能プロパティの更新を通知します。
|
BeanContext |
getBeanContext()
この
BeanContextChildSupportの入れ子になっているBeanContextを取得します。 |
BeanContextChild |
getBeanContextChildPeer()
このBeanContextChildSupportに関連付けられているBeanContextChildを取得します。
|
protected void |
initializeBeanContextResources()
このメソッドは、独自の初期化動作を提供するためにサブクラスによってオーバーライドされることがあります。
|
boolean |
isDelegated()
このクラスがほかのクラスの委譲であるかどうかを報告します。
|
protected void |
releaseBeanContextResources()
このメソッドは、独自の解放動作を提供するためにサブクラスによってオーバーライドされることがあります。
|
void |
removePropertyChangeListener(String name, PropertyChangeListener pcl)
特定のプロパティのPropertyChangeListenerを削除します。
|
void |
removeVetoableChangeListener(String name, VetoableChangeListener vcl)
VetoableChangeListenerを削除します。 |
void |
serviceAvailable(BeanContextServiceAvailableEvent bcsae)
入れ子になっているBeanContextから新しいサービスを使用できます。
|
void |
serviceRevoked(BeanContextServiceRevokedEvent bcsre)
入れ子になっているBeanContextによって提供されるサービスが無効になっています。
|
void |
setBeanContext(BeanContext bc)
この
BeanContextChildSupportのBeanContextを設定します。 |
boolean |
validatePendingSetBeanContext(BeanContext newValue)
入れ子になっているBeanContextプロパティ値の保留中の変更を検証するなどの目的でsetBeanContextから呼び出されます。
|
public BeanContextChild beanContextChildPeer
BeanContextChildが入れ子になっているBeanContext。protected PropertyChangeSupport pcSupport
protected VetoableChangeSupport vcSupport
protected transient BeanContext beanContext
protected transient boolean rejectedSetBCOnce
PropertyChangeVetoExceptionが少なくとも1つあることを示すフラグ。public BeanContextChildSupport()
public BeanContextChildSupport(BeanContextChild bcc)
bcc - 基礎となるBeanContextChildpublic void setBeanContext(BeanContext bc) throws PropertyVetoException
BeanContextChildSupportのBeanContextを設定します。setBeanContext、インタフェース: BeanContextChildbc - BeanContextプロパティに割り当てる新しい値PropertyVetoException - 変更が拒否された場合public BeanContext getBeanContext()
BeanContextChildSupportの入れ子になっているBeanContextを取得します。getBeanContext、インタフェース: BeanContextChildBeanContextChildSupportの入れ子になっているBeanContext。public void addPropertyChangeListener(String name, PropertyChangeListener pcl)
nameまたはpclがnullの場合、例外はスローされず、何も処理は行われません。addPropertyChangeListener、インタフェース: BeanContextChildname - 待機しているプロパティの名前pcl - 追加するPropertyChangeListenerpublic void removePropertyChangeListener(String name, PropertyChangeListener pcl)
pclが2回以上追加された場合は、削除されたあとに1回少ない通知が行われます。nameがnullの場合、例外はスローされず、何も処理は行われません。pclがnullの場合、または指定されたプロパティに追加されなかった場合、例外はスローされず、何も処理は行われません。removePropertyChangeListener、インタフェース: BeanContextChildname - 待機していたプロパティの名前pcl - 削除されるPropertyChangeListenerpublic void addVetoableChangeListener(String name, VetoableChangeListener vcl)
nameまたはvclがnullの場合、例外はスローされず、何も処理は行われません。addVetoableChangeListener、インタフェース: BeanContextChildname - 待機しているプロパティの名前vcl - 追加するVetoableChangeListenerpublic void removeVetoableChangeListener(String name, VetoableChangeListener vcl)
VetoableChangeListenerを削除します。指定したプロパティの同じイベント・ソースにpclが2回以上追加された場合は、削除されたあとに1回少ない通知が行われます。nameがnullの場合、例外はスローされず、何も処理は行われません。vclがnullの場合、または指定されたプロパティに追加されなかった場合、例外はスローされず、何も処理は行われません。removeVetoableChangeListener、インタフェース: BeanContextChildname - 待機していたプロパティの名前vcl - 削除するVetoableChangeListenerpublic void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
serviceRevoked、インタフェース: BeanContextServiceRevokedListenerbcsre - サービスの取消しの結果としてトリガーされたBeanContextServiceRevokedEventpublic void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
serviceAvailable、インタフェース: BeanContextServicesListenerbcsae - サービスが使用可能になった結果としてトリガーされたBeanContextServiceAvailableEventpublic BeanContextChild getBeanContextChildPeer()
public boolean isDelegated()
public void firePropertyChange(String name, Object oldValue, Object newValue)
name - 変更されたプロパティのプログラム名oldValue - プロパティの古い値newValue - プロパティの新しい値public void fireVetoableChange(String name, Object oldValue, Object newValue) throws PropertyVetoException
古い値と新しい値が等しく、nullでない場合、イベントはトリガーされません。
name - 変更されるプロパティのプログラム名oldValue - プロパティの古い値newValue - プロパティの新しい値PropertyVetoException - 受け取り側がプロパティ変更をロールバックすることを望んでいる場合。public boolean validatePendingSetBeanContext(BeanContext newValue)
newValue - BeanContextプロパティに要求されている新しい値trueprotected void releaseBeanContextResources()
protected void initializeBeanContextResources()
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.