com.aspose.pdf.elements
Class Cells

java.lang.Object
  extended by com.aspose.pdf.elements.PdfElementBase
      extended by com.aspose.pdf.elements.Cells
All Implemented Interfaces:
java.lang.Cloneable

public class Cells
extends PdfElementBase

Represents a collection of Cell objects.


Constructor Summary
Cells(Row row)
          Initializes a new instance of the Cells class.
Cells(Table table)
          Initializes a new instance of the Cells class.
 
Method Summary
 Cell add()
          Adds a new Cell object into the collection.
 void add(Cell cell)
          Adds a new Cell object into the collection.
 Cell add(java.lang.String content)
          Adds a new Cell object into the collection.
 void clear()
          Clear rows of table.
 java.lang.Object clone()
          Cells does not support clone method.
 Cell get(int index)
           
 org.w3c.dom.Element getDOMElement()
          Gets a DOM representation of the pdf element.
 int indexOf(Cell cell)
          Gets the index of a specified cell in the collection.
 void Insert(int index, Cell cell)
          Inserts a new Cell object into the collection at specified position.
 boolean isEmpty()
          Returns true if the collection contains no cell.
 java.util.Iterator iterator()
          Returns an iterator over the cell objects in paragraphs in proper sequence.
 void remove(Cell cell)
          Removes a Cell object from the collection.
 void remove(int index)
          Removes a Cell object from the collection at the specified position.
 int size()
          Gets the size of cell objects collection.
 
Methods inherited from class com.aspose.pdf.elements.PdfElementBase
getElementFactory, getID, getNameIndex, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cells

public Cells(Table table)
Initializes a new instance of the Cells class.

Parameters:
table - The table that owns the Cells.

Cells

public Cells(Row row)
Initializes a new instance of the Cells class.

Parameters:
row - The Row that owns the Cells.
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Cells does not support clone method.

Overrides:
clone in class PdfElementBase
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

add

public void add(Cell cell)
Adds a new Cell object into the collection.

Parameters:
cell - the cell that will be added.

add

public Cell add()
Adds a new Cell object into the collection.


add

public Cell add(java.lang.String content)
Adds a new Cell object into the collection.


clear

public void clear()
Clear rows of table.


indexOf

public int indexOf(Cell cell)
Gets the index of a specified cell in the collection.

Returns:
The index of the specified cell

Insert

public void Insert(int index,
                   Cell cell)
Inserts a new Cell object into the collection at specified position.

Parameters:
index - The position that the cell will be inserted at.
cell - the cell that willed inserted.

remove

public void remove(Cell cell)
Removes a Cell object from the collection.

Parameters:
cell - The cell that willed removed.

remove

public void remove(int index)
Removes a Cell object from the collection at the specified position.

Parameters:
index - The index of the cell that willed removed.

size

public int size()
Gets the size of cell objects collection.


iterator

public java.util.Iterator iterator()
Returns an iterator over the cell objects in paragraphs in proper sequence.


isEmpty

public boolean isEmpty()
Returns true if the collection contains no cell.


get

public Cell get(int index)
Returns:
Returns the element at the specified position in this list.

getDOMElement

public org.w3c.dom.Element getDOMElement()
                                  throws AsposeBaseException
Description copied from class: PdfElementBase
Gets a DOM representation of the pdf element.

Overrides:
getDOMElement in class PdfElementBase
Throws:
AsposeBaseException
See Also:
PdfElementBase.getDOMElement()