Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.table.span
Class CellSpan

java.lang.Object
  extended by com.citra.table.span.CellSpan

public class CellSpan
extends Object

The class that defines a span for a cell.


Field Summary
static int ALL_COLUMNS
          identifies a cellspan where all columns are spanned.
static int ALL_ROWS
          identifies a cellspan where all rows are spanned.
protected  int columnSpan
          the number of columns this cell spans.
protected  int rowSpan
          the number of rows this cell spans.
protected  int spannedColumn
          the cell's spanned column.
protected  int spannedRow
          the cell's spanned row.
 
Constructor Summary
CellSpan(int spannedRow, int spannedColumn, int rowSpan, int columnSpan)
          Constructs a CellSpan.
 
Method Summary
 int getColumnSpan()
          Returns the number of columns this cell spans.
 int getRowSpan()
          Returns the number of rows this cell spans.
 int getSpannedColumn()
          Returns the cell's spanned column.
 int getSpannedRow()
          Returns the cell's spanned row.
 void setColumnSpan(int newColumnSpan)
          Sets the number of columns this cell spans.
 void setRowSpan(int newRowSpan)
          Sets the number of rows this cell spans.
 void setSpannedColumn(int newSpannedColumn)
          Sets the spanned column.
 void setSpannedRow(int newSpannedRow)
          Sets the spanned row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spannedRow

protected int spannedRow
the cell's spanned row.


spannedColumn

protected int spannedColumn
the cell's spanned column.


rowSpan

protected int rowSpan
the number of rows this cell spans.


columnSpan

protected int columnSpan
the number of columns this cell spans.


ALL_ROWS

public static final int ALL_ROWS
identifies a cellspan where all rows are spanned.

See Also:
Constant Field Values

ALL_COLUMNS

public static final int ALL_COLUMNS
identifies a cellspan where all columns are spanned.

See Also:
Constant Field Values
Constructor Detail

CellSpan

public CellSpan(int spannedRow,
                int spannedColumn,
                int rowSpan,
                int columnSpan)
Constructs a CellSpan.

Method Detail

getColumnSpan

public int getColumnSpan()
Returns the number of columns this cell spans.

Returns:
the number of columns this cell spans.

getRowSpan

public int getRowSpan()
Returns the number of rows this cell spans.

Returns:
the number of rows this cell spans.

getSpannedColumn

public int getSpannedColumn()
Returns the cell's spanned column. This is always the most left column.

Returns:
the cell's spanned column.

getSpannedRow

public int getSpannedRow()
Returns the cell's spanned row. This is always the outer left row.

Returns:
the cell's spanned row.

setColumnSpan

public void setColumnSpan(int newColumnSpan)
Sets the number of columns this cell spans.

Parameters:
newColumnSpan - the number of columns this cell spans.

setRowSpan

public void setRowSpan(int newRowSpan)
Sets the number of rows this cell spans.

Parameters:
newRowSpan - the number of rows this cell spans.

setSpannedColumn

public void setSpannedColumn(int newSpannedColumn)
Sets the spanned column. This is always the top column.

Parameters:
newSpannedColumn - the spanned column.

setSpannedRow

public void setSpannedRow(int newSpannedRow)
Sets the spanned row. This is always the outer left row.

Parameters:
newSpannedRow - the spanned row.

Copyright © 2011 Citra Technologies. All Rights Reserved.