treenode

comparing two TreeNode (or DefaultMutableTreeNode) objects in Java Comparator

Hello everyone! My goal is very simple today, I am trying to work out the proper way to implement compareTo (or the Comparable) interface for my class which extends DefaultMutableTreeNode. The problem is this: Say I have a perfectly good class that represents times. I've already written a perfectly good compareTo method (which works as...

Access to Leafs of a TreeNode in a Ext JS Tree

Hello StackOverFlow, I am using the Ext JS library for creating my application. I have a tree panel that has tree nodes and children tree nodes. These tree nodes have leafs that I would like to be able to access. I've been searching for a while, but cannot find a function of property to access the leafs :( Some code is here: var i;...

How to know that a tree node is partially visible?

"TreeNode.IsVisible" is available but I can't tell from it whether it's visible or partially visible - "true if the tree node is visible or partially visible". e.g. How can I tell if the following "Temporary ASP.NET" tree node is partially visible? Also, how the text hovers directly over the node is called? Is it a tooltip in the end? ...

"text" on the tree node when it is partially visible

How's the text(like below "Temporary ASP.NET") hovers directly over the tree node called? Any difference from tooltip? Can it be controlled on visibility? e.g. do not display even when the node is partially visible. pic: Windows Explorer Thanks, ...

Making a treeview with expandable childnodes

I'm having trouble with a treeview, in ASP.NET. I'm basically querying a database table. 3 of the colums are important Name Id ParentId So this amounts to a bunch of Nodes in the TreeView, some which will have Child Nodes, Child Nodes may have more Child Nodes themselves, etc... Top Nodes don't have a ParentId, they are set to null,...

How to debug TreeNodeCollection

The code in question: TreeNode categoryNode = categories.Nodes[category]; //BREAKPOINT HERE categoryNode.Add("New Node") My question is less about the code itself (it all makes sense to me), so much as the debugger. When at the break point I want to look at the TreeNodes in categories.Nodes, but categories.Nodes is a TreeNodeCollecti...

Insert childnodes in to Treeview, independant of position or depth.

I'm looking for a way to be able to insert childnodes in to TreeNodes of a Treeview, no matter how deep or far. I was thinking of using a Dictionary for this, storing the pointers to each object, allowing me to find them if I need to store childnodes under them. I'm gonna start working on this, but my starting idea might be all wrong, ...