Deprecated
for removal since 23.
Since this class directly implements the BeanContext interface, the class can, and is intended to be used either by subclassing this implementation, or via ad-hoc delegation of an instance of this class from another.
| Modifier and Type | Class and Description |
|---|---|
| protected class | BeanContextSupport.
A protected nested class containing per-child information
in the |
| protected static class | BeanContextSupport.
protected final subclass that encapsulates an iterator but implements a noop remove() method. |
| Modifier and Type | Field and Description |
|---|---|
| protected transient ArrayList | bcmListeners
all accesses to the |
| private transient PropertyChangeListener | |
| protected transient HashMap | children
all accesses to the |
| private transient VetoableChangeListener | |
| protected boolean | designTime
A |
| protected Locale | locale
The current locale of this BeanContext. |
| protected boolean | okToUseGui
A |
| private int | |
| private transient boolean | |
| private static final long | serialVersionUID
Hides java. |
| Access | Constructor and Description |
|---|---|
| public | BeanContextSupport(BeanContext
The peer peer, Locale BeanContext we are
supplying an implementation for,
or null
if this object is its own peerThe current Locale for this BeanContext. If
lcle, boolean lcle is null, the default locale
is assigned to the BeanContext instance.The initial state,
dTime, boolean true if in design mode,
false if runtime.The initial visibility. visible)
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Construct a BeanContextSupport instance |
| public | BeanContextSupport(BeanContext
The peer peer, Locale BeanContext we
are supplying an implementation for,
or null if this object is its own peerThe current Locale for this lcle, boolean BeanContext. If
lcle is null, the default locale
is assigned to the BeanContext instance.The initial state, dtime)true
if in design mode,
false if runtime.
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Create an instance using the specified Locale and design mode. |
| public | BeanContextSupport(BeanContext
The peer BeanContext we are
supplying an implementation for,
or peer, Locale null if this object
is its own peerThe current Locale for this
lcle)BeanContext. If
lcle is null,
the default locale
is assigned to the BeanContext
instance.
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Create an instance using the specified locale |
| public | BeanContextSupport(BeanContext
The peer peer)BeanContext we are
supplying an implementation for,
or null if this object
is its own peer
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Create an instance using with a default locale |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the child was added successfully.The child objects to nest
within this targetChild)BeanContextImplements java. Adds/nests a child within this |
| public boolean | Returns: this implementation unconditionally throwsUnsupportedOperationExceptionImplements java. add Collection to set of Children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
| public void | addBeanContextMembershipListener(BeanContextMembershipListener
the BeanContextMembershipListener to add bcml)Implements java.
References Deprecated
BeanContextMembershipListener is deprecated or references (maybe indirectly) at least one deprecated element.
Adds a BeanContextMembershipListener |
| public boolean | Returns: is this instance avoiding using its GUI?Implements java. Used to determine if the |
| protected Iterator | Returns: an iterator for all the current BCSChild valuesReturns an iterator of all children
of this |
| protected void | bcsPreDeserializationHook(ObjectInputStream
the ois)ObjectInputStream to use during deserializationcalled by readObject after defaultReadObject() but prior to deserialization of any children. |
| protected void | bcsPreSerializationHook(ObjectOutputStream
the oos)ObjectOutputStream to use during serializationcalled by writeObject after defaultWriteObject() but prior to serialization of currently serializable children. |
| protected void | childDeserializedHook(Object
the newly deserialized child child, BeanContextSupport.the newly deserialized BCSChild bcscCalled by readObject with the newly deserialized child and BCSChild. |
| protected void | childJustAddedHook(Object
the child child, BeanContextSupport.the BCSChild bcscsubclasses may override this method to simply extend add() semantics after the child has been added and before the event notification has occurred. |
| protected void | childJustRemovedHook(Object
the child child, BeanContextSupport.the BCSChild bcscsubclasses may override this method to simply extend remove() semantics after the child has been removed and before the event notification has occurred. |
| protected static final boolean | Returns: true if equal, false if notthe first object first, Class<?> the second object second)Tests to see if two class objects, or their names are equal. |
| public void | clear()
Implements java. clear the children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
| public boolean | Returns: true if this object is a child, otherwise falsethe Object in question o)Implements java. Determines whether or not the specified object is currently a child of
this |
| public boolean | Returns: true if all objects
in the collection are children of
this BeanContext, false if not.the specified c)CollectionImplements java. Tests to see if all objects in the
specified |
| public boolean | Returns: true if this object is a child, otherwise falsethe Object in question o)Determines whether or not the specified object is currently a child of
this |
| protected final Object[] | Returns: a copy of the current nested childrenGets a copy of the this BeanContext's children. |
| protected BeanContextSupport. | Returns: Subtype-specific subclass of Child without overriding collection methodsthe child to create the Child on behalf of targetChild, Object the peer if the tragetChild and the peer are related by an implementation of BeanContextProxy peer)Subclasses can override this method to insert their own subclass of Child without having to override add() or the other Collection methods that add children to the set. |
| protected final void | deserialize(ObjectInputStream
the ObjectInputStream to use ois, Collection<E> the Collection coll)used by readObject to deserialize a collection. |
| public synchronized void | dontUseGui()
Implements java. notify this instance that it may no longer render a GUI. |
| protected final void | fireChildrenAdded(BeanContextMembershipEvent
the event to fire bcme)
References Deprecated
BeanContextMembershipEvent is deprecated or references (maybe indirectly) at least one deprecated element.
Fire a BeanContextMembershipEvent on the BeanContextMembershipListener interface |
| protected final void | fireChildrenRemoved(BeanContextMembershipEvent
the event to fire bcme)
References Deprecated
BeanContextMembershipEvent is deprecated or references (maybe indirectly) at least one deprecated element.
Fire a BeanContextMembershipEvent on the BeanContextMembershipListener interface |
| public BeanContext | Returns: the BeanContext instance
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the instance of |
| protected static final BeanContextChild | Returns: the BeanContextChild (if any) of the specified childthe specified child child)
References Deprecated
BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the BeanContextChild (if any) of the specified child |
| protected static final BeanContextMembershipListener | Returns: the BeanContextMembershipListener (if any) of the specified childthe specified child child)
References Deprecated
BeanContextMembershipListener is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the BeanContextMembershipListener (if any) of the specified child |
| protected static final PropertyChangeListener | Returns: the PropertyChangeListener (if any) of the specified childthe specified child child)Gets the PropertyChangeListener (if any) of the specified child |
| protected static final Serializable | Returns: the Serializable (if any) associated with the specified Childthe specified child child)Gets the Serializable (if any) associated with the specified Child |
| protected static final VetoableChangeListener | Returns: the VetoableChangeListener (if any) of the specified childthe specified child child)Gets the VetoableChangeListener (if any) of the specified child |
| protected static final Visibility | Returns: the Component (if any) associated with the specified child.the specified child child)Gets the Component (if any) associated with the specified child. |
| public synchronized Locale | |
| public URL | Returns: the requested resource as an InputStreamthe name of the resource requested. name, BeanContextChild the child object making the request. bcc)Implements java.
References Deprecated
BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
Analogous to |
| public InputStream | Returns: the requested resource as an InputStreamthe name of the resource requested. name, BeanContextChild the child object making the request. bcc)Implements java.
References Deprecated
BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
Analogous to |
| protected synchronized void | initialize()
protected method called from constructor and readObject to initialize transient state of BeanContextSupport instance. |
| public Object | Returns: the new objectthe name of the Bean to instantiate within this BeanContext beanName)Implements java.
The instantiateChild method is a convenience hook
in BeanContext to simplify
the task of instantiating a Bean, nested,
into a |
| public synchronized boolean | Returns: true if in design time mode,
false if notImplements java. Reports whether or not this object is in currently in design time mode. |
| public boolean | Returns: true if there are no children, otherwise falseImplements java. Reports whether or not this |
| public boolean | Returns: true if this BeanContext is currently being
serialized, otherwise falseIs this |
| public Iterator | Returns: anIterator of the nested childrenImplements java. Gets all JavaBean or |
| public synchronized boolean | Returns: true if the implementor needs a GUIImplements java. This method is typically called from the environment in order to determine if the implementor "needs" a GUI. |
| public synchronized void | okToUseGui()
Implements java. Notify this instance that it may now render a GUI |
| public void | propertyChange(PropertyChangeEvent pce)
Implements java. subclasses may envelope to monitor child property changes. |
| public final void | readChildren(ObjectInputStream
the ObjectInputStream to use ois)When an instance of this class is used as a delegate for the implementation of the BeanContext protocols (and its subprotocols) there exists a 'chicken and egg' problem during deserialization |
| private synchronized void | readObject(ObjectInputStream
the ois)ObjectInputStream to readHides java. deserialize contents ... |
| public boolean | remove(Object
The child objects to remove targetChild)Implements java. Removes a child from this BeanContext. |
| protected boolean | Returns: whether or not was present before being removedthe JavaBean, BeanContext, or Object to be removed targetChild, boolean used to indicate that
the child should be notified that it is no
longer nested in this callChildSetBC)BeanContext.internal remove used when removal caused by
unexpected |
| public boolean | Returns: this implementation unconditionally throwsUnsupportedOperationExceptionImplements java. remove all specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
| public void | removeBeanContextMembershipListener(BeanContextMembershipListener
the BeanContextMembershipListener to remove bcml)Implements java.
References Deprecated
BeanContextMembershipListener is deprecated or references (maybe indirectly) at least one deprecated element.
Removes a BeanContextMembershipListener |
| public boolean | Returns: this implementation unconditionally throwsUnsupportedOperationExceptionImplements java. retain only specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
| protected final void | serialize(ObjectOutputStream
the oos, Collection<?> ObjectOutputStream
to use during serializationthe coll)Collection to serializeUsed by writeObject to serialize a Collection. |
| public synchronized void | setDesignTime(boolean
the new designTime value dTime)Implements java. Sets the new design time value for this |
| public synchronized void | |
| public int | Returns: number of childrenImplements java. Gets the number of children currently nested in this BeanContext. |
| public Object[] | toArray()
Implements java. Gets all JavaBean or |
| public Object[] | Returns: an array of childrenThe array of object
types that are of interest. arry)Implements java. Gets an array containing all children of
this |
| protected boolean | Returns: true iff the child may be added to this BeanContext, otherwise false.the child to create the Child on behalf of targetChild)Subclasses of this class may override, or envelope, this method to add validation behavior for the BeanContext to examine child objects immediately prior to their being added to the BeanContext. |
| protected boolean | Returns: true iff the child may be removed from this BeanContext, otherwise false.the child to create the Child on behalf of targetChild)Subclasses of this class may override, or envelope, this method to add validation behavior for the BeanContext to examine child objects immediately prior to their being removed from the BeanContext. |
| public void | vetoableChange(PropertyChangeEvent pce)
Implements java. subclasses may envelope to monitor veto child property changes. |
| public final void | writeChildren(ObjectOutputStream
the oos)ObjectOutputStream
to use during serializationUsed to serialize all children of
this |
| private synchronized void | writeObject(ObjectOutputStream
the oos)ObjectOutputStream to writeHides java. Serialize the BeanContextSupport, if this instance has a distinct peer (that is this object is acting as a delegate for another) then the children of this instance are not serialized here due to a 'chicken and egg' problem that occurs on deserialization of the children at the same time as this instance. |