📄 treeui.html
字号:
<A NAME="methods_inherited_from_class_javax.swing.plaf.ComponentUI"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.plaf.<A HREF="../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/plaf/ComponentUI.html#contains(javax.swing.JComponent, int, int)">contains</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#createUI(javax.swing.JComponent)">createUI</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#getAccessibleChild(javax.swing.JComponent, int)">getAccessibleChild</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#getAccessibleChildrenCount(javax.swing.JComponent)">getAccessibleChildrenCount</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#getMaximumSize(javax.swing.JComponent)">getMaximumSize</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#getMinimumSize(javax.swing.JComponent)">getMinimumSize</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#getPreferredSize(javax.swing.JComponent)">getPreferredSize</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#installUI(javax.swing.JComponent)">installUI</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#paint(java.awt.Graphics, javax.swing.JComponent)">paint</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#uninstallUI(javax.swing.JComponent)">uninstallUI</A>, <A HREF="../../../javax/swing/plaf/ComponentUI.html#update(java.awt.Graphics, javax.swing.JComponent)">update</A></CODE></TD></TR></TABLE> <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> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="TreeUI()"><!-- --></A><H3>TreeUI</H3><PRE>public <B>TreeUI</B>()</PRE><DL></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="getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath)"><!-- --></A><H3>getPathBounds</H3><PRE>public abstract <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> <B>getPathBounds</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</PRE><DL><DD>Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. Will return null if any component in path is currently valid.</DL><HR><A NAME="getPathForRow(javax.swing.JTree, int)"><!-- --></A><H3>getPathForRow</H3><PRE>public abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> <B>getPathForRow</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, int row)</PRE><DL><DD>Returns the path for passed in row. If row is not visible null is returned.</DL><HR><A NAME="getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath)"><!-- --></A><H3>getRowForPath</H3><PRE>public abstract int <B>getRowForPath</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</PRE><DL><DD>Returns the row that the last item identified in path is visible at. Will return -1 if any of the elements in path are not currently visible.</DL><HR><A NAME="getRowCount(javax.swing.JTree)"><!-- --></A><H3>getRowCount</H3><PRE>public abstract int <B>getRowCount</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</PRE><DL><DD>Returns the number of rows that are being displayed.</DL><HR><A NAME="getClosestPathForLocation(javax.swing.JTree, int, int)"><!-- --></A><H3>getClosestPathForLocation</H3><PRE>public abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> <B>getClosestPathForLocation</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, int x, int y)</PRE><DL><DD>Returns the path to the node that is closest to x,y. If there is nothing currently visible this will return null, otherwise it'll always return a valid path. If you need to test if the returned object is exactly at x, y you should get the bounds for the returned path and test x, y against that.</DL><HR><A NAME="isEditing(javax.swing.JTree)"><!-- --></A><H3>isEditing</H3><PRE>public abstract boolean <B>isEditing</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</PRE><DL><DD>Returns true if the tree is being edited. The item that is being edited can be returned by getEditingPath().</DL><HR><A NAME="stopEditing(javax.swing.JTree)"><!-- --></A><H3>stopEditing</H3><PRE>public abstract boolean <B>stopEditing</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</PRE><DL><DD>Stops the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop.</DL><HR><A NAME="cancelEditing(javax.swing.JTree)"><!-- --></A><H3>cancelEditing</H3><PRE>public abstract void <B>cancelEditing</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</PRE><DL><DD>Cancels the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop.</DL><HR><A NAME="startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath)"><!-- --></A><H3>startEditingAtPath</H3><PRE>public abstract void <B>startEditingAtPath</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</PRE><DL><DD>Selects the last item in path and tries to edit it. Editing will fail if the CellEditor won't allow it for the selected item.</DL><HR><A NAME="getEditingPath(javax.swing.JTree)"><!-- --></A><H3>getEditingPath</H3><PRE>public abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> <B>getEditingPath</B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree)</PRE><DL><DD>Returns the path to the element that is being edited.</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/TreeUI.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/plaf/ToolTipUI.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/swing/plaf/ViewportUI.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="TreeUI.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -