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

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


   *
   * @author Miriam Sutter
   */
  public void setCellFormula(String cellFormula) throws TextException{
    this.cellFormula = cellFormula;
    TextTableFormulaExpression textTableFormulaExpression = new TextTableFormulaExpression(cellFormula);
   
    ETextTableCellReferencesService textTableCellReferencesService = new ETextTableCellReferencesService(textTableFormulaExpression,textTable);
    textTableCellReferencesService.applyModifications();
   
    tableCell.setFormula(textTableFormulaExpression.getExpression());
  }
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;
View Full Code Here

      Assert.fail(exception.getMessage());     
    }
  }
  public void testTextTableFormulaModel2() {
    try {
      TextTableFormulaExpression textTableFormulaExpression = new TextTableFormulaExpression("<A1>+<b2>");
      TextTableCellReference[] references = new TextTableCellReference[3];
      TextTableCellReference reference1 = new TextTableCellReference("<D6>");
      TextTableCellReference reference2 = new TextTableCellReference("<E6>");
      TextTableCellReference reference3 = new TextTableCellReference("<F6>");
      references[0] = reference1;
View Full Code Here

   *
   * @author Miriam Sutter
   */
  private void formula(String formulaValue, double realResult, HashMap argumentMap) {
    try {     
      TextTableFormula formula = new TextTableFormula(new TextTableFormulaExpression(formulaValue));
      IArgument[] arguments = formula.getArguments();
      for(int i = 0; i < arguments.length; i++) {
        arguments[i].setValue(argumentMap.get(arguments[i].getName()));
      }
      
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(
View Full Code Here

    }
  }

  public void testTextTableFormulaModel2() {
    try {
      TextTableFormulaExpression textTableFormulaExpression = new TextTableFormulaExpression(
          "<A1>+<b2>");
      TextTableCellReference[] references = new TextTableCellReference[3];
      TextTableCellReference reference1 = new TextTableCellReference(
          "<D6>");
      TextTableCellReference reference2 = new TextTableCellReference(
View Full Code Here

   *
   * @author Miriam Sutter
   */
  public void setCellFormula(String cellFormula) throws TextException {
    this.cellFormula = cellFormula;
    TextTableFormulaExpression textTableFormulaExpression = new TextTableFormulaExpression(
        cellFormula);

    ETextTableCellReferencesService textTableCellReferencesService = new ETextTableCellReferencesService(
        textTableFormulaExpression, textTable);
    textTableCellReferencesService.applyModifications();

    tableCell.setFormula(textTableFormulaExpression.getExpression());
  }
View Full Code Here

   */
  private void formula(String formulaValue, double realResult,
      HashMap argumentMap) {
    try {
      TextTableFormula formula = new TextTableFormula(
          new TextTableFormulaExpression(formulaValue));
      IArgument[] arguments = formula.getArguments();
      for (int i = 0; i < arguments.length; i++) {
        arguments[i].setValue(argumentMap.get(arguments[i].getName()));
      }

View Full Code Here

TOP

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

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.