TreeControl with checkboxes?

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
milek_pl
Posts: 8
Joined: Sat Jun 28, 2008 12:29 pm

TreeControl with checkboxes?

Post by milek_pl »

Hi,

thanks for all the answers so far. Here goes another... ;)

Is it possible to build a hierarchical tree with checkboxes? It seems a good UI for configuring a large number of boolean options. I'm thinking of something like this: http://www.javaworld.com/javaworld/jw-0 ... xtree.html

It is really important that this tree would be collapsible because we have something like hundreds of rules that can be set on or off. So we badly need a tree-like interface, a normal list is too cumbersome. Now, from what I've seen, TreeControl only takes string values, and cannot use anything else. Or maybe I'm wrong?

I know I could implement some listeners and use a scrolled list of checkboxes on the lowest level of my tree instead of nodes but the disadvantage would be that a user couldn't switch off and on whole categories of rules...

Thanks for all the help so far :)
Marcin
OOo 3.0.X on Ms Windows XP + Linux Suse 10.2
Post Reply