2010-05-19 39 views

Trả lời

13

JTree.java:

/** 
* Returns true if the node identified by the path is currently expanded, 
* 
* @param path the <code>TreePath</code> specifying the node to check 
* @return false if any of the nodes in the node's path are collapsed, 
*    true if all nodes in the path are expanded 
*/ 
public boolean isExpanded(TreePath path); 

đẹp, javadoc :-)

Nhà nước mở rộng của một Node là không trong TreeModel nhưng trong JTree.

+0

Cảm ơn, tôi bỏ qua JavaDoc của JTree :-) – waiting

Các vấn đề liên quan