Package org.zkoss.test

Examples of org.zkoss.test.Border


  @Test
  public void toggle_gridline() {
   
    //toggle on
    click(".zschktbtn-gridlines");
    Border expected = new Border("1px", "solid", "#D0D7E9");
    Assert.assertEquals(expected, getCell(11, 11).getRightBorder());
   
    //toggle off
    click(".zschktbtn-gridlines");
    expected = new Border("1px", "solid", "#FFFFFF");
    Assert.assertEquals(expected, getCell(11, 11).getRightBorder());
  }
View Full Code Here


    return b.build().iterator();
  }
 
  protected void verifyBorder(BorderType type, String borderColor, int tRow, int lCol, int bRow, int rCol, CellCacheAggeration cellCacheAggeration) {
    Iterator<Cell> i = null;
    Border expected = new Border("1px", "solid", borderColor);
    switch (type) {
    case BOTTOM:
      i = iterator(bRow, lCol, bRow, rCol);
      while (i.hasNext()) {
        Cell c = i.next();
View Full Code Here

    return new Color(c);
  }
 
  public Border getBottomBorder() {
    JQuery $n = jq$n();
    return new Border($n.css("border-bottom-width"), $n.css("border-bottom-style"), $n.css("border-bottom-color"));
  }
View Full Code Here

    return new Border($n.css("border-bottom-width"), $n.css("border-bottom-style"), $n.css("border-bottom-color"));
  }
 
  public boolean hasBottomBorder() {
    Color bottomCellBackgroundColor = cellFactory.create(row + 1, col).getFillColor();
    Border b = getBottomBorder();
    //if cell bottom border color = bottom cell's background color, means this cell doesn't have bottom border
    return !("1px".equals(b.getWidth())
      && "solid".equals(b.getStyle())
      && Objects.equal(bottomCellBackgroundColor, b.getColor()));
  }
View Full Code Here

      && Objects.equal(bottomCellBackgroundColor, b.getColor()));
  }
 
  public Border getRightBorder() {
    JQuery $n = jq$n();
    return new Border($n.css("border-right-width"), $n.css("border-right-style"), $n.css("border-right-color"));
  }
View Full Code Here

    return new Border($n.css("border-right-width"), $n.css("border-right-style"), $n.css("border-right-color"));
  }
 
  public boolean hasRightBorder() {
    Color rightCellBackgroundColor = cellFactory.create(row, col + 1).getFillColor();
    Border b = getRightBorder();
    //if cell right border = right cell's background color, means this cell doesn't have right border
    return !("1px".equals(b.getWidth())
      && "solid".equals(b.getStyle())
      && Objects.equal(rightCellBackgroundColor, b.getColor()));
  }
View Full Code Here

TOP

Related Classes of org.zkoss.test.Border

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.