selectitem.html

来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 637 行 · 第 1/2 页

HTML
637
字号
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be delivered to the model if this  item is selected by the user</DL></DL><HR><A NAME="SelectItem(java.lang.Object, java.lang.String)"><!-- --></A><H3>SelectItem</H3><PRE>public <B>SelectItem</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;value,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;label)</PRE><DL><DD><p>Construct a <code>SelectItem</code> with the specified value and label.  The <code>description</code> property will be set to <code>null</code>, the <code>disabled</code> property will be set to <code>false</code>, and the <code>escape</code> property will be set to <code>true</code>.</p><P><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be delivered to the model if this  item is selected by the user<DD><CODE>label</CODE> - Label to be rendered for this item in the response</DL></DL><HR><A NAME="SelectItem(java.lang.Object, java.lang.String, java.lang.String)"><!-- --></A><H3>SelectItem</H3><PRE>public <B>SelectItem</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;value,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;label,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;description)</PRE><DL><DD><p>Construct a <code>SelectItem</code> instance with the specified value, label and description.  This <code>disabled</code> property will be set to <code>false</code>,  and the <code>escape</code>  property will be set to <code>true</code>.</p><P><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be delivered to the model if this  item is selected by the user<DD><CODE>label</CODE> - Label to be rendered for this item in the response<DD><CODE>description</CODE> - Description of this item, for use in tools</DL></DL><HR><A NAME="SelectItem(java.lang.Object, java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>SelectItem</H3><PRE>public <B>SelectItem</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;value,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;label,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;description,                  boolean&nbsp;disabled)</PRE><DL><DD><p>Construct a <code>SelectItem</code> instance with the specified property values.   The <code>escape</code> property will be set  to <code>true</code>.</p><P><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be delivered to the model if this  item is selected by the user<DD><CODE>label</CODE> - Label to be rendered for this item in the response<DD><CODE>description</CODE> - Description of this item, for use in tools<DD><CODE>disabled</CODE> - Flag indicating that this option is disabled</DL></DL><HR><A NAME="SelectItem(java.lang.Object, java.lang.String, java.lang.String, boolean, boolean)"><!-- --></A><H3>SelectItem</H3><PRE>public <B>SelectItem</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;value,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;label,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;description,                  boolean&nbsp;disabled,                  boolean&nbsp;escape)</PRE><DL><DD><p>Construct a <code>SelectItem</code> instance with the specified property values.</p><P><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be delivered to the model if this  item is selected by the user<DD><CODE>label</CODE> - Label to be rendered for this item in the response<DD><CODE>description</CODE> - Description of this item, for use in tools<DD><CODE>disabled</CODE> - Flag indicating that this option is disabled<DD><CODE>escape</CODE> - Flag indicating that the text of this option should be escaped when rendered.<DT><B>Since:</B></DT>  <DD>1.2</DD></DL></DL><!-- ============ 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="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDescription</B>()</PRE><DL><DD><p>Return a description of this item, for use in development tools.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setDescription(java.lang.String)"><!-- --></A><H3>setDescription</H3><PRE>public void <B>setDescription</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;description)</PRE><DL><DD><p>Set the description of this item, for use in development tools.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>description</CODE> - The new description</DL></DD></DL><HR><A NAME="isDisabled()"><!-- --></A><H3>isDisabled</H3><PRE>public boolean <B>isDisabled</B>()</PRE><DL><DD><p>Return the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to <code>true</code>.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setDisabled(boolean)"><!-- --></A><H3>setDisabled</H3><PRE>public void <B>setDisabled</B>(boolean&nbsp;disabled)</PRE><DL><DD><p>Set the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to <code>true</code>.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>disabled</CODE> - The new disabled flag</DL></DD></DL><HR><A NAME="getLabel()"><!-- --></A><H3>getLabel</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLabel</B>()</PRE><DL><DD><p>Return the label of this item, to be rendered visibly for the user.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setLabel(java.lang.String)"><!-- --></A><H3>setLabel</H3><PRE>public void <B>setLabel</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;label)</PRE><DL><DD><p>Set the label of this item, to be rendered visibly for the user.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - The new label</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public <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>getValue</B>()</PRE><DL><DD><p>Return the value of this item, to be delivered to the model if this item is selected by the user.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setValue(java.lang.Object)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</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;value)</PRE><DL><DD><p>Set the value of this item, to be delivered to the model if this item is selected by this user.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - The new value</DL></DD></DL><HR><A NAME="isEscape()"><!-- --></A><H3>isEscape</H3><PRE>public boolean <B>isEscape</B>()</PRE><DL><DD>Getter for property escape.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of property escape.</DL></DD></DL><HR><A NAME="setEscape(boolean)"><!-- --></A><H3>setEscape</H3><PRE>public void <B>setEscape</B>(boolean&nbsp;escape)</PRE><DL><DD>Setter for property escape.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>escape</CODE> - New value of property escape.</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/model/ScalarDataModel.html" title="class in javax.faces.model"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/faces/model/SelectItemGroup.html" title="class in javax.faces.model"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?javax/faces/model/SelectItem.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SelectItem.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;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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 + =
减小字号Ctrl + -
显示快捷键?