Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery.first()


   
    public String setCellFontColorByToolbarbutton(int lCol, int tRow, int rCol, int bRow, int nthColorPalette) {
      selectCells(lCol, tRow, rCol, bRow);
      click(jq("$fontCtrlPanel $fontColorBtn"));
        JQuery color = jq(".z-colorpalette:visible div.z-colorpalette-colorbox:nth-child(" + nthColorPalette + ")");
        String selectedColor = color.first().text();
      mouseOver(color);
      click(color);
      waitResponse();
      return selectedColor;
    }
View Full Code Here


   
    public String setCellBackgroundColorByToolbarbutton(int lCol, int tRow, int rCol, int bRow, int nthColorPalette) {
      selectCells(lCol, tRow, rCol, bRow);
      click(jq("$fontCtrlPanel $cellColorBtn"));
        JQuery color = jq(".z-colorpalette:visible div.z-colorpalette-colorbox:nth-child(" + nthColorPalette + ")");
        String selectedColor = color.first().text();
      mouseOver(color);
      click(color);
      waitResponse();
      return selectedColor;
    }
View Full Code Here

    public String setCellFontColorByFastToolbarbutton(int lCol, int tRow, int rCol, int bRow, int nthColorPalette) {
      rightClickCells(lCol, tRow, rCol, bRow);
      click("$cellContext $fontCtrlPanel:visible $fontColorBtn");
     
        JQuery color = jq(".z-colorpalette:visible div.z-colorpalette-colorbox:nth-child(" + nthColorPalette + ")");
        String selectedColor = color.first().text();
      mouseOver(color);
      click(color);
      waitResponse();
      return selectedColor;
    }
View Full Code Here

    public String setCellBackgroundColorByFastToolbarbutton(int lCol, int tRow, int rCol, int bRow, int nthColorPalette) {
      rightClickCells(lCol, tRow, rCol, bRow);
      click("$cellContext $fontCtrlPanel:visible $cellColorBtn");
     
        JQuery color = jq(".z-colorpalette:visible div.z-colorpalette-colorbox:nth-child(" + nthColorPalette + ")");
        String selectedColor = color.first().text();
      mouseOver(color);
      click(color);
      waitResponse();
      return selectedColor;
    }
View Full Code Here

      JQuery color = jq("$backgroundColorMenu .z-colorpalette div.z-colorpalette-colorbox:nth-child(98)");
      mouseOver(color);
      click(color);
      waitResponse();
      String selectedColor = color.first().text();

        //Verify
        cell_B_8 = getSpecifiedCell(1, 7);
        String bgB8 = cell_B_8.parent().css("background-color");
        String style = ColorVerifingHelper.transform(bgB8);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.