Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic HierarchicalLayout (Read 2768 times)
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
HierarchicalLayout
Jul 12th, 2011 at 9:21am
Print Post  
Hello,

Do you have a HierarchicalLayout sample with LayoutTraits ?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: HierarchicalLayout
Reply #1 - Jul 12th, 2011 at 11:11am
Print Post  
Hi,

We have one only in the .NET version at this time:
https://www.mindfusion.eu/FCNetDemo.zip

You must set each item's level in the hierarchy like this:

item.getLayoutTraits().put(HierarchicalLayoutTraits.Level, level);

If you don't know the levels, run LayeredLayout instead; set its EnforceLinkFlow property to true and it will choose levels such that the links go downwards.
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: HierarchicalLayout
Reply #2 - Jul 12th, 2011 at 11:47am
Print Post  
thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint