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

📄 defaulttreemodel.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="nodesWereInserted(javax.swing.tree.TreeNode, int[])"><!-- --></A><H3>nodesWereInserted</H3><PRE>public void <B>nodesWereInserted</B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;node,                              int[]&nbsp;childIndices)</PRE><DL><DD>Invoke this method after you've inserted some TreeNodes into node.  childIndices should be the index of the new elements and must be sorted in ascending order.<DD><DL></DL></DD></DL><HR><A NAME="nodesWereRemoved(javax.swing.tree.TreeNode, int[], java.lang.Object[])"><!-- --></A><H3>nodesWereRemoved</H3><PRE>public void <B>nodesWereRemoved</B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;node,                             int[]&nbsp;childIndices,                             <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;removedChildren)</PRE><DL><DD>Invoke this method after you've removed some TreeNodes from node.  childIndices should be the index of the removed elements and must be sorted in ascending order. And removedChildren should be the array of the children objects that were removed.<DD><DL></DL></DD></DL><HR><A NAME="nodesChanged(javax.swing.tree.TreeNode, int[])"><!-- --></A><H3>nodesChanged</H3><PRE>public void <B>nodesChanged</B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;node,                         int[]&nbsp;childIndices)</PRE><DL><DD>Invoke this method after you've changed how the children identified by childIndicies are to be represented in the tree.<DD><DL></DL></DD></DL><HR><A NAME="nodeStructureChanged(javax.swing.tree.TreeNode)"><!-- --></A><H3>nodeStructureChanged</H3><PRE>public void <B>nodeStructureChanged</B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;node)</PRE><DL><DD>Invoke this method if you've totally changed the children of node and its childrens children...  This will post a treeStructureChanged event.<DD><DL></DL></DD></DL><HR><A NAME="getPathToRoot(javax.swing.tree.TreeNode)"><!-- --></A><H3>getPathToRoot</H3><PRE>public <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>[] <B>getPathToRoot</B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;aNode)</PRE><DL><DD>Builds the parents of node up to and including the root node, where the original node is the last element in the returned array. The length of the returned array gives the node's depth in the tree.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>aNode</CODE> - the TreeNode to get the path for<DD><CODE>an</CODE> - array of TreeNodes giving the path from the root to the        specified node.</DL></DD></DL><HR><A NAME="getPathToRoot(javax.swing.tree.TreeNode, int)"><!-- --></A><H3>getPathToRoot</H3><PRE>protected <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>[] <B>getPathToRoot</B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;aNode,                                   int&nbsp;depth)</PRE><DL><DD>Builds the parents of node up to and including the root node, where the original node is the last element in the returned array. The length of the returned array gives the node's depth in the tree.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>aNode</CODE> - the TreeNode to get the path for<DD><CODE>depth</CODE> - an int giving the number of steps already taken towards        the root (on recursive calls), used to size the returned array<DT><B>Returns:</B><DD>an array of TreeNodes giving the path from the root to the         specified node</DL></DD></DL><HR><A NAME="addTreeModelListener(javax.swing.event.TreeModelListener)"><!-- --></A><H3>addTreeModelListener</H3><PRE>public void <B>addTreeModelListener</B>(<A HREF="../../../javax/swing/event/TreeModelListener.html">TreeModelListener</A>&nbsp;l)</PRE><DL><DD>Adds a listener for the TreeModelEvent posted after the tree changes.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/tree/TreeModel.html#addTreeModelListener(javax.swing.event.TreeModelListener)">addTreeModelListener</A></CODE> in interface <CODE><A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the listener to add<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/tree/DefaultTreeModel.html#removeTreeModelListener(javax.swing.event.TreeModelListener)"><CODE>removeTreeModelListener(javax.swing.event.TreeModelListener)</CODE></A></DL></DD></DL><HR><A NAME="removeTreeModelListener(javax.swing.event.TreeModelListener)"><!-- --></A><H3>removeTreeModelListener</H3><PRE>public void <B>removeTreeModelListener</B>(<A HREF="../../../javax/swing/event/TreeModelListener.html">TreeModelListener</A>&nbsp;l)</PRE><DL><DD>Removes a listener previously added with <B>addTreeModelListener()</B>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/tree/TreeModel.html#removeTreeModelListener(javax.swing.event.TreeModelListener)">removeTreeModelListener</A></CODE> in interface <CODE><A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the listener to remove<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/tree/DefaultTreeModel.html#addTreeModelListener(javax.swing.event.TreeModelListener)"><CODE>addTreeModelListener(javax.swing.event.TreeModelListener)</CODE></A></DL></DD></DL><HR><A NAME="fireTreeNodesChanged(java.lang.Object, java.lang.Object[], int[], java.lang.Object[])"><!-- --></A><H3>fireTreeNodesChanged</H3><PRE>protected void <B>fireTreeNodesChanged</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;source,                                    <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;path,                                    int[]&nbsp;childIndices,                                    <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;children)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="fireTreeNodesInserted(java.lang.Object, java.lang.Object[], int[], java.lang.Object[])"><!-- --></A><H3>fireTreeNodesInserted</H3><PRE>protected void <B>fireTreeNodesInserted</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;source,                                     <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;path,                                     int[]&nbsp;childIndices,                                     <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;children)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="fireTreeNodesRemoved(java.lang.Object, java.lang.Object[], int[], java.lang.Object[])"><!-- --></A><H3>fireTreeNodesRemoved</H3><PRE>protected void <B>fireTreeNodesRemoved</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;source,                                    <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;path,                                    int[]&nbsp;childIndices,                                    <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;children)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="fireTreeStructureChanged(java.lang.Object, java.lang.Object[], int[], java.lang.Object[])"><!-- --></A><H3>fireTreeStructureChanged</H3><PRE>protected void <B>fireTreeStructureChanged</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;source,                                        <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;path,                                        int[]&nbsp;childIndices,                                        <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;children)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getListeners(java.lang.Class)"><!-- --></A><H3>getListeners</H3><PRE>public <A HREF="../../../java/util/EventListener.html">EventListener</A>[] <B>getListeners</B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;listenerType)</PRE><DL><DD>Return an array of all the listeners of the given type that  were added to this model.<DD><DL></DL></DD><DD><DL><DT><B>Since: </B><DD>1.3</DD></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/DefaultTreeModel.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/tree/DefaultTreeCellRenderer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/tree/DefaultTreeSelectionModel.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="DefaultTreeModel.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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 + -