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

📄 editablevalueholder.html

📁 j2ee帮助文档软件设计/软件工程 文件格式
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the submittedValue value of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/faces/component/EditableValueHolder.html#setValid(boolean)">setValid</A></B>(boolean&nbsp;valid)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a flag indicating whether the local value of this component is valid (no conversion error has occurred).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/faces/component/EditableValueHolder.html#setValidator(javax.faces.el.MethodBinding)">setValidator</A></B>(<A HREF="../../../javax/faces/el/MethodBinding.html" title="class in javax.faces.el">MethodBinding</A>&nbsp;validatorBinding)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/faces/component/EditableValueHolder.html#setValueChangeListener(javax.faces.el.MethodBinding)">setValueChangeListener</A></B>(<A HREF="../../../javax/faces/el/MethodBinding.html" title="class in javax.faces.el">MethodBinding</A>&nbsp;valueChangeMethod)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.faces.component.ValueHolder"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface javax.faces.component.<A HREF="../../../javax/faces/component/ValueHolder.html" title="interface in javax.faces.component">ValueHolder</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/faces/component/ValueHolder.html#getConverter()">getConverter</A>, <A HREF="../../../javax/faces/component/ValueHolder.html#getLocalValue()">getLocalValue</A>, <A HREF="../../../javax/faces/component/ValueHolder.html#getValue()">getValue</A>, <A HREF="../../../javax/faces/component/ValueHolder.html#setConverter(javax.faces.convert.Converter)">setConverter</A>, <A HREF="../../../javax/faces/component/ValueHolder.html#setValue(java.lang.Object)">setValue</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getSubmittedValue()"><!-- --></A><H3>getSubmittedValue</H3><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getSubmittedValue</B>()</PRE><DL><DD><p>Return the submittedValue value of this component.  This method should only be used by the <code>encodeBegin()</code> and/or <code>encodeEnd()</code> methods of this component, or its corresponding <A HREF="../../../javax/faces/render/Renderer.html" title="class in javax.faces.render"><CODE>Renderer</CODE></A>.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setSubmittedValue(java.lang.Object)"><!-- --></A><H3>setSubmittedValue</H3><PRE>void <B>setSubmittedValue</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;submittedValue)</PRE><DL><DD><p>Set the submittedValue value of this component. This method should only be used by the <code>decode()</code> and <code>validate()</code> method of this component, or  its corresponding <A HREF="../../../javax/faces/render/Renderer.html" title="class in javax.faces.render"><CODE>Renderer</CODE></A>.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>submittedValue</CODE> - The new submitted value</DL></DD></DL><HR><A NAME="isLocalValueSet()"><!-- --></A><H3>isLocalValueSet</H3><PRE>boolean <B>isLocalValueSet</B>()</PRE><DL><DD>Return the "local value set" state for this component. Calls to <code>setValue()</code> automatically reset this property to <code>true</code>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setLocalValueSet(boolean)"><!-- --></A><H3>setLocalValueSet</H3><PRE>void <B>setLocalValueSet</B>(boolean&nbsp;localValueSet)</PRE><DL><DD>Sets the "local value set" state for this component.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isValid()"><!-- --></A><H3>isValid</H3><PRE>boolean <B>isValid</B>()</PRE><DL><DD><p>Return a flag indicating whether the local value of this component is valid (no conversion error has occurred).</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setValid(boolean)"><!-- --></A><H3>setValid</H3><PRE>void <B>setValid</B>(boolean&nbsp;valid)</PRE><DL><DD><p>Set a flag indicating whether the local value of this component is valid (no conversion error has occurred).</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>valid</CODE> - The new valid flag</DL></DD></DL><HR><A NAME="isRequired()"><!-- --></A><H3>isRequired</H3><PRE>boolean <B>isRequired</B>()</PRE><DL><DD><p>Return the "required field" state for this component.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setRequired(boolean)"><!-- --></A><H3>setRequired</H3><PRE>void <B>setRequired</B>(boolean&nbsp;required)</PRE><DL><DD><p>Set the "required field" state for this component.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>required</CODE> - The new "required field" state</DL></DD></DL><HR><A NAME="isImmediate()"><!-- --></A><H3>isImmediate</H3><PRE>boolean <B>isImmediate</B>()</PRE><DL><DD><p>Return the "immediate" state for this component.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setImmediate(boolean)"><!-- --></A><H3>setImmediate</H3><PRE>void <B>setImmediate</B>(boolean&nbsp;immediate)</PRE><DL><DD><p>Set the "immediate" state for this component.  When set to true, the component's value will be converted and validated immediately in the <em>Apply Request Values</em> phase, and <A HREF="../../../javax/faces/event/ValueChangeEvent.html" title="class in javax.faces.event"><CODE>ValueChangeEvent</CODE></A>s will be delivered in that phase as well.  The default value for this property must be <code>false</code>.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>immediate</CODE> - The new "immediate" state</DL></DD></DL><HR><A NAME="getValidator()"><!-- --></A><H3>getValidator</H3><PRE><A HREF="../../../javax/faces/el/MethodBinding.html" title="class in javax.faces.el">MethodBinding</A> <B>getValidator</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I><A HREF="../../../javax/faces/component/EditableValueHolder.html#getValidators()"><CODE>getValidators()</CODE></A> should be used instead.</I><P><DD><p>If <A HREF="../../../javax/faces/component/EditableValueHolder.html#setValidator(javax.faces.el.MethodBinding)"><CODE>setValidator(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#setValidator(javax.faces.el.MethodBinding)"><CODE>setValidator(javax.faces.el.MethodBinding)</CODE></A>.</p> <p>This 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><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setValidator(javax.faces.el.MethodBinding)"><!-- --></A><H3>setValidator</H3><PRE>void <B>setValidator</B>(<A HREF="../../../javax/faces/el/MethodBinding.html" title="class in javax.faces.el">MethodBinding</A>&nbsp;validatorBinding)</PRE>

⌨️ 快捷键说明

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