Questions tagged [treenode]

The base element of a hierarchical tree-like data structure.

Trees are hierarchical data structures that represent undirected acyclic graphs. A tree is therefore composed of connected nodes.

One specific node is the root of the tree. The root node is connected to several nodes (sometimes called children), each of these being the root of a subtree, and so-on. A node of a tree that does not have any children is called a leaf. All nodes of the tree are connected directly or indirectly to the root.

Treenodes are usually recursive datastructures.

See also:

Specific usages:

  • In .Net framework a TreeNode is a node in TreeView UI control that displays tree-like objects.
  • In Java a TreeNode is an interface that nodes of a JTree UI control that displays tree-like objects.
630 questions
0
votes
1 answer

Check All box for Richfaces Treenode

Trying to create a checkbox to check all items in a treenode. I'm kind of new to JSF so I'm pretty stumped as how to implement this on a tree instead of a table. This is the current code:
Mark M
  • 1,580
  • 10
  • 22
0
votes
1 answer

bioperl remove a node from newick tree

I'm trying to remove a node from a newick tree using bioperl. The tree file contains this data : (((A:5,B:5)90:2,C:4)25:3,D:10); Below is the code: use Bio::TreeIO; use Bio::Tree::TreeFunctionsI; use strict; use warnings; my $input = new…
AWRAM
  • 333
  • 2
  • 16
0
votes
1 answer

filter in xe:dominoViewListTreeNode

How to write regular expression for NOT to include view name start with '(' in xe:dominoViewListTreeNode Generally we use expression to include view name like: There is the code:
0
votes
0 answers

TreeView NodeMouseClick Event

I have a little doubt, how can i simulate the TreeView NodeMouseClick Event from any button ? I tried this: TRV_Lista_NodeMouseClick(sender, (TreeNodeMouseClickEventArgs) e); But doesn't work. Any idea ? Thanks in advance! EDIT: Finally i got it.…
SamYan
  • 1,553
  • 1
  • 19
  • 38
0
votes
2 answers

TreeNode right click to select not working

I am trying to fix a problem where if a user right clicks on a selection, it will not select/highlight it, and if, for example. "delete", is selected, it deletes the previous selection that was clicked on. I have read many posts about using the…
C-Sharp-Noob
  • 25
  • 1
  • 1
  • 7
0
votes
2 answers

Insert Existing TreeNodeCollection in TreeNode

Problem: In the screenshot below, I have a node 300-9885-00X along with its TreeNodeCollection (in the red square). A little bit lower, we find the 300-9885-00X again, I want to insert the TreeNodeCollection that we found earlier, into that node…
Alex
  • 4,821
  • 16
  • 65
  • 106
0
votes
2 answers

trying to add a node to a tree in java

For some reason the add(value) function doesn't want to work. I should be able to use Node and TreeNode to create a child. This isn't a balanced tree. I tried both Node and NodeTree and to make a variable with the node and adding it in with no…
0
votes
1 answer

Business Logic design solutions for constructing a JTree with a fixed number of constants

As part of my homework, I've been asked to create a JTree Model with a fixed set of constants (Authors and Books) Presented below is only a small subset of constants to include. Is there a more elegant and maintainable solution to build the tree? …
0
votes
2 answers

PHP Tree building function breaks when depth = 4 but works when depth <4, why?

Frankly this is part of my uni assignment, BUT I have already done quite a bit... so please feel comfortable and keep reading since I am not asking for a cheat sheet or so :) The project is now deployed on my website Okay, I might have found the…
Michael Mao
  • 9,878
  • 23
  • 75
  • 91
0
votes
1 answer

c# treeview allow selection of last child element only

I have a treeview and I would like that the user will be able to select the last child only, in order to avoid problems when it is not selected an item, but a folder. Has anybody any idea of if there exists such function for the treeview? I have not…
David
  • 31
  • 1
  • 3
0
votes
3 answers

N-Level Tree PHP MYSQL HELP

I have been looking at a N-level tree class. Could anyone possibly advise on the best way I could display the results ie, the looping of the result set, should I use DIVs or ULs? An example result set will look like so if you find the article too…
blakey87
  • 153
  • 3
  • 14
0
votes
1 answer

TreeView with custom drawn TreeNode

I am trying to add a custom icon near the text of a TreeNode, so the items could have a "checked/unchecked" state displayed. I don't want to use a checkbox for that. Any ideas? Thanks
phm
  • 1,160
  • 1
  • 17
  • 29
0
votes
1 answer

Ext JS 3.4.0 TreeNode - same icon for all nodes

I have a TreePanel in Ext JS 3.4.0. The nodes are loaded via JSON. First of all I need to have the same icons for all the nodes, no matter if they are leafs or not. So I don't want to have the "folder" icon for the nodes that have children. How is…
Zorrocaesar
  • 748
  • 1
  • 7
  • 22
0
votes
1 answer

Adding attributes to a dojo tree node on creation

I'm using a dojox.data.QueryReadStore to populate a dijit.Tree dynamically on expansion of each node. When each of the child TreeNodes is created, I'd like to put a custom attribute on it. How do I get called back on the automatic creation of…
user189046
0
votes
2 answers

Copy all Selected (Checked) TreeNodes from one treeview to another (include unchecked parents) C#

I've created a directory and file browser TreeView on the left side. I want the users to be able to browse the tree and check the files and directories that they would like to move to another treeview. The other TreeView is a user control I found…
JFL
  • 25
  • 1
  • 8