Configuring Tree — Control Level of Expansion
When the Tree is populated and presented for the first time, you can control the level to which it’s expanded. It can be done by one of the following expansion level using setExpansionLevel
• If the expansion value is “none”, it will be expanded until root level. For a value of “one”, it will expand until I level and for a value of “full”, you get a fully expanded tree.
Example:
TreeConfig tree = factory.newTreeConfig();
treeConfig. setExpansionLevel (TableTreeProperties.FULL_EXPAND);