Please!!Any help???

Thank you!!

On 4 nov, 11:57, Ani <[email protected]> wrote:
> Hello everybody,
>
> I'm sure that it must have an easy answer, but i can't find it... :
> ( I'm having a problem when showing hierarchical information in a
> TreePanel, inside a Layout Container. The point is that i make a rpc
> call and get a very big amount of information, that i need to show on
> a tree structure. I've tried to put it on a TreePanel, inside a
> LayoutContainer, and, as the size of the container is not so big i've
> put:
>
>  setScrollMode(Scroll.AUTO);
>
> to scroll the cointainer and then see all the information. My problem
> is, and I don´t know why is this happening, when a began to expand the
> tree, i just can scroll a little, and then it doesn´t work anymore(it
> stops scrolling foward), and I can´t see next information(I just can
> scroll back to the beginning)...
> My code:
>
> public class MyTree extends LayoutContainer{
>           private PopupPanel progressPanel;
>           private TreePanel<ModelData> tree = null;
>
>           @Override
>           protected void onRender(Element parent, int pos) {
>                     super.onRender(parent, pos);
>
>                     setSize("300", "200");
>                     setBorders(true);
>                     setLayout(new FitLayout());
>                     setScrollMode(Scroll.AUTO);
>                     setStyleName("list");
>                     setMonitorWindowResize(true);
>           }
>
>           protected void onWindowResize(int pWidth, int pHeight) {
>             super.onWindowResize(pWidth, pHeight);
>           }
>
>           public void loadInfo(final String url) {
>                    ... "RPC call"
>
>                   showInfo(result);
>           }
>
>           public void showInfo(MyNode node) {
>
>                   MyNode top = new MyNode("","");
>                   top.add(node);
>
>                   TreeStore<ModelData> store = new TreeStore<ModelData>();
>                   store.add(top.getChildren(), true);
>                   tree = new TreePanel<ModelData>(store);
>                   tree.setDisplayProperty("lab");
>
> tree.getStyle().setJointCollapsedIcon(IconHelper.create("icon-tree-
> joint-c"));
>
> tree.getStyle().setJointExpandedIcon(IconHelper.create("icon-tree-
> joint-o"));
>
>                   add(tree, new FlowData(10));
>
>                   doLayout();
>           }
>
> ¿Can you help me with this issue, PLEASE?I've been trying many
> different things and I can´t find the solution. I'd thank you very
> much!!I don´t know what to try anymore...
>
> Thank you in advance...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to