Package aurelienribon.slidinglayout

Examples of aurelienribon.slidinglayout.SLConfig$Row


    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

        Pql.getColumnLabels(resultSet));
  }

  @Test
  public void testGetRowStringValues() {
    Row row = new Row();
    row.setValues(new Value[] {textValue1, booleanValue1, numberValue2});
    assertEquals(
        Lists.newArrayList(new String[] {"value1", "false", "1.02"}), Pql.getRowStringValues(row));
  }
View Full Code Here

        Lists.newArrayList(new String[] {"value1", "false", "1.02"}), Pql.getRowStringValues(row));
  }

  @Test
  public void testCombineResultSet() {
    Row row1 = new Row();
    row1.setValues(new Value[] {textValue1, booleanValue1, numberValue1});

    Row row2 = new Row();
    row2.setValues(new Value[] {textValue2, booleanValue2, numberValue2});

    Row row3 = new Row();
    row3.setValues(new Value[] {textValue3, booleanValue3, numberValue3});

    ResultSet resultSet1 = new ResultSet();
    resultSet1.setColumnTypes(new ColumnType[] {column1, column2, column3});
    resultSet1.setRows(new Row[] {row1, row2});
View Full Code Here

        combinedResultSet.getRows()[2].getValues());
  }

  @Test(expected = IllegalArgumentException.class)
  public void testCombineResultSet_badColumns() {
    Row row1 = new Row();
    row1.setValues(new Value[] {textValue1, booleanValue1, numberValue1});

    Row row2 = new Row();
    row2.setValues(new Value[] {textValue2, booleanValue2, numberValue2});

    Row row3 = new Row();
    row3.setValues(new Value[] {textValue3, booleanValue3});

    ResultSet resultSet1 = new ResultSet();
    resultSet1.setColumnTypes(new ColumnType[] {column1, column2, column3});
    resultSet1.setRows(new Row[] {row1, row2});
View Full Code Here

        Pql.getColumnLabels(resultSet));
  }

  @Test
  public void testGetRowStringValues() {
    Row row = new Row();
    row.setValues(new Value[] {textValue1, booleanValue1, numberValue2});
    assertEquals(
        Lists.newArrayList(new String[] {"value1", "false", "1.02"}), Pql.getRowStringValues(row));
  }
View Full Code Here

        Lists.newArrayList(new String[] {"value1", "false", "1.02"}), Pql.getRowStringValues(row));
  }

  @Test
  public void testCombineResultSet() {
    Row row1 = new Row();
    row1.setValues(new Value[] {textValue1, booleanValue1, numberValue1});

    Row row2 = new Row();
    row2.setValues(new Value[] {textValue2, booleanValue2, numberValue2});

    Row row3 = new Row();
    row3.setValues(new Value[] {textValue3, booleanValue3, numberValue3});

    ResultSet resultSet1 = new ResultSet();
    resultSet1.setColumnTypes(new ColumnType[] {column1, column2, column3});
    resultSet1.setRows(new Row[] {row1, row2});
View Full Code Here

        combinedResultSet.getRows()[2].getValues());
  }

  @Test(expected = IllegalArgumentException.class)
  public void testCombineResultSet_badColumns() {
    Row row1 = new Row();
    row1.setValues(new Value[] {textValue1, booleanValue1, numberValue1});

    Row row2 = new Row();
    row2.setValues(new Value[] {textValue2, booleanValue2, numberValue2});

    Row row3 = new Row();
    row3.setValues(new Value[] {textValue3, booleanValue3});

    ResultSet resultSet1 = new ResultSet();
    resultSet1.setColumnTypes(new ColumnType[] {column1, column2, column3});
    resultSet1.setRows(new Row[] {row1, row2});
View Full Code Here

        Pql.getColumnLabels(resultSet));
  }

  @Test
  public void testGetRowStringValues() {
    Row row = new Row();
    row.setValues(new Value[] {textValue1, booleanValue1, numberValue2});
    assertEquals(
        Lists.newArrayList(new String[] {"value1", "false", "1.02"}), Pql.getRowStringValues(row));
  }
View Full Code Here

TOP

Related Classes of aurelienribon.slidinglayout.SLConfig$Row

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.