Package ag.ion.bion.officelayer.text

Examples of ag.ion.bion.officelayer.text.TextException


   */
  public static String moveRowCounterValue(int count, String cellName)
      throws TextException {
    int newRowCounterValue = getRowCounterValue(cellName) + count;
    if (newRowCounterValue < 1)
      throw new TextException("The new row counter value is not valid.");
    return getColumnCharacter(cellName) + newRowCounterValue;
  }
View Full Code Here


  public void setFontBold(boolean param) throws TextException {
    try {
      float weight = param ? FontWeight.BOLD : (float) 100.0;
      getXPropertySet().setPropertyValue("CharWeight", new Float(weight));
    } catch (Exception excep) {
      TextException textException = new TextException(excep.getMessage());
      textException.initCause(excep);
      throw textException;
    }
  }
View Full Code Here

   * @author Andreas Br�ker
   */
  public static String moveRowCounterValueTo(int newRowCounterValue,
      String cellName) throws TextException {
    if (newRowCounterValue < 0)
      throw new TextException(
          "The submitted row counter value is not valid.");
    return getColumnCharacter(cellName) + newRowCounterValue;
  }
View Full Code Here

   */
  public static String moveColumnIndex(int count, String cellName)
      throws TextException {
    int newColumnIndex = getColumnIndex(cellName) + count;
    if (newColumnIndex < 0)
      throw new TextException("The new column index is not valid.");
    return getColumnCharacter(newColumnIndex)
        + getRowCounterValue(cellName);
  }
View Full Code Here

        return true;
      } else {
        return false;
      }
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

   * @author Andreas Br�ker
   */
  public static String moveColumnIndexTo(int newColumnIndex, String cellName)
      throws TextException {
    if (newColumnIndex < 0)
      throw new TextException("The submitted column index is not valid.");
    int rowIndex = getRowCounterValue(cellName);
    return getColumnCharacter(newColumnIndex) + rowIndex;
  }
View Full Code Here

      } else {
        getXPropertySet().setPropertyValue("CharPosture",
            FontSlant.NONE);
      }
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

        return false;
      } else {
        return true;
      }
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

    short help = (short) (param ? 1 : 0);
    try {
      getXPropertySet()
          .setPropertyValue("CharUnderline", new Short(help));
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

  public int getFontColor() throws TextException {
    try {
      return ((Integer) getXPropertySet().getPropertyValue("CharColor"))
          .intValue();
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.text.TextException

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.