com.aspose.pdf.elements
Class Rows

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

public class Rows
extends PdfElementBase

Represents a collection of Row objects.


Constructor Summary
Rows(Table table)
          Initializes a new instance of the Rows class.
 
Method Summary
 Row add()
          Adds a new Row object into the collection.
 void add(Row row)
          Adds a new Row object into the collection.
 void clear()
          Clear rows of table.
 java.lang.Object clone()
          Rows does not support clone method.
 Row get(int index)
           
 org.w3c.dom.Element getDOMElement()
          Gets a DOM representation of the pdf element.
 int indexOf(Row row)
          Gets the index of a specified row in the collection.
 void Insert(int index, Row row)
          Inserts a new Row object into the collection at specified position.
 boolean isEmpty()
          Returns true if the collection contains no row.
 java.util.Iterator iterator()
          Returns an iterator over the row objects in paragraphs in proper sequence.
 void remove(int index)
          Removes a Row object from the collection at the specified position.
 void remove(Row row)
          Removes a Row object from the collection.
 int size()
          Gets the size of row 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

Rows

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

Parameters:
table - The table that owns the Rows object.
Method Detail

clone

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

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

add

public void add(Row row)
Adds a new Row object into the collection.

Parameters:
row - the row that will be added.

add

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


clear

public void clear()
Clear rows of table.


indexOf

public int indexOf(Row row)
Gets the index of a specified row in the collection.

Returns:
The index of the specified row

Insert

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

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

remove

public void remove(Row row)
Removes a Row object from the collection.

Parameters:
row - The row that willed removed.

remove

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

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

size

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


iterator

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


isEmpty

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


get

public Row 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()