Package aurelienribon.slidinglayout

Examples of aurelienribon.slidinglayout.SLConfig


    p2.setAction(p2Action);
    p3.setAction(p3Action);
    p4.setAction(p4Action);
    p5.setAction(p5Action);

    mainCfg = new SLConfig(panel)
      .gap(10, 10)
      .row(1f).col(250).col(1f).col(2f)
      .beginGrid(0, 0)
        .row(2f).row(1f).col(1f)
        .place(0, 0, p1)
        .place(1, 0, p2)
      .endGrid()
      .beginGrid(0, 1)
        .row(1f).row(2f).col(1f)
        .place(0, 0, p3)
        .place(1, 0, p4)
      .endGrid()
      .place(0, 2, p5);

    p1Cfg = new SLConfig(panel)
      .gap(10, 10)
      .row(1f).col(250).col(1f).col(2f)
      .place(0, 0, p1)
      .beginGrid(0, 1)
        .row(1f).row(2f).col(1f)
        .place(0, 0, p3)
        .place(1, 0, p4)
      .endGrid()
      .place(0, 2, p5);

    p2Cfg = new SLConfig(panel)
      .gap(10, 10)
      .row(1f).col(2f).col(1f)
      .beginGrid(0, 0)
        .row(2f).row(1f).col(1f)
        .beginGrid(0, 0)
          .row(1f).col(250).col(1f)
          .place(0, 0, p1)
          .place(0, 1, p3)
        .endGrid()
        .place(1, 0, p2)
      .endGrid()
      .place(0, 1, p5);

    p3Cfg = new SLConfig(panel)
      .gap(10, 10)
      .row(1f).col(2f).col(1f)
      .place(0, 0, p3)
      .place(0, 1, p5);

    p4Cfg = new SLConfig(panel)
      .gap(10, 10)
      .row(1f).row(1f).col(1f).col(1f)
      .place(0, 0, p1)
      .place(1, 0, p2)
      .place(0, 1, p3)
      .place(1, 1, p4);

    p5Cfg = new SLConfig(panel)
      .gap(10, 10)
      .row(1f).col(1f)
      .place(0, 0, p5);

    panel.setTweenManager(SLAnimator.createTweenManager());
View Full Code Here


       
        }

  private void initConfigurations() {
    // TODO Auto-generated method stub
    initCfg = new SLConfig(rootPanel)
    .gap(gap, gap)
    .row(1f).row(30).col(1f)
    .beginGrid(0, 0)
      .row(startLogoLabel.getPreferredSize().height+ 20)
      .row(100)
      .col(1f)
      .place(0, 0, startLogoLabel)
      .beginGrid(1, 0)
        .row(1f).row(50).row(80).row(1f)
        .col(1f).col(400).col(1f)
        .place(1, 1, startQuestionLabel)
        .beginGrid(2, 1)
          .row(1f)
          .col(1f)
          .place(0, 0, startBtn)
         
        .endGrid()
      .endGrid()
    .endGrid()
    ;
               
    startCfg = new SLConfig(rootPanel)
    .gap(gap, gap)
    .row(1f).col(310).col(1f)
    .beginGrid(0, 0)
                    .row(1f)
                    .col(305)
                    .place(0, 0,classement)
    .endGrid()
                       
                .beginGrid(0, 1)     
                   .row(300)
                   .row(300)
                   .col(740)
                    .beginGrid(0,0)
                     .row(300)
                     .col(270)
                     .col(460)
                     .place(0, 0,welcom)  
                     .place(0, 1,rss)
                    .endGrid()
                    .beginGrid(1,0)
                     .row(230)
                     .col(1f)
                     .place(0, 0, playersPanel)
                     .endGrid()
                .endGrid();
                       
               
               
               
                 //charts de Statistiques
                 chartsCfg = new SLConfig(rootPanel)
    .gap(gap, gap)
    .row(1f).col(300).col(1f)
    .beginGrid(0, 0)

        .row(1f)

        .col(305)
        .place(0, 0,classement)



    .endGrid()
                .beginGrid(0, 1)

        .row(1f)

        .col(1f)
        .place(0, 0,charts)



    .endGrid();
                
                 //Gallery
                 galleryCfg = new SLConfig(rootPanel)
    .gap(gap, gap)
    .row(1f).col(300).col(1f)
    .beginGrid(0, 0)

        .row(1f)

        .col(305)
        .place(0, 0,classement)



    .endGrid()
                .beginGrid(0, 1)

        .row(1f)

        .col(1f)
        .place(0, 0,gallery)



    .endGrid();
               
               
                //affichage allMatches
                allMatchesCfg = new SLConfig(rootPanel)
    .gap(gap, gap)
    .row(1f).col(310).col(1f)
    .beginGrid(0, 0)
                    .row(1f)
                    .col(305)
                    .place(0, 0,classement)
    .endGrid()
                       
                .beginGrid(0, 1)     
                   .row(300)
                   .row(300)
                   .col(740)
                    .beginGrid(0,0)
                     .row(300)
                     .col(270)
                     .col(460)
                     .place(0, 0,welcom)  
                     .place(0, 1,allMatches)
                    .endGrid()
                    .beginGrid(1,0)
                     .row(230)
                     .col(1f)
                     .place(0, 0, playersPanel)
                     .endGrid()
                .endGrid();
               
                // Send Mail
                  
              
                mailCfg = new SLConfig(rootPanel)
    .gap(gap, gap)
    .row(1f).col(310).col(1f)
    .beginGrid(0, 0)
                    .row(1f)
                    .col(305)
View Full Code Here

    p2.setAction(p2Action);
    p3.setAction(p3Action);
    p4.setAction(p4Action);
    p5.setAction(p5Action);

    mainCfg = new SLConfig(this)
      .gap(10, 10)
      .row(1f).col(250).col(1f).col(2f)
      .beginGrid(0, 0)
        .row(2f).row(1f).col(1f)
        .place(0, 0, p1)
        .place(1, 0, p2)
      .endGrid()
      .beginGrid(0, 1)
        .row(1f).row(2f).col(1f)
        .place(0, 0, p3)
        .place(1, 0, p4)
      .endGrid()
      .place(0, 2, p5);

    p1Cfg = new SLConfig(this)
      .gap(10, 10)
      .row(1f).col(1f)
      .place(0, 0, p1);

    p2Cfg = new SLConfig(this)
      .gap(10, 10)
      .row(1f).col(1f)
      .place(0, 0, p2);

    p3Cfg = new SLConfig(this)
      .gap(10, 10)
      .row(1f).col(1f)
      .place(0, 0, p3);

    p4Cfg = new SLConfig(this)
      .gap(10, 10)
      .row(1f).col(1f)
      .place(0, 0, p4);

    p5Cfg = new SLConfig(this)
      .gap(10, 10)
      .row(1f).col(1f)
      .place(0, 0, p5);

    this.setTweenManager(SLAnimator.createTweenManager());
View Full Code Here

TOP

Related Classes of aurelienribon.slidinglayout.SLConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.