📄 beancontextchildsupport.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextChildSupport.html#initializeBeanContextResources()">initializeBeanContextResources</A></B>()</CODE><BR> This method may be overridden by subclasses to provide their own initialization behaviors.</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/BeanContextChildSupport.html#isDelegated()">isDelegated</A></B>()</CODE><BR> Reports whether or not this class is a delegate of another.</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/BeanContextChildSupport.html#releaseBeanContextResources()">releaseBeanContextResources</A></B>()</CODE><BR> This method may be overridden by subclasses to provide their own release behaviors.</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/BeanContextChildSupport.html#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">removePropertyChangeListener</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A> pcl)</CODE><BR> Remove a property change listener.</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/BeanContextChildSupport.html#removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener)">removeVetoableChangeListener</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/VetoableChangeListener.html">VetoableChangeListener</A> vcl)</CODE><BR> Removes a <code>VetoableChangeListener</code>.</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/BeanContextChildSupport.html#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)">serviceAvailable</A></B>(<A HREF="../../../java/beans/beancontext/BeanContextServiceAvailableEvent.html">BeanContextServiceAvailableEvent</A> bcsae)</CODE><BR> A new service is available from the nesting BeanContext.</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/BeanContextChildSupport.html#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)">serviceRevoked</A></B>(<A HREF="../../../java/beans/beancontext/BeanContextServiceRevokedEvent.html">BeanContextServiceRevokedEvent</A> bcsre)</CODE><BR> A service provided by the nesting BeanContext has been revoked.</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/BeanContextChildSupport.html#setBeanContext(java.beans.beancontext.BeanContext)">setBeanContext</A></B>(<A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A> bc)</CODE><BR> Sets the <code>BeanContext</code> for this <code>BeanContextChildSupport</code>.</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/BeanContextChildSupport.html#validatePendingSetBeanContext(java.beans.beancontext.BeanContext)">validatePendingSetBeanContext</A></B>(<A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A> newValue)</CODE><BR> Called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="beanContextChildPeer"><!-- --></A><H3>beanContextChildPeer</H3><PRE>public <A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A> <B>beanContextChildPeer</B></PRE><DL><DD>The <code>BeanContext</code> in which this <code>BeanContextChild</code> is nested.</DL><HR><A NAME="pcSupport"><!-- --></A><H3>pcSupport</H3><PRE>protected <A HREF="../../../java/beans/PropertyChangeSupport.html">PropertyChangeSupport</A> <B>pcSupport</B></PRE><DL><DD>The <tt>PropertyChangeSupport</tt> associated with this <tt>BeanContextChildSupport</tt>.</DL><HR><A NAME="vcSupport"><!-- --></A><H3>vcSupport</H3><PRE>protected <A HREF="../../../java/beans/VetoableChangeSupport.html">VetoableChangeSupport</A> <B>vcSupport</B></PRE><DL><DD>The <tt>VetoableChangeSupport</tt> associated with this <tt>BeanContextChildSupport</tt>.</DL><HR><A NAME="beanContext"><!-- --></A><H3>beanContext</H3><PRE>protected transient <A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A> <B>beanContext</B></PRE><DL></DL><HR><A NAME="rejectedSetBCOnce"><!-- --></A><H3>rejectedSetBCOnce</H3><PRE>protected transient boolean <B>rejectedSetBCOnce</B></PRE><DL><DD>A flag indicating that there has been at least one <code>PropertyChangeVetoException</code> thrown for the attempted setBeanContext operation.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BeanContextChildSupport()"><!-- --></A><H3>BeanContextChildSupport</H3><PRE>public <B>BeanContextChildSupport</B>()</PRE><DL><DD>construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself.</DL><HR><A NAME="BeanContextChildSupport(java.beans.beancontext.BeanContextChild)"><!-- --></A><H3>BeanContextChildSupport</H3><PRE>public <B>BeanContextChildSupport</B>(<A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A> bcc)</PRE><DL><DD>construct a BeanContextChildSupport where the JavaBean component itself implements BeanContextChild, and encapsulates this, delegating that interface to this implementation</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setBeanContext(java.beans.beancontext.BeanContext)"><!-- --></A><H3>setBeanContext</H3><PRE>public void <B>setBeanContext</B>(<A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A> bc) throws <A HREF="../../../java/beans/PropertyVetoException.html">PropertyVetoException</A></PRE><DL><DD>Sets the <code>BeanContext</code> for this <code>BeanContextChildSupport</code>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html#setBeanContext(java.beans.beancontext.BeanContext)">setBeanContext</A></CODE> in interface <CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bc</CODE> - the new value to be assigned to the <code>BeanContext</code> property<DT><B>Throws:</B><DD><CODE><code>PropertyVetoException</code></CODE> - if the change is rejected</DL></DD></DL><HR><A NAME="getBeanContext()"><!-- --></A><H3>getBeanContext</H3><PRE>public <A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A> <B>getBeanContext</B>()</PRE><DL><DD>Gets the nesting <code>BeanContext</code> for this <code>BeanContextChildSupport</code>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html#getBeanContext()">getBeanContext</A></CODE> in interface <CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the nesting <code>BeanContext</code> for this <code>BeanContextChildSupport</code>.</DL></DD></DL><HR><A NAME="addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)"><!-- --></A><H3>addPropertyChangeListener</H3><PRE>public void <B>addPropertyChangeListener</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A> pcl)</PRE><DL><DD>Adds a property change listener.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">addPropertyChangeListener</A></CODE> in interface <CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the property to listen on<DD><CODE>pcl</CODE> - The <code>PropertyChangeListener</code> to be added</DL></DD></DL><HR><A NAME="removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)"><!-- --></A><H3>removePropertyChangeListener</H3><PRE>public void <B>removePropertyChangeListener</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A> pcl)</PRE><DL><DD>Remove a property change listener.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">removePropertyChangeListener</A></CODE> in interface <CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A></CODE></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -