📄 jtree.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B>TreeUI.</B><B><A HREF="../../../javax/swing/plaf/TreeUI.html#stopEditing(javax.swing.JTree)">stopEditing</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Stops the current editing session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>TreeUI.</B><B><A HREF="../../../javax/swing/plaf/TreeUI.html#cancelEditing(javax.swing.JTree)">cancelEditing</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Cancels the current editing session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>TreeUI.</B><B><A HREF="../../../javax/swing/plaf/TreeUI.html#startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath)">startEditingAtPath</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Selects the last item in path and tries to edit it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B>TreeUI.</B><B><A HREF="../../../javax/swing/plaf/TreeUI.html#getEditingPath(javax.swing.JTree)">getEditingPath</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Returns the path to the element that is being edited.</TD></TR></TABLE> <P><A NAME="javax.swing.plaf.basic"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../javax/swing/JTree.html">JTree</A> in <A HREF="../../../javax/swing/plaf/basic/package-summary.html">javax.swing.plaf.basic</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Fields in <A HREF="../../../javax/swing/plaf/basic/package-summary.html">javax.swing.plaf.basic</A> declared as <A HREF="../../../javax/swing/JTree.html">JTree</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../javax/swing/JTree.html">JTree</A></CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#tree">tree</A></B></CODE><BR> Component that we're going to be drawing into.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../javax/swing/plaf/basic/package-summary.html">javax.swing.plaf.basic</A> with parameters of type <A HREF="../../../javax/swing/JTree.html">JTree</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath)">getPathBounds</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#getPathForRow(javax.swing.JTree, int)">getPathForRow</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, int row)</CODE><BR> Returns the path for passed in row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath)">getRowForPath</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Returns the row that the last item identified in path is visible at.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#getRowCount(javax.swing.JTree)">getRowCount</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Returns the number of rows that are being displayed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#getClosestPathForLocation(javax.swing.JTree, int, int)">getClosestPathForLocation</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, int x, int y)</CODE><BR> Returns the path to the node that is closest to x,y.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#isEditing(javax.swing.JTree)">isEditing</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Returns true if the tree is being edited.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#stopEditing(javax.swing.JTree)">stopEditing</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Stops the current editing session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#cancelEditing(javax.swing.JTree)">cancelEditing</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Cancels the current editing session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath)">startEditingAtPath</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Selects the last item in path and tries to edit it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B>BasicTreeUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTreeUI.html#getEditingPath(javax.swing.JTree)">getEditingPath</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Returns the path to the element that is being edited.</TD></TR></TABLE> <P><A NAME="javax.swing.plaf.multi"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../javax/swing/JTree.html">JTree</A> in <A HREF="../../../javax/swing/plaf/multi/package-summary.html">javax.swing.plaf.multi</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../javax/swing/plaf/multi/package-summary.html">javax.swing.plaf.multi</A> with parameters of type <A HREF="../../../javax/swing/JTree.html">JTree</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>MultiTreeUI.</B><B><A HREF="../../../javax/swing/plaf/multi/MultiTreeUI.html#getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath)">getPathBounds</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> a, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> b)</CODE><BR> Call getPathBounds on each UI handled by this MultiUI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B>MultiTreeUI.</B><B><A HREF="../../../javax/swing/plaf/multi/MultiTreeUI.html#getPathForRow(javax.swing.JTree, int)">getPathForRow</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> a, int b)</CODE><BR> Call getPathForRow on each UI handled by this MultiUI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>MultiTreeUI.</B><B><A HREF="../../../javax/swing/plaf/multi/MultiTreeUI.html#getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath)">getRowForPath</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> a, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> b)</CODE><BR> Call getRowForPath on each UI handled by this MultiUI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>MultiTreeUI.</B><B><A HREF="../../../javax/swing/plaf/multi/MultiTreeUI.html#getRowCount(javax.swing.JTree)">getRowCount</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> a)</CODE><BR> Call getRowCount on each UI handled by this MultiUI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B>MultiTreeUI.</B><B><A HREF="../../../javax/swing/plaf/multi/MultiTreeUI.html#getClosestPathForLocation(javax.swing.JTree, int, int)">getClosestPathForLocation</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> a, int b, int c)</CODE><BR> Call getClosestPathForLocation on each UI handled by this MultiUI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -