I am trying to build a tree structure in GWT that becomes scrollable when the number of elements is large, the Tree structure will always be on the WestRegion of my DockLayout application panel.
Main code:
<g:west size='14'> <app:Mainlist ui:field='mainlist'/> </g:west>
Main list:
<g:VerticalPanel> <g:ScrollPanel> <g:HTMLPanel width='100%' > <div class='{style.contentColumn}'> <g:Tree ui:field='citytree'> <g:TreeItem text='Delhi/NCR'/> </g:Tree> </div> </g:HTMLPanel> </g:ScrollPanel> </g:VerticalPanel> </ui:UiBinder>
However, I do not see anything in the western region. Can someone point out what I'm doing wrong?
At the same time: In the corresponding file "Mainlist.java" I can not say @UiField Tree citytree (Gives Exception). This seems to be related to involving nesting. How to access my Tree instance?
There is a tree in the GWT showcase that does not use UiBinder. Moreover, I could not find a sample code for building a tree structure using UiBinder. Any resources?
source share