Package ag.ion.bion.officelayer.internal.text.table

Examples of ag.ion.bion.officelayer.internal.text.table.TextTableCellReference


    }
  }

  public void testToColumnRange() {
    try {
      TextTableCellReference reference = new TextTableCellReference(
          "<A4>");
      reference.toColumnRange(0, 3);
      Assert.assertEquals("<A4:D4>", reference.toString());
    } catch (Exception exception) {
      Assert.fail(exception.getMessage());
    }
  }
View Full Code Here


    }
  }

  public void testExtendColumnRange() {
    try {
      TextTableCellReference reference = new TextTableCellReference(
          "<A4:B6>");
      reference.extendColumnRangeTo(3);
      Assert.assertEquals("<A4:D6>", reference.toString());
    } catch (Exception exception) {
      Assert.fail(exception.getMessage());
    }
  }
View Full Code Here

      Assert.fail(exception.getMessage());
    }
  }

  public void testContainsCell() {
    TextTableCellReference reference = new TextTableCellReference("<A4:D6>");
    Assert.assertEquals(true, reference.containsCell("C5"));
  }
View Full Code Here

    TextTableCellReference reference = new TextTableCellReference("<A4:D6>");
    Assert.assertEquals(true, reference.containsCell("C5"));
  }

  public void testContainsColumn() {
    TextTableCellReference reference = new TextTableCellReference("<A4:D6>");
    Assert.assertEquals(true, reference.containsColumn("C5"));
  }
View Full Code Here

    TextTableCellReference reference = new TextTableCellReference("<A4:D6>");
    Assert.assertEquals(true, reference.containsColumn("C5"));
  }

  public void testContainsRow() {
    TextTableCellReference reference = new TextTableCellReference("<A4:D6>");
    Assert.assertEquals(false, reference.containsRow("C7"));
  }
View Full Code Here

    TextTableCellReference reference = new TextTableCellReference("<A4:D6>");
    Assert.assertEquals(false, reference.containsRow("C7"));
  }

  public void testContainsColumnAfter() {
    TextTableCellReference reference = new TextTableCellReference("<D6>");
    Assert.assertEquals(true, reference.containsColumnAfter("C6"));
  }
View Full Code Here

    TextTableCellReference reference = new TextTableCellReference("<D6>");
    Assert.assertEquals(true, reference.containsColumnAfter("C6"));
  }

  public void testContainsRowAfter() {
    TextTableCellReference reference = new TextTableCellReference("<D6>");
    Assert.assertEquals(true, reference.containsColumnAfter("D4"));
  }
View Full Code Here

    Assert.assertEquals(true, reference.containsColumnAfter("D4"));
  }

  public void testExtendColumnRange2() {
    try {
      TextTableCellReference reference = new TextTableCellReference(
          "<D6>");
      reference.extendColumnRange(2);
      Assert.assertEquals("<D6:F6>", reference.toString());

      reference = new TextTableCellReference("<D6:F7>");
      reference.extendColumnRange(2);
      Assert.assertEquals("<D6:H7>", reference.toString());
    } catch (Exception exception) {
      Assert.fail(exception.getMessage());
    }
  }
View Full Code Here

    }
  }

  public void testExtendRowRange() {
    try {
      TextTableCellReference reference = new TextTableCellReference(
          "<D6>");
      reference.extendRowRange(4);
      Assert.assertEquals("<D6:D10>", reference.toString());

      reference = new TextTableCellReference("<D6:F7>");
      reference.extendRowRange(2);
      Assert.assertEquals("<D6:F9>", reference.toString());
    } catch (Exception exception) {
      Assert.fail(exception.getMessage());
    }
  }
View Full Code Here

  public void testTextTableFormulaModel1() {
    try {
      TextTableFormulaExpression textTableFormulaExpression = new TextTableFormulaExpression(
          "<A1>");
      TextTableCellReference[] references = new TextTableCellReference[3];
      TextTableCellReference reference1 = new TextTableCellReference(
          "<D6>");
      TextTableCellReference reference2 = new TextTableCellReference(
          "<E6>");
      TextTableCellReference reference3 = new TextTableCellReference(
          "<F6>");
      references[0] = reference1;
      references[1] = reference2;
      references[2] = reference3;
      TextTableFormulaModel formulaModel = new TextTableFormulaModel(
          textTableFormulaExpression);
      TextTableCellReference cellReference = formulaModel
          .getCellReferences()[0];
      formulaModel.replaceCellReference(cellReference, references);
      references = formulaModel.getCellReferences();
      Assert.assertEquals(3, references.length);
      Assert.assertEquals("(<D6>+<E6>+<F6>)", formulaModel
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.internal.text.table.TextTableCellReference

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.