| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.beans.beancontext.BeanContextChildSupport
public class BeanContextChildSupport
BeanContextChild プロトコルの実装をサポートするための一般的なサポートクラスです。 このクラスは、直接サブクラス化されるか、あるいはカプセル化されて委譲されることにより、指定されたコンポーネント用としてこのインタフェースを実装します。
BeanContext, 
BeanContextServices, 
BeanContextChild, 
直列化された形式| フィールドの概要 | |
|---|---|
| protected  BeanContext | beanContext | 
|  BeanContextChild | beanContextChildPeerこの BeanContextChildが入れ子になるBeanContextです。 | 
| protected  PropertyChangeSupport | pcSupportこの BeanContextChildSupport に関連した PropertyChangeSupport です。 | 
| protected  boolean | rejectedSetBCOncesetBeanContext 操作に対してスローされた PropertyChangeVetoExceptionが少なくとも 1 つあることを示すフラグです。 | 
| protected  VetoableChangeSupport | vcSupportこの BeanContextChildSupport に関連した VetoableChangeSupport です。 | 
| コンストラクタの概要 | |
|---|---|
| BeanContextChildSupport()JavaBean コンポーネント自体を実装するために、このクラスのサブクラス化が行われた BeanContextChildSupport を構築します。 | |
| BeanContextChildSupport(BeanContextChild bcc)JavaBean コンポーネント自体が BeanContextChild を実装し、これをカプセル化している BeanContextChildSupport を構築します。 | |
| メソッドの概要 | |
|---|---|
|  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 から呼び出されます。 | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| フィールドの詳細 | 
|---|
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)
| メソッドの詳細 | 
|---|
public void setBeanContext(BeanContext bc)
                    throws PropertyVetoException
BeanContextChildSupport の BeanContext を設定します。
BeanContextChild 内の setBeanContextbc - BeanContext プロパティーに割り当てる新しい値
PropertyVetoExceptionPropertyVetoExceptionpublic BeanContext getBeanContext()
BeanContextChildSupport の BeanContext を取得します。
BeanContextChild 内の getBeanContextBeanContextChildSupport の入れ子になっている BeanContext
public void addPropertyChangeListener(String name,
                                      PropertyChangeListener pcl)
name または pcl が null の場合は、例外はスローされず、何も処理は行われません。
BeanContextChild 内の addPropertyChangeListenername - 待機しているプロパティーの名前pcl - 追加する PropertyChangeListener
public void removePropertyChangeListener(String name,
                                         PropertyChangeListener pcl)
pcl が 2 回以上追加された場合は、削除されたあとに、追加された回数よりも 1 回少ない通知が行われます。name が null の場合は、例外はスローされず、何も処理は行われません。pcl が null の場合、または指定されたプロパティーに追加されなかった場合は、例外はスローされず、何も処理は行われません。
BeanContextChild 内の removePropertyChangeListenername - 待機していたプロパティーの名前pcl - 削除する PropertyChangeListener
public void addVetoableChangeListener(String name,
                                      VetoableChangeListener vcl)
name または vcl が null の場合は、例外はスローされず、何も処理は行われません。
BeanContextChild 内の addVetoableChangeListenername - 待機しているプロパティーの名前vcl - 追加される VetoableChangeListener
public void removeVetoableChangeListener(String name,
                                         VetoableChangeListener vcl)
VetoableChangeListener を削除します。指定したプロパティーの同じイベントソースに pcl が 2 回以上追加された場合は、削除されたあとに、追加された回数よりも 1 回少ない通知が行われます。name が null の場合は、例外はスローされず、何も処理は行われません。vcl が null の場合、または指定されたプロパティーに追加されなかった場合は、例外はスローされず、何も処理は行われません。
BeanContextChild 内の removeVetoableChangeListenername - 待機していたプロパティーの名前vcl - 削除される VetoableChangeListenerpublic void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
BeanContextServiceRevokedListener 内の serviceRevokedbcsre - サービスの取り消しによってトリガーされた BeanContextServiceRevokedEventpublic void serviceAvailable(BeanContextServiceAvailableEvent bcsae)
BeanContextServicesListener 内の serviceAvailablebcsae - サービスが使用可能になったためにトリガーされた 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()
| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。