-
8 Sep 2011 1:10 AM #1
Answered: How to get GXT TabPanel to animate like GWT TabLayoutPanel?
Answered: How to get GXT TabPanel to animate like GWT TabLayoutPanel?
Hi,
I'm looking for a way to animate the transitions between two TabItems inside a TabPanel just like TabLayoutPanel (click here for example)
Small example of how my application looks like
Is there anyway to achieve this scrolling animation between my XMLGrid and my XMLTreeGrid / between the two TabItem contents?Code:Viewport viewport = new Viewport(); viewport.setSize(1000, 800); XMLGrid xmlGrid = new XMLGrid(); XMLTreeGrid xmlTree = new XMLTreeGrid(); TabPanel tabPanel = new TabPanel(); tabPanel.setSize(800, 600); TabItem a = new TabItem("XMLGrid"); a.add(xmlGrid); TabItem b = new TabItem("XMLTreeGrid"); b.add(xmlTree); tabPanel.add(a); tabPanel.add(b); viewport.add(tabPanel); viewport.layout(); RootPanel.get().add(viewport);
-
Best Answer Posted by sven
Nothing for this is directly implemented into GXT. You would require a custom CardLayout for this. I have done this for a customer of mine already and can say that the only changes required are in the CardLayout class (which you will need to use in your TabPanel than as well. However i cannot give out the code.
-
8 Sep 2011 2:27 AM #2
Nothing for this is directly implemented into GXT. You would require a custom CardLayout for this. I have done this for a customer of mine already and can say that the only changes required are in the CardLayout class (which you will need to use in your TabPanel than as well. However i cannot give out the code.
-
8 Sep 2011 4:08 AM #3
Thanks for you reply, Sven.
I will take your hints and try to implement it this weekend.
-
8 Sep 2011 11:49 AM #4


Reply With Quote