Results 1 to 4 of 4

Thread: How to get GXT TabPanel to animate like GWT TabLayoutPanel?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Germany
    Posts
    4

    Question 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

    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);
    Is there anyway to achieve this scrolling animation between my XMLGrid and my XMLTreeGrid / between the two TabItem contents?

  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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •