voyent
tree node icons  XML
Forum Index -> Components
Author Message
aberrant80

Joined: 20/Jul/2006 00:00:00
Messages: 34
Offline


Hi, regarding the icons used by tree nodes, I understand that it automatically decides which icon to use based on the state of the node (leaf, branch open, branch closed).

My question is whether it is possible to specifically force a particular state? Currently I have tree nodes with child nodes that are preferably loaded lazily. As such, that node should use a branch icon instead of a leaf icon and also display the expandable icon.

Any advice on the best approach to this? I'm currently thinking of a placeholder child node to show the proper icons and then dynamically replace the placeholder with the actual nodes when the parent node is expanded.
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi,

You can't force which type of icon is shown, but you can dynamically change the icon for the expanded, collapsed, and leaf states. So in your UserObject, you could initially set the icon for some sort of 'loading branch' icon, then dynamically change this when the branch is fully loaded, then likewise for all of the other nodes.

Thanks,
Philip

.
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi,

Just to let you know, we've included this in our ICEfaces version 1.1 roadmap. So you should have this out-of-the-box fairly soon.

Thanks,
Philip

.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team