クラス
java.beans.beancontext.BeanContextSupport.BCSChildの使用
BeanContextSupport.BCSChildを使用するパッケージ
-
java.beans.beancontextでのBeanContextSupport.BCSChildの使用
型BeanContextSupport.BCSChildの型パラメータを持つjava.beans.beancontextのフィールド修飾子と型フィールド説明protected HashMap<Object,BeanContextSupport.BCSChild> BeanContextSupport.childrenprotected HashMap childrenフィールドへのすべてのアクセスは、そのオブジェクトで同期されます。修飾子と型メソッド説明protected BeanContextSupport.BCSChildBeanContextServicesSupport.createBCSChild(Object targetChild, Object peer) サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加するadd()メソッドやほかのCollectionメソッドをオーバーライドすることなく、Childの独自のサブクラスを挿入することができます。protected BeanContextSupport.BCSChildBeanContextSupport.createBCSChild(Object targetChild, Object peer) サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加するadd()メソッドやほかのCollectionメソッドをオーバーライドすることなく、Childの独自のサブクラスを挿入することができます。型BeanContextSupport.BCSChildの引数を持つ型を返すjava.beans.beancontextのメソッド修飾子と型メソッド説明protected Iterator<BeanContextSupport.BCSChild>BeanContextSupport.bcsChildren()このBeanContextのすべての子のイテレータを返します。型BeanContextSupport.BCSChildのパラメータを持つjava.beans.beancontextのメソッド修飾子と型メソッド説明protected voidBeanContextSupport.childDeserializedHook(Object child, BeanContextSupport.BCSChild bcsc) 新しく直列化復元された子およびBCSChildを使ってreadObjectによって呼び出されます。protected voidBeanContextSupport.childJustAddedHook(Object child, BeanContextSupport.BCSChild bcsc) サブクラスはこのメソッドをオーバーライドして、子が追加されて、イベント通知が発生する前に、簡単にadd()セマンティックスを拡張できます。protected voidBeanContextServicesSupport.childJustRemovedHook(Object child, BeanContextSupport.BCSChild bcsc) 子が正常に削除された後で、スーパー・クラスの子削除操作から呼び出されます。子が同期された状態で呼び出されます。protected voidBeanContextSupport.childJustRemovedHook(Object child, BeanContextSupport.BCSChild bcsc) サブクラスはこのメソッドをオーバーライドして、子が削除されて、イベント通知が発生する前に、簡単にremove()セマンティックスを拡張できます。