📄 jtree.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/awt/Component.AccessibleAWTComponent.html">Component.AccessibleAWTComponent</A></CODE></TD></TR></TABLE> <!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#ANCHOR_SELECTION_PATH_PROPERTY">ANCHOR_SELECTION_PATH_PROPERTY</A></B></CODE><BR> Bound property name for anchor selection path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#CELL_EDITOR_PROPERTY">CELL_EDITOR_PROPERTY</A></B></CODE><BR> Bound property name for <code>cellEditor</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#CELL_RENDERER_PROPERTY">CELL_RENDERER_PROPERTY</A></B></CODE><BR> Bound property name for <code>cellRenderer</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/tree/TreeCellEditor.html">TreeCellEditor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#cellEditor">cellEditor</A></B></CODE><BR> Editor for the entries.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/tree/TreeCellRenderer.html">TreeCellRenderer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#cellRenderer">cellRenderer</A></B></CODE><BR> The cell used to draw nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#editable">editable</A></B></CODE><BR> Is the tree editable? Default is false.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#EDITABLE_PROPERTY">EDITABLE_PROPERTY</A></B></CODE><BR> Bound property name for <code>editable</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#EXPANDS_SELECTED_PATHS_PROPERTY">EXPANDS_SELECTED_PATHS_PROPERTY</A></B></CODE><BR> Bound property name for expands selected paths property</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#INVOKES_STOP_CELL_EDITING_PROPERTY">INVOKES_STOP_CELL_EDITING_PROPERTY</A></B></CODE><BR> Bound property name for <code>messagesStopCellEditing</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#invokesStopCellEditing">invokesStopCellEditing</A></B></CODE><BR> If true, when editing is to be stopped by way of selection changing, data in tree changing or other means <code>stopCellEditing</code> is invoked, and changes are saved.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#LARGE_MODEL_PROPERTY">LARGE_MODEL_PROPERTY</A></B></CODE><BR> Bound property name for <code>largeModel</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#largeModel">largeModel</A></B></CODE><BR> Is this tree a large model? This is a code-optimization setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#LEAD_SELECTION_PATH_PROPERTY">LEAD_SELECTION_PATH_PROPERTY</A></B></CODE><BR> Bound property name for <code>leadSelectionPath</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#ROOT_VISIBLE_PROPERTY">ROOT_VISIBLE_PROPERTY</A></B></CODE><BR> Bound property name for <code>rootVisible</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#rootVisible">rootVisible</A></B></CODE><BR> True if the root node is displayed, false if its children are the highest visible nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#ROW_HEIGHT_PROPERTY">ROW_HEIGHT_PROPERTY</A></B></CODE><BR> Bound property name for <code>rowHeight</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#rowHeight">rowHeight</A></B></CODE><BR> Height to use for each display row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#SCROLLS_ON_EXPAND_PROPERTY">SCROLLS_ON_EXPAND_PROPERTY</A></B></CODE><BR> Bound property name for <code>scrollsOnExpand</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#scrollsOnExpand">scrollsOnExpand</A></B></CODE><BR> If true, when a node is expanded, as many of the descendants are scrolled to be visible.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#SELECTION_MODEL_PROPERTY">SELECTION_MODEL_PROPERTY</A></B></CODE><BR> Bound property name for selectionModel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/tree/TreeSelectionModel.html">TreeSelectionModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#selectionModel">selectionModel</A></B></CODE><BR> Models the set of selected nodes in this tree.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/JTree.TreeSelectionRedirector.html">JTree.TreeSelectionRedirector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#selectionRedirector">selectionRedirector</A></B></CODE><BR> Creates a new event and passed it off the <code>selectionListeners</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#SHOWS_ROOT_HANDLES_PROPERTY">SHOWS_ROOT_HANDLES_PROPERTY</A></B></CODE><BR> Bound property name for <code>showsRootHandles</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#showsRootHandles">showsRootHandles</A></B></CODE><BR> True if handles are displayed at the topmost level of the tree.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#TOGGLE_CLICK_COUNT_PROPERTY">TOGGLE_CLICK_COUNT_PROPERTY</A></B></CODE><BR> Bound property name for <code>toggleClickCount</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#toggleClickCount">toggleClickCount</A></B></CODE><BR> Number of mouse clicks before a node is expanded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#TREE_MODEL_PROPERTY">TREE_MODEL_PROPERTY</A></B></CODE><BR> Bound property name for <code>treeModel</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/tree/TreeModel.html">TreeModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#treeModel">treeModel</A></B></CODE><BR> The model that defines the tree displayed by this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTree.html#treeModelListener">treeModelListener</A></B></CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -