This content has been marked as final.
Show 2 replies
-
1. Re: Here is pseudocode, are there data types I need availabl
meghiddo Jul 21, 2009 5:43 AM (in response to meghiddo)just to clarify, basically what that code does is it looks for projects in the project collection, and every time it finds one, it first adds the project name as the root. Then below that id adds all that projects devices, and below the devices it adds the channels that belong to that device.
then it starts all over again and does this for every project it finds in the project collection -
2. Re: Here is pseudocode, are there data types I need availabl
meghiddo Jul 21, 2009 6:39 PM (in response to meghiddo)that would actually be more like this now that I think about it, now if I can just find the data types to fit this and find out if they will work for a rich:tree:
//variable declarations that I dont know data types for which is what I need.... OverAllTreeToHoldNodesDataType tree; NodeRootDataType rootNode; SubNodeDataType devicesNode; SubNodeDataType channelsNode; public void loadHtmlTree(){ for (project : projectCollection){ //operations to fill project class... rootNode=project.getProjectName(); tree.addRoot(rootNode); //adds this projectname to the tree for(device: project){ //operations to fill device class devicesNode=device.getDeviceName(); rootNode.add(devicesNode); for(channel: device){ //operations to fill channel class channelsNode=channel.getChannelName(); devicesNode.add(channelsNode); } } } } //setter and getter for OverAllTreeToHoldAllNodes tree variable