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

📄 celleditor.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/CellEditor.html#stopCellEditing()">stopCellEditing</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell the editor to stop editing and accept any partially edited value as the value of the editor.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getCellEditorValue()"><!-- --></A><H3>getCellEditorValue</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>getCellEditorValue</B>()</PRE><DL><DD>Returns the value contained in the editor</DL><HR><A NAME="isCellEditable(java.util.EventObject)"><!-- --></A><H3>isCellEditable</H3><PRE>public boolean <B>isCellEditable</B>(<A HREF="../../java/util/EventObject.html">EventObject</A>&nbsp;anEvent)</PRE><DL><DD>Ask the editor if it can start editing using <I>anEvent</I>. <I>anEvent</I> is in the invoking component coordinate system. The editor can not assume the Component returned by getCellEditorComponent() is installed.  This method is intended for the use of client to avoid the cost of setting up and installing the editor component if editing is not possible. If editing can be started this method returns true.<DD><DL><DT><B>Parameters:</B><DD><CODE>anEvent</CODE> - the event the editor should use to consider				whether to begin editing or not.<DT><B>Returns:</B><DD>true if editing can be started.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/CellEditor.html#shouldSelectCell(java.util.EventObject)"><CODE>shouldSelectCell(java.util.EventObject)</CODE></A></DL></DD></DL><HR><A NAME="shouldSelectCell(java.util.EventObject)"><!-- --></A><H3>shouldSelectCell</H3><PRE>public boolean <B>shouldSelectCell</B>(<A HREF="../../java/util/EventObject.html">EventObject</A>&nbsp;anEvent)</PRE><DL><DD>The return value of shouldSelectCell() is a boolean indicating whether the editing cell should be selected or not.  Typically, the return value is true, because is most cases the editing cell should be selected.  However, it is useful to return false to keep the selection from changing for some types of edits.  eg. A table that contains a column of check boxes, the user might want to be able to change those checkboxes without altering the selection.  (See Netscape Communicator for just such an example)  Of course, it is up to the client of the editor to use the return value, but it doesn't need to if it doesn't want to.<DD><DL><DT><B>Parameters:</B><DD><CODE>anEvent</CODE> - the event the editor should use to start				editing.<DT><B>Returns:</B><DD>true if the editor would like the editing cell to be selected<DT><B>See Also: </B><DD><A HREF="../../javax/swing/CellEditor.html#isCellEditable(java.util.EventObject)"><CODE>isCellEditable(java.util.EventObject)</CODE></A></DL></DD></DL><HR><A NAME="stopCellEditing()"><!-- --></A><H3>stopCellEditing</H3><PRE>public boolean <B>stopCellEditing</B>()</PRE><DL><DD>Tell the editor to stop editing and accept any partially edited value as the value of the editor.  The editor returns false if editing was not stopped, useful for editors which validates and can not accept invalid entries.<DD><DL><DT><B>Returns:</B><DD>true if editing was stopped</DL></DD></DL><HR><A NAME="cancelCellEditing()"><!-- --></A><H3>cancelCellEditing</H3><PRE>public void <B>cancelCellEditing</B>()</PRE><DL><DD>Tell the editor to cancel editing and not accept any partially edited value.</DL><HR><A NAME="addCellEditorListener(javax.swing.event.CellEditorListener)"><!-- --></A><H3>addCellEditorListener</H3><PRE>public void <B>addCellEditorListener</B>(<A HREF="../../javax/swing/event/CellEditorListener.html">CellEditorListener</A>&nbsp;l)</PRE><DL><DD>Add a listener to the list that's notified when the editor starts, stops, or cancels editing.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the CellEditorListener</DL></DD></DL><HR><A NAME="removeCellEditorListener(javax.swing.event.CellEditorListener)"><!-- --></A><H3>removeCellEditorListener</H3><PRE>public void <B>removeCellEditorListener</B>(<A HREF="../../javax/swing/event/CellEditorListener.html">CellEditorListener</A>&nbsp;l)</PRE><DL><DD>Remove a listener from the list that's notified<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the CellEditorListener</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>&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="class-use/CellEditor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/swing/ButtonModel.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/swing/ComboBoxEditor.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CellEditor.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><!-- =========== 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 + -