Package org.zkoss.test.zss

Examples of org.zkoss.test.zss.Cell


    int rCol = 9;
    keyboardDirector.ctrlFontBold(tRow, lCol, bRow, rCol);
   
    Iterator<Cell> i = iterator(tRow, lCol, bRow, rCol);
    while (i.hasNext()) {
      Cell c = i.next();
      if (!c.isFontBold()) {
        System.out.println(c);
      }
      Assert.assertTrue(c.isFontBold());
    }
  }
View Full Code Here


    int rCol = 9;
    keyboardDirector.ctrlFontItalic(tRow, lCol, bRow, rCol);
   
    Iterator<Cell> i = iterator(tRow, lCol, bRow, rCol);
    while (i.hasNext()) {
      Cell c = i.next();
      Assert.assertTrue(c.isFontItalic());
    }
  }
View Full Code Here

    int rCol = 9;
    keyboardDirector.ctrlFontUnderline(tRow, lCol, bRow, rCol);
   
    Iterator<Cell> i = iterator(tRow, lCol, bRow, rCol);
    while (i.hasNext()) {
      Cell c = i.next();
      Assert.assertTrue(c.isFontUnderline());
    }
  }
View Full Code Here

 
  private void verifyToggleFontStrike(boolean b, int tRow, int lCol, int bRow, int rCol) {
    Iterator<Cell> cs = iterator(tRow, lCol, bRow, rCol);
    boolean toggle = !b;
    while (cs.hasNext()) {
      Cell c = cs.next();
      Assert.assertEquals(toggle, c.isFontStrike());
    }
  }
View Full Code Here

 
  private void verifyWrap(boolean b, int tRow, int lCol, int bRow, int rCol) {
    boolean toggle = !b;
    Iterator<Cell> i = iterator(tRow, lCol, bRow, rCol);
    while (i.hasNext()) {
      Cell c = i.next();
      Assert.assertEquals(toggle, c.isWrap());
    }
  }
View Full Code Here

    int bRow = 13;
    int rCol = 6;
    spreadsheet.setSelection(tRow, lCol, bRow, rCol);
    click(".zstbtn-mergeAndCenter");
   
    Cell cell = getCell(tRow, lCol);
    verifyMerge(true, tRow, lCol, bRow, rCol);
    Assert.assertEquals("center", cell.getHorizontalAlign());
  }
View Full Code Here

    int rCol = 6;
    spreadsheet.setSelection(tRow, lCol, bRow, rCol);
    click(".zstbtn-mergeAndCenter .zstbtn-arrow");
    click(".zsmenuitem-mergeAndCenter");
   
    Cell cell = getCell(tRow, lCol);
    verifyMerge(true, tRow, lCol, bRow, rCol);
    Assert.assertEquals("center", cell.getHorizontalAlign());
  }
View Full Code Here

    click(".zstbtn-mergeAndCenter .zstbtn-arrow");
    click(".zsmenuitem-mergeAcross");
   
    Iterator<Cell> i = iterator(tRow, lCol, bRow, lCol);
    while (i.hasNext()) {
      Cell c = i.next();
      Assert.assertTrue(c.isMerged());
    }
  }
View Full Code Here

  }
 
  void verifyMerge(boolean shallMerge, int tRow, int lCol, int bRow, int rCol) {
    Iterator<Cell> i = iterator(tRow, lCol, bRow, rCol);
    while (i.hasNext()) {
      Cell c = i.next();
      Assert.assertEquals(shallMerge, c.isMerged());
    }
  }
View Full Code Here

 
  private void verifyToggleFontUnderline(boolean b, int tRow, int lCol, int bRow, int rCol) {
    Iterator<Cell> cs = iterator(tRow, lCol, bRow, rCol);
    boolean toggle = !b;
    while (cs.hasNext()) {
      Cell c = cs.next();
      Assert.assertEquals(toggle, c.isFontUnderline());
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.test.zss.Cell

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.