📄 abstractlayoutcache.html
字号:
<BR> Returns true if the value identified by row is currently expanded.</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/tree/AbstractLayoutCache.html#isFixedRowHeight()">isFixedRowHeight</A></B>()</CODE><BR> Returns true if the height of each row is a fixed size.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#isRootVisible()">isRootVisible</A></B>()</CODE><BR> Returns true if the root node of the tree is displayed.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setExpandedState(javax.swing.tree.TreePath, boolean)">setExpandedState</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path, boolean isExpanded)</CODE><BR> Marks the path <code>path</code> expanded state to <code>isExpanded</code>.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setModel(javax.swing.tree.TreeModel)">setModel</A></B>(<A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A> newModel)</CODE><BR> Sets the TreeModel that will provide the data.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setNodeDimensions(javax.swing.tree.AbstractLayoutCache.NodeDimensions)">setNodeDimensions</A></B>(<A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html">AbstractLayoutCache.NodeDimensions</A> nd)</CODE><BR> Sets the renderer that is responsible for drawing nodes in the tree and which is threfore responsible foc calculating the dimensions of individual nodes.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setRootVisible(boolean)">setRootVisible</A></B>(boolean rootVisible)</CODE><BR> Determines whether or not the root node from the TreeModel is visible.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setRowHeight(int)">setRowHeight</A></B>(int rowHeight)</CODE><BR> Sets the height of each cell.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setSelectionModel(javax.swing.tree.TreeSelectionModel)">setSelectionModel</A></B>(<A HREF="../../../javax/swing/tree/TreeSelectionModel.html">TreeSelectionModel</A> newLSM)</CODE><BR> Sets the TreeSelectionModel used to manage the selection to new LSM.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#treeNodesChanged(javax.swing.event.TreeModelEvent)">treeNodesChanged</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</CODE><BR> Invoked after a node (or a set of siblings) has changed in some way.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#treeNodesInserted(javax.swing.event.TreeModelEvent)">treeNodesInserted</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</CODE><BR> Invoked after nodes have been inserted into the tree.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#treeNodesRemoved(javax.swing.event.TreeModelEvent)">treeNodesRemoved</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</CODE><BR> Invoked after nodes have been removed from the tree.</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><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#treeStructureChanged(javax.swing.event.TreeModelEvent)">treeStructureChanged</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A> e)</CODE><BR> Invoked after the tree has drastically changed structure from a given node down.</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 =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="nodeDimensions"><!-- --></A><H3>nodeDimensions</H3><PRE>protected <A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html">AbstractLayoutCache.NodeDimensions</A> <B>nodeDimensions</B></PRE><DL><DD>Object responsible for getting the size of a node.</DL><HR><A NAME="treeModel"><!-- --></A><H3>treeModel</H3><PRE>protected <A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A> <B>treeModel</B></PRE><DL><DD>Model providing information.</DL><HR><A NAME="treeSelectionModel"><!-- --></A><H3>treeSelectionModel</H3><PRE>protected <A HREF="../../../javax/swing/tree/TreeSelectionModel.html">TreeSelectionModel</A> <B>treeSelectionModel</B></PRE><DL><DD>Selection model.</DL><HR><A NAME="rootVisible"><!-- --></A><H3>rootVisible</H3><PRE>protected boolean <B>rootVisible</B></PRE><DL><DD>True if the root node is displayed, false if its children are the highest visible nodes.</DL><HR><A NAME="rowHeight"><!-- --></A><H3>rowHeight</H3><PRE>protected int <B>rowHeight</B></PRE><DL><DD>Height to use for each row. If this is <= 0 the renderer will be used to determine the height for each row.</DL><!-- ========= 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="AbstractLayoutCache()"><!-- --></A><H3>AbstractLayoutCache</H3><PRE>public <B>AbstractLayoutCache</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="setNodeDimensions(javax.swing.tree.AbstractLayoutCache.NodeDimensions)"><!-- --></A><H3>setNodeDimensions</H3><PRE>public void <B>setNodeDimensions</B>(<A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html">AbstractLayoutCache.NodeDimensions</A> nd)</PRE><DL><DD>Sets the renderer that is responsible for drawing nodes in the tree and which is threfore responsible foc calculating the dimensions of individual nodes.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nd</CODE> - a NodeDimensions object</DL></DD></DL><HR><A NAME="getNodeDimensions()"><!-- --></A><H3>getNodeDimensions</H3><PRE>public <A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html">AbstractLayoutCache.NodeDimensions</A> <B>getNodeDimensions</B>()</PRE><DL><DD>Returns the object that renders nodes in the tree, and which is responsible for calculating the dimensions of individual nodes.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the NodeDimensions object</DL></DD></DL><HR><A NAME="setModel(javax.swing.tree.TreeModel)"><!-- --></A><H3>setModel</H3><PRE>public void <B>setModel</B>(<A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A> newModel)</PRE><DL><DD>Sets the TreeModel that will provide the data.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newModel</CODE> - the TreeModel that is to provide the data</DL></DD></DL><HR><A NAME="getModel()"><!-- --></A><H3>getModel</H3><PRE>public <A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A> <B>getModel</B>()</PRE><DL><DD>Returns the TreeModel that is providing the data.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the TreeModel that is providing the data</DL></DD></DL><HR><A NAME="setRootVisible(boolean)"><!-- --></A><H3>setRootVisible</H3><PRE>public void <B>setRootVisible</B>(boolean rootVisible)</PRE><DL><DD>Determines whether or not the root node from the TreeModel is visible.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rootVisible</CODE> - true if the root node of the tree is to be displayed<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#rootVisible"><CODE>rootVisible</CODE></A></DL></DD></DL><HR><A NAME="isRootVisible()"><!-- --></A><H3>isRootVisible</H3><PRE>public boolean <B>isRootVisible</B>()</PRE><DL><DD>Returns true if the root node of the tree is displayed.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the root node of the tree is displayed<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#rootVisible"><CODE>rootVisible</CODE></A></DL></DD></DL><HR><A NAME="setRowHeight(int)"><!-- --></A><H3>setRowHeight</H3><PRE>public void <B>setRowHeight</B>(int rowHeight)</PRE><DL><DD>Sets the height of each cell. If the specified value is less than or equal to zero the current cell renderer is queried for each row's height.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowHeight</CODE> - the height of each cell, in pixels</DL></DD></DL><HR><A NAME="getRowHeight()"><!-- --></A><H3>getRowHeight</H3><PRE>public int <B>getRowHeight</B>()</PRE><DL><DD>Returns the height of each row. If the returned value is less than or equal to 0 the height for each row is determined by the renderer.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - height of each cell, in pixels. Zero or negative if the height of each row is determined by the tree cell renderer</DL></DD></DL><HR><A NAME="setSelectionModel(javax.swing.tree.TreeSelectionModel)"><!-- --></A><H3>setSelectionModel</H3><PRE>public void <B>setSelectionModel</B>(<A HREF="../../../javax/swing/tree/TreeSelectionModel.html">TreeSelectionModel</A> newLSM)</PRE><DL><DD>Sets the TreeSelectionModel used to manage the selection to new LSM.<DD><DL></DL></DD></DL><HR><A NAME="getSelectionModel()"><!-- --></A><H3>getSelectionModel</H3><PRE>public <A HREF="../../../javax/swing/tree/TreeSelectionModel.html">TreeSelectionModel</A> <B>getSelectionModel</B>()</PRE><DL><DD>Returns the model used to maintain the selection.<DD><DL></DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -