1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Germany
    Posts
    4
    Vote Rating
    0
    mgnann is on a distinguished road

      0  

    Question 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

    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.

  3. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Answers
    60
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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.

  4. #3
    Sencha User
    Join Date
    May 2011
    Location
    Germany
    Posts
    4
    Vote Rating
    0
    mgnann is on a distinguished road

      0  

    Default


    Thanks for you reply, Sven.

    I will take your hints and try to implement it this weekend.

  5. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Answers
    60
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Quote Originally Posted by mgnann View Post
    Thanks for you reply, Sven.

    I will take your hints and try to implement it this weekend.
    Would be create if you could post this solution on the forums so everybody could see and use it.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar