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

📄 defaultcelleditor.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DefaultCellEditor.html#getComponent()">getComponent</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the a reference to the editor component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DefaultCellEditor.html#getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)">getTableCellEditorComponent</A></B>(<A HREF="../../javax/swing/JTable.html">JTable</A>&nbsp;table,                            <A HREF="../../java/lang/Object.html">Object</A>&nbsp;value,                            boolean&nbsp;isSelected,                            int&nbsp;row,                            int&nbsp;column)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets an initial <code>value</code> for the editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DefaultCellEditor.html#getTreeCellEditorComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int)">getTreeCellEditorComponent</A></B>(<A HREF="../../javax/swing/JTree.html">JTree</A>&nbsp;tree,                           <A HREF="../../java/lang/Object.html">Object</A>&nbsp;value,                           boolean&nbsp;isSelected,                           boolean&nbsp;expanded,                           boolean&nbsp;leaf,                           int&nbsp;row)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets an initial <I>value</I> for the editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DefaultCellEditor.html#isCellEditable(java.util.EventObject)">isCellEditable</A></B>(<A HREF="../../java/util/EventObject.html">EventObject</A>&nbsp;anEvent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ask the editor if it can start editing using <I>anEvent</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/swing/DefaultCellEditor.html#setClickCountToStart(int)">setClickCountToStart</A></B>(int&nbsp;count)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the number of clicks needed to start editing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DefaultCellEditor.html#shouldSelectCell(java.util.EventObject)">shouldSelectCell</A></B>(<A HREF="../../java/util/EventObject.html">EventObject</A>&nbsp;anEvent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The return value of shouldSelectCell() is a boolean indicating whether the editing cell should be selected or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DefaultCellEditor.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;<A NAME="methods_inherited_from_class_javax.swing.AbstractCellEditor"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.<A HREF="../../javax/swing/AbstractCellEditor.html">AbstractCellEditor</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/swing/AbstractCellEditor.html#addCellEditorListener(javax.swing.event.CellEditorListener)">addCellEditorListener</A>, <A HREF="../../javax/swing/AbstractCellEditor.html#fireEditingCanceled()">fireEditingCanceled</A>, <A HREF="../../javax/swing/AbstractCellEditor.html#fireEditingStopped()">fireEditingStopped</A>, <A HREF="../../javax/swing/AbstractCellEditor.html#removeCellEditorListener(javax.swing.event.CellEditorListener)">removeCellEditorListener</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.swing.CellEditor"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.swing.<A HREF="../../javax/swing/CellEditor.html">CellEditor</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/swing/CellEditor.html#addCellEditorListener(javax.swing.event.CellEditorListener)">addCellEditorListener</A>, <A HREF="../../javax/swing/CellEditor.html#removeCellEditorListener(javax.swing.event.CellEditorListener)">removeCellEditorListener</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="editorComponent"><!-- --></A><H3>editorComponent</H3><PRE>protected <A HREF="../../javax/swing/JComponent.html">JComponent</A> <B>editorComponent</B></PRE><DL></DL><HR><A NAME="delegate"><!-- --></A><H3>delegate</H3><PRE>protected <A HREF="../../javax/swing/DefaultCellEditor.EditorDelegate.html">DefaultCellEditor.EditorDelegate</A> <B>delegate</B></PRE><DL></DL><HR><A NAME="clickCountToStart"><!-- --></A><H3>clickCountToStart</H3><PRE>protected int <B>clickCountToStart</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DefaultCellEditor(javax.swing.JTextField)"><!-- --></A><H3>DefaultCellEditor</H3><PRE>public <B>DefaultCellEditor</B>(<A HREF="../../javax/swing/JTextField.html">JTextField</A>&nbsp;textField)</PRE><DL><DD>Constructs a DefaultCellEditor that uses a text field.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a JTextField object ...</DL></DD></DL><HR><A NAME="DefaultCellEditor(javax.swing.JCheckBox)"><!-- --></A><H3>DefaultCellEditor</H3><PRE>public <B>DefaultCellEditor</B>(<A HREF="../../javax/swing/JCheckBox.html">JCheckBox</A>&nbsp;checkBox)</PRE><DL><DD>Constructs a DefaultCellEditor object that uses a check box.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a JCheckBox object ...</DL></DD></DL><HR><A NAME="DefaultCellEditor(javax.swing.JComboBox)"><!-- --></A><H3>DefaultCellEditor</H3><PRE>public <B>DefaultCellEditor</B>(<A HREF="../../javax/swing/JComboBox.html">JComboBox</A>&nbsp;comboBox)</PRE><DL><DD>Constructs a DefaultCellEditor object that uses a combo box.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a JComboBox object ...</DL></DD></DL><!-- ============ 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="getComponent()"><!-- --></A><H3>getComponent</H3><PRE>public <A HREF="../../java/awt/Component.html">Component</A> <B>getComponent</B>()</PRE><DL><DD>Returns the a reference to the editor component.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the editor Component</DL></DD></DL><HR><A NAME="setClickCountToStart(int)"><!-- --></A><H3>setClickCountToStart</H3><PRE>public void <B>setClickCountToStart</B>(int&nbsp;count)</PRE><DL><DD>Specifies the number of clicks needed to start editing.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>count</CODE> - an int specifying the number of clicks needed to start editing<DT><B>See Also: </B><DD><A HREF="../../javax/swing/DefaultCellEditor.html#getClickCountToStart()"><CODE>getClickCountToStart()</CODE></A></DL></DD></DL><HR><A NAME="getClickCountToStart()"><!-- --></A><H3>getClickCountToStart</H3><PRE>

⌨️ 快捷键说明

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