|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.beans.beancontext.BeanContextChildSupport | +--java.beans.beancontext.BeanContextSupport
このヘルパークラスは java.beans.beancontext.BeanContext インタフェースのユーティリティの実装を提供します。
このクラスは、BeanContext インタフェースを直接実装するため、この実装をサブクラス化することによって、あるいはほかのインスタンスからこのクラスのインスタンスの特別な委譲を介すことによって使用されることが意図されています。
内部クラスの概要 | |
protected class |
BeanContextSupport.BCSChild
|
protected static class |
BeanContextSupport.BCSIterator
反復子をカプセル化し、無操作の remove() メソッドを実装する protected final サブクラスです。 |
フィールドの概要 | |
protected ArrayList |
bcmListeners
protected ArrayList bcmListeners フィールドへのすべてのアクセスは、そのオブジェクトについて同期がとられます。 |
protected HashMap |
children
protected HashMap children フィールドへのすべてのアクセスは、そのオブジェクトについて同期がとられます。 |
protected boolean |
designTime
|
protected Locale |
locale
|
protected boolean |
okToUseGui
|
クラス java.beans.beancontext.BeanContextChildSupport から継承したフィールド |
beanContext,
beanContextChildPeer,
pcSupport,
rejectedSetBCOnce,
vcSupport |
コンストラクタの概要 | |
BeanContextSupport()
ほかのオブジェクトの委譲でないインスタンスを生成します。 |
|
BeanContextSupport(BeanContext peer)
デフォルトのロケールを使ってインスタンスを生成します。 |
|
BeanContextSupport(BeanContext peer,
Locale lcle)
指定されたロケールを使ってインスタンスを生成します。 |
|
BeanContextSupport(BeanContext peer,
Locale lcle,
boolean dtime)
指定された Locale を使って設計モードでインスタンスを生成します。 |
|
BeanContextSupport(BeanContext peer,
Locale lcle,
boolean dTime,
boolean visible)
BeanContextSupport のインスタンスを生成します。 |
メソッドの概要 | |
boolean |
add(Object targetChild)
この BeanContext 内に子を追加、すなわち入れ子にします。 |
boolean |
addAll(Collection c)
Children のセットに Collection を追加します (未サポート)。 |
void |
addBeanContextMembershipListener(BeanContextMembershipListener bcml)
BeanContextMembershipListener を追加します。 |
boolean |
avoidingGui()
|
protected Iterator |
bcsChildren()
|
protected void |
bcsPreDeserializationHook(ObjectInputStream ois)
defaultReadObject() のあとで、子の直列化復元の前に readObject によって呼び出されます。 |
protected void |
bcsPreSerializationHook(ObjectOutputStream oos)
defaultWriteObject() のあとで、現在直列化可能な子を直列化する前に writeObject によって呼び出されます。 |
protected void |
childDeserializedHook(Object child,
BeanContextSupport.BCSChild bcsc)
新しく直列化復元された子および BCSChild を使って readObject によって呼び出されます。 |
protected void |
childJustAddedHook(Object child,
BeanContextSupport.BCSChild bcsc)
サブクラスはこのメソッドをオーバーライドして、子が追加されて、イベント通知が発生する前に、簡単に add() セマンティクスを拡張できます。 |
protected void |
childJustRemovedHook(Object child,
BeanContextSupport.BCSChild bcsc)
サブクラスはこのメソッドをオーバーライドして、子が削除されて、イベント通知が発生する前に、簡単に remove() セマンティクスを拡張できます。 |
protected static boolean |
classEquals(Class first,
Class second)
|
void |
clear()
子をクリアします (未サポート)。 |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
containsKey(Object o)
|
protected Object[] |
copyChildren()
|
protected BeanContextSupport.BCSChild |
createBCSChild(Object targetChild,
Object peer)
サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加する add() メソッドやほかの Collection メソッドをオーバーライドすることなく、Child の独自のサブクラスを挿入することができます。 |
protected void |
deserialize(ObjectInputStream ois,
Collection coll)
コレクションを直列化復元するために readObject によって使用されます。 |
void |
dontUseGui()
このインスタンスに GUI を描画できないことを通知します。 |
protected void |
fireChildrenAdded(BeanContextMembershipEvent bcme)
BeanContextMembershipListener インタフェースの BeanContextshipEvent をトリガーします。 |
protected void |
fireChildrenRemoved(BeanContextMembershipEvent bcme)
BeanContextMembershipListener インタフェースの BeanContextshipEvent をトリガーします。 |
BeanContext |
getBeanContextPeer()
|
protected static BeanContextChild |
getChildBeanContextChild(Object child)
|
protected static BeanContextMembershipListener |
getChildBeanContextMembershipListener(Object child)
|
protected static PropertyChangeListener |
getChildPropertyChangeListener(Object child)
|
protected static Serializable |
getChildSerializable(Object child)
|
protected static VetoableChangeListener |
getChildVetoableChangeListener(Object child)
|
protected static Visibility |
getChildVisibility(Object child)
|
Locale |
getLocale()
|
URL |
getResource(String name,
BeanContextChild bcc)
|
InputStream |
getResourceAsStream(String name,
BeanContextChild bcc)
|
protected void |
initialize()
BeanContextSupport のインスタンスの一時的な状態を初期化するためにコンストラクタおよび readObject メソッドから呼び出される protected メソッドです。 |
Object |
instantiateChild(String beanName)
instantiateChild メソッドは、Bean を入れ子にして BeanContext にインスタンスを生成する処理を単純化する BeanContext の簡易フックです。 |
boolean |
isDesignTime()
|
boolean |
isEmpty()
|
boolean |
isSerializing()
|
Iterator |
iterator()
|
boolean |
needsGui()
|
void |
okToUseGui()
このインスタンスに GUI を描画できることを通知します。 |
void |
propertyChange(PropertyChangeEvent pce)
サブクラスは、子のプロパティの変更を監視するために包み込むことがあります。 |
void |
readChildren(ObjectInputStream ois)
このクラスのインスタンスが BeanContext プロトコル (およびそのサブプロトコル) の実装の委譲として使用されるときには、直列化復元の際に「鶏が先か卵が先か」の問題が起こります。 |
boolean |
remove(Object targetChild)
|
protected boolean |
remove(Object targetChild,
boolean callChildSetBC)
|
boolean |
removeAll(Collection c)
指定されたすべての子を削除します (未サポート)。 |
void |
removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
BeanContextMembershipListener を削除します。 |
boolean |
retainAll(Collection c)
指定された子だけを保持します (未サポート)。 |
protected void |
serialize(ObjectOutputStream oos,
Collection coll)
|
void |
setDesignTime(boolean dTime)
|
void |
setLocale(Locale newLocale)
|
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] arry)
|
protected boolean |
validatePendingAdd(Object targetChild)
このクラスのサブクラスはこのメソッドをオーバーライドまたは包み込んで、BeanContext に追加される直前に、BeanContext が子オブジェクトを調べるための検証動作を追加できます。 |
protected boolean |
validatePendingRemove(Object targetChild)
このクラスのサブクラスはこのメソッドをオーバーライドまたは包み込んで、BeanContext から削除される直前に、BeanContext が子オブジェクトを調べるための検証動作を追加できます。 |
void |
vetoableChange(PropertyChangeEvent pce)
サブクラスは、子の拒否プロパティの変更を監視するために包み込むことがあります。 |
void |
writeChildren(ObjectOutputStream oos)
|
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
フィールドの詳細 |
protected transient HashMap children
protected HashMap children
フィールドへのすべてのアクセスは、そのオブジェクトについて同期がとられます。protected transient ArrayList bcmListeners
protected ArrayList bcmListeners
フィールドへのすべてのアクセスは、そのオブジェクトについて同期がとられます。protected Locale locale
protected boolean okToUseGui
protected boolean designTime
コンストラクタの詳細 |
public BeanContextSupport(BeanContext peer, Locale lcle, boolean dTime, boolean visible)
BeanContextSupport のインスタンスを生成します。
peer
- 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nulllcle
- この BeanContext の現在の Localedtime
- 初期状態。設計モードの場合は true、実行時モードの場合は falsevisible
- 初期状態での可視性public BeanContextSupport(BeanContext peer, Locale lcle, boolean dtime)
peer
- 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nulllcle
- この BeanContext の現在の Localedtime
- 初期状態。設計モードの場合は true、実行時モードの場合は falsepublic BeanContextSupport(BeanContext peer, Locale lcle)
peer
- 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nulllcle
- この BeanContext の現在の Localepublic BeanContextSupport(BeanContext peer)
peer
- 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nullpublic BeanContextSupport()
メソッドの詳細 |
public BeanContext getBeanContextPeer()
public Object instantiateChild(String beanName) throws IOException, ClassNotFoundException
instantiateChild メソッドは、Bean を入れ子にして BeanContext にインスタンスを生成する処理を単純化する BeanContext の簡易フックです。
beanName パラメータのセマンティクスは、java.beans.Beans.instantate によって定義されます。
beanName
- この BeanContext 内でインスタンスを生成する Bean の名前public int size()
public boolean isEmpty()
public boolean contains(Object o)
public boolean containsKey(Object o)
public Iterator iterator()
public Object[] toArray()
public Object[] toArray(Object[] arry)
protected BeanContextSupport.BCSChild createBCSChild(Object targetChild, Object peer)
サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加する add() メソッドやほかの Collection メソッドをオーバーライドすることなく、Child の独自のサブクラスを挿入することができます。
targetChild
- Child を作成する子peer
- targetChild およびピアが BeanContextProxy によって関連付けられている場合はそのピアpublic boolean add(Object targetChild)
この BeanContext 内に子を追加、すなわち入れ子にします。
java.beans.Beans.instantiate() の副作用として呼び出されます。
targetChildren
- この BeanContext 内で入れ子にされる子オブジェクトpublic boolean remove(Object targetChild)
targetChildren
- 削除される子オブジェクトprotected boolean remove(Object targetChild, boolean callChildSetBC)
public boolean containsAll(Collection c)
public boolean addAll(Collection c)
public boolean removeAll(Collection c)
public boolean retainAll(Collection c)
public void clear()
public void addBeanContextMembershipListener(BeanContextMembershipListener bcml)
bcml
- 追加される BeanContextMembershipListenerpublic void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
bcml
- 削除される BeanContextMembershipListenerpublic InputStream getResourceAsStream(String name, BeanContextChild bcc)
name
- 要求されたリソースの名前child
- 要求を行う子オブジェクトpublic URL getResource(String name, BeanContextChild bcc)
name
- 要求されたリソースの名前child
- 要求を行う子オブジェクトpublic void setDesignTime(boolean dTime)
dTime
- 新しい designTime 値public boolean isDesignTime()
public void setLocale(Locale newLocale) throws PropertyVetoException
newLocale
- 新しいロケールpublic Locale getLocale()
public boolean needsGui()
public void dontUseGui()
public void okToUseGui()
public boolean avoidingGui()
public boolean isSerializing()
protected Iterator bcsChildren()
protected void bcsPreSerializationHook(ObjectOutputStream oos) throws IOException
protected void bcsPreDeserializationHook(ObjectInputStream ois) throws IOException, ClassNotFoundException
protected void childDeserializedHook(Object child, BeanContextSupport.BCSChild bcsc)
protected final void serialize(ObjectOutputStream oos, Collection coll) throws IOException
protected final void deserialize(ObjectInputStream ois, Collection coll) throws IOException, ClassNotFoundException
public final void writeChildren(ObjectOutputStream oos) throws IOException
public final void readChildren(ObjectInputStream ois) throws IOException, ClassNotFoundException
public void vetoableChange(PropertyChangeEvent pce) throws PropertyVetoException
public void propertyChange(PropertyChangeEvent pce)
protected boolean validatePendingAdd(Object targetChild)
このクラスのサブクラスはこのメソッドをオーバーライドまたは包み込んで、BeanContext に追加される直前に、BeanContext が子オブジェクトを調べるための検証動作を追加できます。
protected boolean validatePendingRemove(Object targetChild)
このクラスのサブクラスはこのメソッドをオーバーライドまたは包み込んで、BeanContext から削除される直前に、BeanContext が子オブジェクトを調べるための検証動作を追加できます。
protected void childJustAddedHook(Object child, BeanContextSupport.BCSChild bcsc)
protected void childJustRemovedHook(Object child, BeanContextSupport.BCSChild bcsc)
protected static final Visibility getChildVisibility(Object child)
protected static final Serializable getChildSerializable(Object child)
protected static final PropertyChangeListener getChildPropertyChangeListener(Object child)
protected static final VetoableChangeListener getChildVetoableChangeListener(Object child)
protected static final BeanContextMembershipListener getChildBeanContextMembershipListener(Object child)
protected static final BeanContextChild getChildBeanContextChild(Object child)
protected final void fireChildrenAdded(BeanContextMembershipEvent bcme)
protected final void fireChildrenRemoved(BeanContextMembershipEvent bcme)
protected void initialize()
protected final Object[] copyChildren()
protected static final boolean classEquals(Class first, Class second)
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |