Package org.odftoolkit.odfdom.dom.element.table

Examples of org.odftoolkit.odfdom.dom.element.table.TableNamedExpressionsElement


   * Create child element {@odf.element table:named-expressions}.
   *
   * @return the element {@odf.element table:named-expressions}
   */
  public TableNamedExpressionsElement newTableNamedExpressionsElement() {
    TableNamedExpressionsElement tableNamedExpressions = ((OdfFileDom) this.ownerDocument).newOdfElement(TableNamedExpressionsElement.class);
    this.appendChild(tableNamedExpressions);
    return tableNamedExpressions;
  }
View Full Code Here


  public void setCellRangeName(String cellRangeName) {
    try {
      OdfElement contentRoot = maOwnerTable.mDocument.getContentRoot();
      //create name range element
      OdfFileDom contentDom = ((OdfFileDom) maOwnerTable.getOdfElement().getOwnerDocument());
      TableNamedExpressionsElement nameExpress = (TableNamedExpressionsElement) OdfXMLFactory.newOdfElement(
          contentDom,
          OdfName.newName(OdfDocumentNamespace.TABLE, "named-expressions"));
      String startCellRange = "$" + maOwnerTable.getTableName() + "." + maOwnerTable.getAbsoluteCellAddress(mnStartColumn, mnStartRow);
      String endCellRange = "$" + maOwnerTable.getTableName() + "." + maOwnerTable.getAbsoluteCellAddress(mnEndColumn, mnEndRow);
      TableNamedRangeElement nameRange = (TableNamedRangeElement) nameExpress.newTableNamedRangeElement(startCellRange + ":" + endCellRange, cellRangeName);
      nameRange.setTableBaseCellAddressAttribute(endCellRange);
      contentRoot.appendChild(nameExpress);
      msCellRangeName = cellRangeName;
    } catch (Exception ex) {
      Logger.getLogger(OdfTableCellRange.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

  public void setCellRangeName(String cellRangeName) {
    try {
      OdfElement contentRoot = maOwnerTable.mDocument.getContentRoot();
      //create name range element
      OdfFileDom contentDom = ((OdfFileDom) maOwnerTable.getOdfElement().getOwnerDocument());
      TableNamedExpressionsElement nameExpress = (TableNamedExpressionsElement) OdfXMLFactory.newOdfElement(
          contentDom,
          OdfName.newName(OdfDocumentNamespace.TABLE, "named-expressions"));
      String startCellRange = "$" + maOwnerTable.getTableName() + "." + maOwnerTable.getAbsoluteCellAddress(mnStartColumn, mnStartRow);
      String endCellRange = "$" + maOwnerTable.getTableName() + "." + maOwnerTable.getAbsoluteCellAddress(mnEndColumn, mnEndRow);
      TableNamedRangeElement nameRange = (TableNamedRangeElement) nameExpress.newTableNamedRangeElement(startCellRange + ":" + endCellRange, cellRangeName);
      nameRange.setTableBaseCellAddressAttribute(endCellRange);
      contentRoot.appendChild(nameExpress);
      msCellRangeName = cellRangeName;
    } catch (Exception ex) {
      Logger.getLogger(CellRange.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

   * Create child element {@odf.element table:named-expressions}.
   *
   * @return the element {@odf.element table:named-expressions}
   */
  public TableNamedExpressionsElement newTableNamedExpressionsElement() {
    TableNamedExpressionsElement tableNamedExpressions = ((OdfFileDom) this.ownerDocument).newOdfElement(TableNamedExpressionsElement.class);
    this.appendChild(tableNamedExpressions);
    return tableNamedExpressions;
  }
View Full Code Here

   * Create child element {@odf.element table:named-expressions}.
   *
   * @return the element {@odf.element table:named-expressions}
   */
  public TableNamedExpressionsElement newTableNamedExpressionsElement() {
    TableNamedExpressionsElement tableNamedExpressions = ((OdfFileDom) this.ownerDocument).newOdfElement(TableNamedExpressionsElement.class);
    this.appendChild(tableNamedExpressions);
    return tableNamedExpressions;
  }
View Full Code Here

   * Create child element {@odf.element table:named-expressions}.
   *
   * @return the element {@odf.element table:named-expressions}
   */
  public TableNamedExpressionsElement newTableNamedExpressionsElement() {
    TableNamedExpressionsElement tableNamedExpressions = ((OdfFileDom) this.ownerDocument).newOdfElement(TableNamedExpressionsElement.class);
    this.appendChild(tableNamedExpressions);
    return tableNamedExpressions;
  }
View Full Code Here

   * Create child element {@odf.element table:named-expressions}.
   *
   * @return the element {@odf.element table:named-expressions}
   */
  public TableNamedExpressionsElement newTableNamedExpressionsElement() {
    TableNamedExpressionsElement tableNamedExpressions = ((OdfFileDom) this.ownerDocument).newOdfElement(TableNamedExpressionsElement.class);
    this.appendChild(tableNamedExpressions);
    return tableNamedExpressions;
  }
View Full Code Here

   * Create child element {@odf.element table:named-expressions}.
   *
   * @return the element {@odf.element table:named-expressions}
   */
  public TableNamedExpressionsElement newTableNamedExpressionsElement() {
    TableNamedExpressionsElement tableNamedExpressions = ((OdfFileDom) this.ownerDocument).newOdfElement(TableNamedExpressionsElement.class);
    this.appendChild(tableNamedExpressions);
    return tableNamedExpressions;
  }
View Full Code Here

  public void setCellRangeName(String cellRangeName) {
    try {
      OdfElement contentRoot = maOwnerTable.mDocument.getContentRoot();
      //create name range element
      OdfFileDom contentDom = ((OdfFileDom) maOwnerTable.getOdfElement().getOwnerDocument());
      TableNamedExpressionsElement nameExpress = (TableNamedExpressionsElement) OdfXMLFactory.newOdfElement(
          contentDom,
          OdfName.newName(OdfDocumentNamespace.TABLE, "named-expressions"));
      String startCellRange = "$" + maOwnerTable.getTableName() + "." + maOwnerTable.getAbsoluteCellAddress(mnStartColumn, mnStartRow);
      String endCellRange = "$" + maOwnerTable.getTableName() + "." + maOwnerTable.getAbsoluteCellAddress(mnEndColumn, mnEndRow);
      TableNamedRangeElement nameRange = (TableNamedRangeElement) nameExpress.newTableNamedRangeElement(startCellRange + ":" + endCellRange, cellRangeName);
      nameRange.setTableBaseCellAddressAttribute(endCellRange);
      contentRoot.appendChild(nameExpress);
      msCellRangeName = cellRangeName;
    } catch (Exception ex) {
      Logger.getLogger(OdfTableCellRange.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.table.TableNamedExpressionsElement

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.