📄 beancontextsupport.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../java/beans/beancontext/BeanContextMembershipListener.html">BeanContextMembershipListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getChildBeanContextMembershipListener(java.lang.Object)">getChildBeanContextMembershipListener</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> child)</CODE><BR> Gets the BeanContextMembershipListener (if any) of the specified child</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getChildPropertyChangeListener(java.lang.Object)">getChildPropertyChangeListener</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> child)</CODE><BR> Gets the PropertyChangeListener (if any) of the specified child</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../java/io/Serializable.html">Serializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getChildSerializable(java.lang.Object)">getChildSerializable</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> child)</CODE><BR> Gets the Serializable (if any) associated with the specified Child</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../java/beans/VetoableChangeListener.html">VetoableChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getChildVetoableChangeListener(java.lang.Object)">getChildVetoableChangeListener</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> child)</CODE><BR> Gets the VetoableChangeListener (if any) of the specified child</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../java/beans/Visibility.html">Visibility</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getChildVisibility(java.lang.Object)">getChildVisibility</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> child)</CODE><BR> Gets the Component (if any) associated with the specified child.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/util/Locale.html">Locale</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getLocale()">getLocale</A></B>()</CODE><BR> Gets the locale for this <tt>BeanContext</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/net/URL.html">URL</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getResource(java.lang.String, java.beans.beancontext.BeanContextChild)">getResource</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A> bcc)</CODE><BR> Analagous to <code>java.lang.ClassLoader.getResource()</code>, this method allows a <code>BeanContext</code> implementation to interpose behavior between the child <code>Component</code> and underlying <code>ClassLoader</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/io/InputStream.html">InputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#getResourceAsStream(java.lang.String, java.beans.beancontext.BeanContextChild)">getResourceAsStream</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A> bcc)</CODE><BR> Analagous to <code>java.lang.ClassLoader.getResourceAsStream()</code>, this method allows a <code>BeanContext</code> implementation to interpose behavior between the child <code>Component</code> and underlying <code>ClassLoader</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#initialize()">initialize</A></B>()</CODE><BR> protected method called from constructor and readObject to initialize transient state of BeanContextSupport instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#instantiateChild(java.lang.String)">instantiateChild</A></B>(<A HREF="../../../java/lang/String.html">String</A> beanName)</CODE><BR> The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into a <tt>BeanContext</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#isDesignTime()">isDesignTime</A></B>()</CODE><BR> Reports whether or not this object is in currently in design time mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#isEmpty()">isEmpty</A></B>()</CODE><BR> Reports whether or not this <tt>BeanContext</tt> is empty.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#isSerializing()">isSerializing</A></B>()</CODE><BR> Is this <tt>BeanContext</tt> in the process of being serialized?</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/util/Iterator.html">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#iterator()">iterator</A></B>()</CODE><BR> Gets all JavaBean or <tt>BeanContext</tt> instances currently nested in this <tt>BeanContext</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#needsGui()">needsGui</A></B>()</CODE><BR> This method is typically called from the environment in order to determine if the implementor "needs" a GUI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#okToUseGui()">okToUseGui</A></B>()</CODE><BR> Notify this instance that it may now render a GUI</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#propertyChange(java.beans.PropertyChangeEvent)">propertyChange</A></B>(<A HREF="../../../java/beans/PropertyChangeEvent.html">PropertyChangeEvent</A> pce)</CODE><BR> subclasses may envelope to monitor child property changes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#readChildren(java.io.ObjectInputStream)">readChildren</A></B>(<A HREF="../../../java/io/ObjectInputStream.html">ObjectInputStream</A> ois)</CODE><BR> 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</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#remove(java.lang.Object)">remove</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> targetChild)</CODE><BR> Removes a child from this BeanContext.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#remove(java.lang.Object, boolean)">remove</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> targetChild, boolean callChildSetBC)</CODE><BR> internal remove used when removal caused by unexpected <tt>setBeanContext</tt> or by <tt>remove()</tt> invocation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#removeAll(java.util.Collection)">removeAll</A></B>(<A HREF="../../../java/util/Collection.html">Collection</A> c)</CODE><BR> remove all specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#removeBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)">removeBeanContextMembershipListener</A></B>(<A HREF="../../../java/beans/beancontext/BeanContextMembershipListener.html">BeanContextMembershipListener</A> bcml)</CODE><BR> Removes a BeanContextMembershipListener</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#retainAll(java.util.Collection)">retainAll</A></B>(<A HREF="../../../java/util/Collection.html">Collection</A> c)</CODE><BR> retain only specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#serialize(java.io.ObjectOutputStream, java.util.Collection)">serialize</A></B>(<A HREF="../../../java/io/ObjectOutputStream.html">ObjectOutputStream</A> oos, <A HREF="../../../java/util/Collection.html">Collection</A> coll)</CODE><BR> Used by writeObject to serialize a Collection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextSupport.html#setDesignTime(boolean)">setDesignTime</A></B>(boolean dTime)</CODE><BR> Sets the new design time value for this <tt>BeanContext</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -