📄 jtree.treemodelhandler.html
字号:
<!-- ============ 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="JTree.TreeModelHandler(javax.swing.JTree)"><!-- --></A><H3>JTree.TreeModelHandler</H3><PRE>protected <B>JTree.TreeModelHandler</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="treeNodesChanged(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeNodesChanged</H3><PRE>public void <B>treeNodesChanged</B>(<A HREF="../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></B></DD><DD><p>Invoked after a node (or a set of siblings) has changed in some way. The node(s) have not changed locations in the tree or altered their children arrays, but other attributes have changed and may affect presentation. Example: the name of a file has changed, but it is in the same location in the file system.</p> <p>To indicate the root has changed, childIndices and children will be null. </p> <p>Use <code>e.getPath()</code> to get the parent of the changed node(s). <code>e.getChildIndices()</code> returns the index(es) of the changed node(s).</p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/event/TreeModelListener.html#treeNodesChanged(javax.swing.event.TreeModelEvent)">treeNodesChanged</A></CODE> in interface <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></DL></DD></DL><HR><A NAME="treeNodesInserted(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeNodesInserted</H3><PRE>public void <B>treeNodesInserted</B>(<A HREF="../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></B></DD><DD><p>Invoked after nodes have been inserted into the tree.</p> <p>Use <code>e.getPath()</code> to get the parent of the new node(s). <code>e.getChildIndices()</code> returns the index(es) of the new node(s) in ascending order.</p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/event/TreeModelListener.html#treeNodesInserted(javax.swing.event.TreeModelEvent)">treeNodesInserted</A></CODE> in interface <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></DL></DD></DL><HR><A NAME="treeStructureChanged(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeStructureChanged</H3><PRE>public void <B>treeStructureChanged</B>(<A HREF="../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></B></DD><DD><p>Invoked after the tree has drastically changed structure from a given node down. If the path returned by e.getPath() is of length one and the first element does not identify the current root node the first element should become the new root of the tree.<p> <p>Use <code>e.getPath()</code> to get the path to the node. <code>e.getChildIndices()</code> returns null.</p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/event/TreeModelListener.html#treeStructureChanged(javax.swing.event.TreeModelEvent)">treeStructureChanged</A></CODE> in interface <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></DL></DD></DL><HR><A NAME="treeNodesRemoved(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeNodesRemoved</H3><PRE>public void <B>treeNodesRemoved</B>(<A HREF="../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></B></DD><DD><p>Invoked after nodes have been removed from the tree. Note that if a subtree is removed from the tree, this method may only be invoked once for the root of the removed subtree, not once for each individual set of siblings removed.</p> <p>Use <code>e.getPath()</code> to get the former parent of the deleted node(s). <code>e.getChildIndices()</code> returns, in ascending order, the index(es) the node(s) had before being deleted.</p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/event/TreeModelListener.html#treeNodesRemoved(javax.swing.event.TreeModelEvent)">treeNodesRemoved</A></CODE> in interface <CODE><A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></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/JTree.TreeModelHandler.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/JTree.EmptySelectionModel.html"><B>PREV CLASS</B></A> <A HREF="../../javax/swing/JTree.TreeSelectionRedirector.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="JTree.TreeModelHandler.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 + -