📄 vetoablechangesupport.html
字号:
<DD>Constructs a <code>VetoableChangeSupport</code> object.<DD><DL><DT><B>Parameters:</B><DD><CODE>sourceBean</CODE> - The bean to be given as the source for any events.</DL></DD></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="addVetoableChangeListener(java.beans.VetoableChangeListener)"><!-- --></A><H3>addVetoableChangeListener</H3><PRE>public void <B>addVetoableChangeListener</B>(<A HREF="../../java/beans/VetoableChangeListener.html">VetoableChangeListener</A> listener)</PRE><DL><DD>Add a VetoableListener to the listener list. The listener is registered for all properties.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The VetoableChangeListener to be added</DL></DD></DL><HR><A NAME="removeVetoableChangeListener(java.beans.VetoableChangeListener)"><!-- --></A><H3>removeVetoableChangeListener</H3><PRE>public void <B>removeVetoableChangeListener</B>(<A HREF="../../java/beans/VetoableChangeListener.html">VetoableChangeListener</A> listener)</PRE><DL><DD>Remove a VetoableChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The VetoableChangeListener to be removed</DL></DD></DL><HR><A NAME="addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener)"><!-- --></A><H3>addVetoableChangeListener</H3><PRE>public void <B>addVetoableChangeListener</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/beans/VetoableChangeListener.html">VetoableChangeListener</A> listener)</PRE><DL><DD>Add a VetoableChangeListener for a specific property. The listener will be invoked only when a call on fireVetoableChange names that specific property.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The name of the property to listen on.<DD><CODE>listener</CODE> - The VetoableChangeListener to be added</DL></DD></DL><HR><A NAME="removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener)"><!-- --></A><H3>removeVetoableChangeListener</H3><PRE>public void <B>removeVetoableChangeListener</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/beans/VetoableChangeListener.html">VetoableChangeListener</A> listener)</PRE><DL><DD>Remove a VetoableChangeListener for a specific property.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The name of the property that was listened on.<DD><CODE>listener</CODE> - The VetoableChangeListener to be removed</DL></DD></DL><HR><A NAME="fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)"><!-- --></A><H3>fireVetoableChange</H3><PRE>public void <B>fireVetoableChange</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/lang/Object.html">Object</A> oldValue, <A HREF="../../java/lang/Object.html">Object</A> newValue) throws <A HREF="../../java/beans/PropertyVetoException.html">PropertyVetoException</A></PRE><DL><DD>Report a vetoable property update to any registered listeners. If anyone vetos the change, then fire a new event reverting everyone to the old value and then rethrow the PropertyVetoException. <p> No event is fired if old and new are equal and non-null.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The programmatic name of the property that is about to change..<DD><CODE>oldValue</CODE> - The old value of the property.<DD><CODE>newValue</CODE> - The new value of the property.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/beans/PropertyVetoException.html">PropertyVetoException</A></CODE> - if the recipient wishes the property change to be rolled back.</DL></DD></DL><HR><A NAME="fireVetoableChange(java.lang.String, int, int)"><!-- --></A><H3>fireVetoableChange</H3><PRE>public void <B>fireVetoableChange</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, int oldValue, int newValue) throws <A HREF="../../java/beans/PropertyVetoException.html">PropertyVetoException</A></PRE><DL><DD>Report a int vetoable property update to any registered listeners. No event is fired if old and new are equal and non-null. <p> This is merely a convenience wrapper around the more general fireVetoableChange method that takes Object values.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The programmatic name of the property that is about to change.<DD><CODE>oldValue</CODE> - The old value of the property.<DD><CODE>newValue</CODE> - The new value of the property.</DL></DD></DL><HR><A NAME="fireVetoableChange(java.lang.String, boolean, boolean)"><!-- --></A><H3>fireVetoableChange</H3><PRE>public void <B>fireVetoableChange</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, boolean oldValue, boolean newValue) throws <A HREF="../../java/beans/PropertyVetoException.html">PropertyVetoException</A></PRE><DL><DD>Report a boolean vetoable property update to any registered listeners. No event is fired if old and new are equal and non-null. <p> This is merely a convenience wrapper around the more general fireVetoableChange method that takes Object values.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The programmatic name of the property that is about to change.<DD><CODE>oldValue</CODE> - The old value of the property.<DD><CODE>newValue</CODE> - The new value of the property.</DL></DD></DL><HR><A NAME="fireVetoableChange(java.beans.PropertyChangeEvent)"><!-- --></A><H3>fireVetoableChange</H3><PRE>public void <B>fireVetoableChange</B>(<A HREF="../../java/beans/PropertyChangeEvent.html">PropertyChangeEvent</A> evt) throws <A HREF="../../java/beans/PropertyVetoException.html">PropertyVetoException</A></PRE><DL><DD>Fire a vetoable property update to any registered listeners. If anyone vetos the change, then fire a new event reverting everyone to the old value and then rethrow the PropertyVetoException. <p> No event is fired if old and new are equal and non-null.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>evt</CODE> - The PropertyChangeEvent to be fired.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/beans/PropertyVetoException.html">PropertyVetoException</A></CODE> - if the recipient wishes the property change to be rolled back.</DL></DD></DL><HR><A NAME="hasListeners(java.lang.String)"><!-- --></A><H3>hasListeners</H3><PRE>public boolean <B>hasListeners</B>(<A HREF="../../java/lang/String.html">String</A> propertyName)</PRE><DL><DD>Check if there are any listeners for a specific property.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - the property name.<DT><B>Returns:</B><DD>true if there are one or more listeners for the given property</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/VetoableChangeSupport.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/beans/SimpleBeanInfo.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="VetoableChangeSupport.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -