Package com.lowagie.text
Class Row
java.lang.Object
com.lowagie.text.Row
- All Implemented Interfaces:
Element
A
Row is part of a Table
and contains some Cells.
All Rows are constructed by a Table-object.
You don't have to construct any Row yourself.
In fact you can't construct a Row outside the package.
Since a Cell can span several rows and/or columns
a row can contain reserved space without any content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intid of the Cell element in a Rowprotected Object[]This is the array of Objects (CellorTable).protected intThis is the number of columns in theRow.protected intThis is a valid position theRow.protected intThis is the vertical alignment.static final intid of a null element in a Rowprotected boolean[]This is the array that keeps track of reserved cells.static final intid of the Table element in a RowFields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TITLE, YMARK -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRow(int columns) Constructs aRowwith a certain number of columns. -
Method Summary
Modifier and TypeMethodDescriptiongetCell(int column) Gets aCellorTablefrom a certain column.Gets all the chunks in this element.intGets the number of columns.intGets the horizontal alignment.booleanChecks if this element is a content object.booleanisEmpty()Checks if the row is empty.booleanChecks if this element is nestable.booleanprocess(ElementListener listener) Processes the element by adding it (or the different parts) to aElementListener.voidsetHorizontalAlignment(int value) Sets the horizontal alignment.inttype()Gets the type of the text element.
-
Field Details
-
NULL
public static final int NULLid of a null element in a Row- See Also:
-
CELL
public static final int CELLid of the Cell element in a Row- See Also:
-
TABLE
public static final int TABLEid of the Table element in a Row- See Also:
-
columns
protected int columnsThis is the number of columns in theRow. -
currentColumn
protected int currentColumnThis is a valid position theRow. -
reserved
protected boolean[] reservedThis is the array that keeps track of reserved cells. -
cells
This is the array of Objects (CellorTable). -
horizontalAlignment
protected int horizontalAlignmentThis is the vertical alignment.
-
-
Constructor Details
-
Row
protected Row(int columns) Constructs aRowwith a certain number of columns.- Parameters:
columns- a number of columns
-
-
Method Details
-
process
Processes the element by adding it (or the different parts) to aElementListener. -
type
public int type()Gets the type of the text element. -
getChunks
Gets all the chunks in this element. -
isContent
public boolean isContent()Description copied from interface:ElementChecks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Description copied from interface:ElementChecks if this element is nestable.- Specified by:
isNestablein interfaceElement- Returns:
- true if this element can be nested inside other elements.
- Since:
- iText 2.0.8
- See Also:
-
getCell
Gets aCellorTablefrom a certain column.- Parameters:
column- the column theCell/Tableis in.- Returns:
- the
Cell,Tableor Object if the column was reserved or null if empty.
-
isEmpty
public boolean isEmpty()Checks if the row is empty.- Returns:
trueif none of the columns is reserved.
-
getColumns
public int getColumns()Gets the number of columns.- Returns:
- a value
-
setHorizontalAlignment
public void setHorizontalAlignment(int value) Sets the horizontal alignment.- Parameters:
value- the new value
-
getHorizontalAlignment
public int getHorizontalAlignment()Gets the horizontal alignment.- Returns:
- a value
-