⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editablevalueholder.html

📁 j2ee帮助文档软件设计/软件工程 文件格式
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DL><DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../javax/faces/component/EditableValueHolder.html#addValidator(javax.faces.validator.Validator)"><CODE>addValidator(javax.faces.validator.Validator)</CODE></A> instead, obtaining the argument <A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator"><CODE>Validator</CODE></A> by creating an instance of <A HREF="../../../javax/faces/validator/MethodExpressionValidator.html" title="class in javax.faces.validator"><CODE>MethodExpressionValidator</CODE></A>.</I><P><DD><p>Wrap the argument <code>validatorBinding</code> in an implementation of <A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator"><CODE>Validator</CODE></A> and store it in the internal data structure that backs the <A HREF="../../../javax/faces/component/EditableValueHolder.html#getValidators()"><CODE>getValidators()</CODE></A> method, taking care to over-write any instance that was stored by a previous call to <code>setValidator</code>. </p> <p>The argument method will be called during the <em>Process Validations</em> or <em>Apply Request Values</em> phases (depending on the value of the <code>immediate</code> property). </p> <p>Any method referenced by such an expression must be public, with a return type of <code>void</code>, and accept parameters of type <A HREF="../../../javax/faces/context/FacesContext.html" title="class in javax.faces.context"><CODE>FacesContext</CODE></A>, <A HREF="../../../javax/faces/component/UIComponent.html" title="class in javax.faces.component"><CODE>UIComponent</CODE></A>, and <code>Object</code>.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>validatorBinding</CODE> - The new <code>MethodBinding</code> instance</DL></DD></DL><HR><A NAME="getValueChangeListener()"><!-- --></A><H3>getValueChangeListener</H3><PRE><A HREF="../../../javax/faces/el/MethodBinding.html" title="class in javax.faces.el">MethodBinding</A> <B>getValueChangeListener</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../javax/faces/component/EditableValueHolder.html#getValueChangeListeners()"><CODE>getValueChangeListeners()</CODE></A> instead.</I><P><DD><p>If <A HREF="../../../javax/faces/component/EditableValueHolder.html#setValueChangeListener(javax.faces.el.MethodBinding)"><CODE>setValueChangeListener(javax.faces.el.MethodBinding)</CODE></A> was not previously called for this instance, this method must return <code>null</code>.  If it was called, this method must return the exact <code>MethodBinding</code> instance that was passed to <A HREF="../../../javax/faces/component/EditableValueHolder.html#setValueChangeListener(javax.faces.el.MethodBinding)"><CODE>setValueChangeListener(javax.faces.el.MethodBinding)</CODE></A>.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setValueChangeListener(javax.faces.el.MethodBinding)"><!-- --></A><H3>setValueChangeListener</H3><PRE>void <B>setValueChangeListener</B>(<A HREF="../../../javax/faces/el/MethodBinding.html" title="class in javax.faces.el">MethodBinding</A>&nbsp;valueChangeMethod)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../javax/faces/component/EditableValueHolder.html#addValueChangeListener(javax.faces.event.ValueChangeListener)"><CODE>addValueChangeListener(javax.faces.event.ValueChangeListener)</CODE></A> instead, obtaining the argument <A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event"><CODE>ValueChangeListener</CODE></A> by creating an instance of <A HREF="../../../javax/faces/event/MethodExpressionValueChangeListener.html" title="class in javax.faces.event"><CODE>MethodExpressionValueChangeListener</CODE></A>.</I><P><DD><p>Wrap the argument <code>valueChangeMethod</code> in an implementation of <A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event"><CODE>ValueChangeListener</CODE></A> and store it in the internal data structure that backs the <A HREF="../../../javax/faces/component/EditableValueHolder.html#getValueChangeListeners()"><CODE>getValueChangeListeners()</CODE></A> method, taking care to over-write any instance that was stored by a previous call to <code>setValueChangeListener</code>.</p> <p>This argument method will be called during the <em>Process Validations</em> or <em>Apply Request Values</em> phases (depending on the value of the <code>immediate</code> property). </p> <p>Any method referenced by such an expression must be public, with a return type of <code>void</code>, and accept a parameter of type <A HREF="../../../javax/faces/event/ValueChangeEvent.html" title="class in javax.faces.event"><CODE>ValueChangeEvent</CODE></A>.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>valueChangeMethod</CODE> - The new method binding instance</DL></DD></DL><HR><A NAME="addValidator(javax.faces.validator.Validator)"><!-- --></A><H3>addValidator</H3><PRE>void <B>addValidator</B>(<A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator">Validator</A>&nbsp;validator)</PRE><DL><DD><p>Add a <A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator"><CODE>Validator</CODE></A> instance to the set associated with this component.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>validator</CODE> - The <A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator"><CODE>Validator</CODE></A> to add<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>validator</code>  is null</DL></DD></DL><HR><A NAME="getValidators()"><!-- --></A><H3>getValidators</H3><PRE><A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator">Validator</A>[] <B>getValidators</B>()</PRE><DL><DD><p>Return the set of registered <A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator"><CODE>Validator</CODE></A>s for this component instance.  If there are no registered validators, a zero-length array is returned.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeValidator(javax.faces.validator.Validator)"><!-- --></A><H3>removeValidator</H3><PRE>void <B>removeValidator</B>(<A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator">Validator</A>&nbsp;validator)</PRE><DL><DD><p>Remove a <A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator"><CODE>Validator</CODE></A> instance from the set associated with this component, if it was previously associated. Otherwise, do nothing.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>validator</CODE> - The <A HREF="../../../javax/faces/validator/Validator.html" title="interface in javax.faces.validator"><CODE>Validator</CODE></A> to remove</DL></DD></DL><HR><A NAME="addValueChangeListener(javax.faces.event.ValueChangeListener)"><!-- --></A><H3>addValueChangeListener</H3><PRE>void <B>addValueChangeListener</B>(<A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event">ValueChangeListener</A>&nbsp;listener)</PRE><DL><DD><p>Add a new <A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event"><CODE>ValueChangeListener</CODE></A> to the set of listeners interested in being notified when <A HREF="../../../javax/faces/event/ValueChangeEvent.html" title="class in javax.faces.event"><CODE>ValueChangeEvent</CODE></A>s occur.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The <A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event"><CODE>ValueChangeListener</CODE></A> to be added<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>listener</code>  is <code>null</code></DL></DD></DL><HR><A NAME="getValueChangeListeners()"><!-- --></A><H3>getValueChangeListeners</H3><PRE><A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event">ValueChangeListener</A>[] <B>getValueChangeListeners</B>()</PRE><DL><DD><p>Return the set of registered <A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event"><CODE>ValueChangeListener</CODE></A>s for this component instance.  If there are no registered listeners, a zero-length array is returned.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeValueChangeListener(javax.faces.event.ValueChangeListener)"><!-- --></A><H3>removeValueChangeListener</H3><PRE>void <B>removeValueChangeListener</B>(<A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event">ValueChangeListener</A>&nbsp;listener)</PRE><DL><DD><p>Remove an existing <A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event"><CODE>ValueChangeListener</CODE></A> (if any) from the set of listeners interested in being notified when <A HREF="../../../javax/faces/event/ValueChangeEvent.html" title="class in javax.faces.event"><CODE>ValueChangeEvent</CODE></A>s occur.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The <A HREF="../../../javax/faces/event/ValueChangeListener.html" title="interface in javax.faces.event"><CODE>ValueChangeListener</CODE></A> to be removed<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>listener</code>  is <code>null</code></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/faces/component/ContextCallback.html" title="interface in javax.faces.component"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/faces/component/NamingContainer.html" title="interface in javax.faces.component"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?javax/faces/component/EditableValueHolder.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="EditableValueHolder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../legal/license.html" target="_top">license terms.</a></font></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -