Package org.zkoss.test

Examples of org.zkoss.test.Color


    click(".zsstylepanel .zstbtn-fontColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFontColor(new Color(color), 12, 5, 15, 8);
  }
View Full Code Here


    click(".zsstylepanel .zstbtn-fillColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFillColor(new Color(color), 12, 5, 15, 8);
  }
View Full Code Here

  public boolean isFontStrike() {
    return "line-through".equals(jq$n("cave").css("text-decoration").toLowerCase());
  }
 
  public Color getFontColor() {
    return new Color(jq$n("real").css("color"));
  }
View Full Code Here

  public Color getFillColor() {
    String c = jq$n().css("background-color").toUpperCase();
    //Note. in chrome will use RGBA(0, 0, 0, 0) = TRANSPARENT
    if (c.indexOf("TRANSPARENT") >= 0 || c.indexOf("RGBA(0, 0, 0, 0)") >= 0)
      c = "#FFFFFF";
    return new Color(c);
  }
View Full Code Here

    JQuery $n = jq$n();
    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

    JQuery $n = jq$n();
    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.Color

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.