Examples of TableTableElement


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

   *            <code>Cell</code> instance
   * @return the <code>Cell</code> instance that represents a specified cell
   *         element
   */
  public static Cell getInstance(TableTableCellElementBase cellElement) {
    TableTableElement tableElement = null;
    Node node = cellElement.getParentNode();
    while (node != null) {
      if (node instanceof TableTableElement) {
        tableElement = (TableTableElement) node;
      }
View Full Code Here

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

   * Get the index of the table row which contains this cell.
   *
   * @return the index of the row containing this cell
   */
  public int getRowIndex() {
    TableTableElement table = getTableElement();
    TableTableRowElement tr = getTableRowElement();
    int[] indexs = new int[1];

    TableTableRowElement returnEle = findRowInTableRowGroup(table, tr, indexs);
    if (returnEle != null) {
View Full Code Here

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

   * Get an instance of table feature which contains this cell.
   *
   * @return the table containing this cell
   */
  public Table getTable() {
    TableTableElement tableElement = getTableElement();
    if (tableElement != null) {
      return Table.getInstance(tableElement);
    }
    return null;
  }
View Full Code Here

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

  }

  TableTableColumnElement getTableColumnElement() {
    // return OdfTableCellBaseImpl.getTableColumn((OdfTableCellBase)
    // mCellElement);
    TableTableElement tableElement = getTableElement();
    int columnindex = getColumnIndex();
    Table fTable = Table.getInstance(tableElement);
    return fTable.getColumnElementByIndex(columnindex);
  }
View Full Code Here

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

   *            the row element that need to get the corresponding
   *            <code>Row</code> instance
   * @return the <code>Row</code> instance represent the specified row element
   */
  public static Row getInstance(TableTableRowElement rowElement) {
    TableTableElement tableElement = null;
    Node node = rowElement.getParentNode();
    while (node != null) {
      if (node instanceof TableTableElement) {
        tableElement = (TableTableElement) node;
      }
View Full Code Here

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

   * Get owner table of the current row.
   *
   * @return the parent table of this row
   */
  public Table getTable() {
    TableTableElement tableElement = getTableElement();
    if (tableElement != null) {
      return Table.getInstance(tableElement);
    }
    return null;
  }
View Full Code Here

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

   *
   * @return the index of the row
   */
  public int getRowIndex() {
    int result = 0;
    TableTableElement mTableElement = getTableElement();
    TableTableRowElement rowEle = null;
    for (Node n : new DomNodeList(mTableElement.getChildNodes())) {
      if (n instanceof TableTableHeaderRowsElement) {
        TableTableHeaderRowsElement headers = (TableTableHeaderRowsElement) n;
        for (Node m : new DomNodeList(headers.getChildNodes())) {
          if (m instanceof TableTableRowElement) {
            rowEle = (TableTableRowElement) m;
View Full Code Here

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

  }

  TableTableColumnElement getTableColumnElement() {
    // return OdfTableCellBaseImpl.getTableColumn((OdfTableCellBase)
    // mCellElement);
    TableTableElement tableElement = getTableElement();
    int columnindex = getColumnIndex();
    Table fTable = Table.getInstance(tableElement);
    return fTable.getColumnElementByIndex(columnindex);
  }
View Full Code Here

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

     *            the header column number
     * @return a new instance of <code>Table</code>
     * */
    public Table newTable(int numRows, int numCols, int headerRowNumber, int headerColumnNumber) {
      try {
        TableTableElement newTEle = createTable(ownerContainer, numRows, numCols, headerRowNumber,
            headerColumnNumber);
        ownerContainer.getTableContainerElement().appendChild(newTEle);
        return getTableInstance(newTEle);
      } catch (DOMException e) {
        Logger.getLogger(Table.class.getName()).log(Level.SEVERE, e.getMessage(), e);
View Full Code Here

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

     * @since 0.5.5
     * */
    public Table newTable(int numRows, int numCols, int headerRowNumber, int headerColumnNumber, double marginLeft,
        double marginRight) {
      try {
        TableTableElement newTEle = createTable(ownerContainer, numRows, numCols, headerRowNumber,
            headerColumnNumber, marginLeft, marginRight);
        ownerContainer.getTableContainerElement().appendChild(newTEle);
        return getTableInstance(newTEle);
      } catch (Exception e) {
        Logger.getLogger(Table.class.getName()).log(Level.SEVERE, e.getMessage(), e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.