📄 defaultcelleditor.html
字号:
public int <B>getClickCountToStart</B>()</PRE><DL><DD>ClickCountToStart controls the number of clicks required to start editing.<DD><DL></DL></DD></DL><HR><A NAME="getCellEditorValue()"><!-- --></A><H3>getCellEditorValue</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>getCellEditorValue</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE></B></DD><DD>Returns the value contained in the editor<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/CellEditor.html#getCellEditorValue()">getCellEditorValue</A></CODE> in interface <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE></DL></DD></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> anEvent)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE></B></DD><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>Specified by: </B><DD><CODE><A HREF="../../javax/swing/CellEditor.html#isCellEditable(java.util.EventObject)">isCellEditable</A></CODE> in interface <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/AbstractCellEditor.html#isCellEditable(java.util.EventObject)">isCellEditable</A></CODE> in class <CODE><A HREF="../../javax/swing/AbstractCellEditor.html">AbstractCellEditor</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.swing.CellEditor</CODE></DD><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>CellEditor.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> anEvent)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE></B></DD><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>Specified by: </B><DD><CODE><A HREF="../../javax/swing/CellEditor.html#shouldSelectCell(java.util.EventObject)">shouldSelectCell</A></CODE> in interface <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/AbstractCellEditor.html#shouldSelectCell(java.util.EventObject)">shouldSelectCell</A></CODE> in class <CODE><A HREF="../../javax/swing/AbstractCellEditor.html">AbstractCellEditor</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.swing.CellEditor</CODE></DD><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>CellEditor.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><B>Description copied from interface: <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE></B></DD><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>Specified by: </B><DD><CODE><A HREF="../../javax/swing/CellEditor.html#stopCellEditing()">stopCellEditing</A></CODE> in interface <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/AbstractCellEditor.html#stopCellEditing()">stopCellEditing</A></CODE> in class <CODE><A HREF="../../javax/swing/AbstractCellEditor.html">AbstractCellEditor</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.swing.CellEditor</CODE></DD><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><B>Description copied from interface: <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE></B></DD><DD>Tell the editor to cancel editing and not accept any partially edited value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/CellEditor.html#cancelCellEditing()">cancelCellEditing</A></CODE> in interface <CODE><A HREF="../../javax/swing/CellEditor.html">CellEditor</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/AbstractCellEditor.html#cancelCellEditing()">cancelCellEditing</A></CODE> in class <CODE><A HREF="../../javax/swing/AbstractCellEditor.html">AbstractCellEditor</A></CODE></DL></DD></DL><HR><A NAME="getTreeCellEditorComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int)"><!-- --></A><H3>getTreeCellEditorComponent</H3><PRE>public <A HREF="../../java/awt/Component.html">Component</A> <B>getTreeCellEditorComponent</B>(<A HREF="../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../java/lang/Object.html">Object</A> value, boolean isSelected, boolean expanded, boolean leaf, int row)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/tree/TreeCellEditor.html">TreeCellEditor</A></CODE></B></DD><DD>Sets an initial <I>value</I> for the editor. This will cause the editor to stopEditing and lose any partially edited value if the editor is editing when this method is called. <p> Returns the component that should be added to the client's Component hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/tree/TreeCellEditor.html#getTreeCellEditorComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int)">getTreeCellEditorComponent</A></CODE> in interface <CODE><A HREF="../../javax/swing/tree/TreeCellEditor.html">TreeCellEditor</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.swing.tree.TreeCellEditor</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>table</CODE> - the JTree that is asking the editor to edit This parameter can be null.<DD><CODE>value</CODE> - the value of the cell to be edited.<DD><CODE>isSelected</CODE> - true is the cell is to be renderer with selection highlighting<DD><CODE>expanded</CODE> - true if the node is expanded<DD><CODE>leaf</CODE> - true if the node is a leaf node<DD><CODE>row</CODE> - the row index of the node being edited<DT><B>Returns:</B><DD>the component for editing</DL></DD></DL><HR><A NAME="getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)"><!-- --></A><H3>getTableCellEditorComponent</H3><PRE>public <A HREF="../../java/awt/Component.html">Component</A> <B>getTableCellEditorComponent</B>(<A HREF="../../javax/swing/JTable.html">JTable</A> table, <A HREF="../../java/lang/Object.html">Object</A> value, boolean isSelected, int row, int column)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/table/TableCellEditor.html">TableCellEditor</A></CODE></B></DD><DD>Sets an initial <code>value</code> for the editor. This will cause the editor to <code>stopEditing</code> and lose any partially edited value if the editor is editing when this method is called. <p> Returns the component that should be added to the client's <code>Component</code> hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/table/TableCellEditor.html#getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)">getTableCellEditorComponent</A></CODE> in interface <CODE><A HREF="../../javax/swing/table/TableCellEditor.html">TableCellEditor</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.swing.table.TableCellEditor</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>table</CODE> - the <code>JTable</code> that is asking the editor to edit; can be <code>null</code><DD><CODE>value</CODE> - the value of the cell to be edited; it is up to the specific editor to interpret and draw the value. For example, if value is the string "true", it could be rendered as a string or it could be rendered as a check box that is checked. <code>null</code> is a valid value<DD><CODE>isSelected</CODE> - true if the cell is to be rendered with highlighting<DD><CODE>row</CODE> - the row of the cell being edited<DD><CODE>column</CODE> - the column of the cell being edited<DT><B>Returns:</B><DD>the component for editing</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/DefaultCellEditor.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="../../javax/swing/DefaultButtonModel.html"><B>PREV CLASS</B></A> <A HREF="../../javax/swing/DefaultCellEditor.EditorDelegate.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> <A HREF="DefaultCellEditor.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -