Package ag.ion.bion.officelayer.text

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


   */
  public void setCellStyle(String cellStyle) throws TextException {
    try {
      // xPropertySet.setPropertyValue("CellStyle", cellStyle);
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here


   */
  public String getCellStyle() throws TextException {
    try {
      return getXPropertySet().getPropertyValue("CellStyle").toString();
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

  public void setNumberFormat(int numberFormat) throws TextException {
    try {
      getXPropertySet().setPropertyValue("NumberFormat",
          new Integer(numberFormat));
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

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

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

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

   */
  public void setBackColor(int color) throws TextException {
    try {
      getXPropertySet().setPropertyValue("BackColor", new Integer(color));
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

   */
  public void setVertOrient(short align) throws TextException {
    try {
      getXPropertySet().setPropertyValue("VertOrient", new Short(align));
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

    try {
      XCellRangeData xCellRangeData = (XCellRangeData)UnoRuntime.queryInterface(XCellRangeData.class, xCellRange);
      xCellRangeData.setDataArray(values);
    }
    catch(Exception exception) {
      TextException textException = new TextException(exception.getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

    int columnIndex = TextTableCellNameHelper.getColumnIndex(name);
    int rowIndex = TextTableCellNameHelper.getRowIndex(name);
    try {
      return new TextTableCell(textDocument,xCellRange.getCellByPosition(columnIndex,rowIndex));
    }catch(IllegalArgumentException illegalArgumentException) {
      throw new TextException("A column with the name " + name + " is not available.");
    } catch(IndexOutOfBoundsException indexOutOfBoundsException) {
      throw new TextException("A column with the name " + name + " is not available.");
    }
  }
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.