|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.d4sreporting.common.shared.Table
public class Table
Table class represent a template component that can be serializable
the TableModel class used in the model cannot be serializable
| Constructor Summary | |
|---|---|
Table()
default constructor |
|
Table(int colsNo)
actual one |
|
Table(int colsNo,
ArrayList<ArrayList<TableCell>> table,
String title,
String description,
AttributeArea attrArea)
only for serialization purposes |
|
| Method Summary | |
|---|---|
boolean |
addRow(ArrayList<TableCell> row)
Gets the ArrayList of Strings row in the specified row. |
protected void |
checkCellBounds(int row,
int column)
Bounds checks that the cell exists at the specified location. |
protected void |
checkRowBounds(int row)
Checks that the row is within the correct bounds. |
AttributeArea |
getAttrArea()
|
int |
getCellCount(int row)
|
int |
getColsNo()
|
String |
getDescription()
|
ArrayList<TableCell> |
getRow(int i)
|
int |
getRowCount()
|
ArrayList<ArrayList<TableCell>> |
getTable()
|
String |
getTitle()
|
TableCell |
getValue(int row,
int column)
Gets the value in the specified cell. |
void |
setAttrArea(AttributeArea attrArea)
|
void |
setColsNo(int colsNo)
|
void |
setDescription(String description)
|
void |
setTable(ArrayList<ArrayList<TableCell>> table)
|
void |
setTitle(String title)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Table()
public Table(int colsNo)
colsNo - the number of columns of the table
public Table(int colsNo,
ArrayList<ArrayList<TableCell>> table,
String title,
String description,
AttributeArea attrArea)
colsNo - table - title - description - attrArea - | Method Detail |
|---|
public boolean addRow(ArrayList<TableCell> row)
row - the table's row
public TableCell getValue(int row,
int column)
row - the cell's rowcolumn - the cell's column
null if none is
present
IndexOutOfBoundsException
protected void checkCellBounds(int row,
int column)
row - cell's rowcolumn - cell's column
IndexOutOfBoundsExceptionprotected void checkRowBounds(int row)
row - row index to check
IndexOutOfBoundsExceptionpublic int getRowCount()
public int getCellCount(int row)
row - .
public int getColsNo()
public void setColsNo(int colsNo)
colsNo - .public ArrayList<TableCell> getRow(int i)
i -
public ArrayList<ArrayList<TableCell>> getTable()
public void setTable(ArrayList<ArrayList<TableCell>> table)
table - .public String getTitle()
public void setTitle(String title)
public String getDescription()
public void setDescription(String description)
public AttributeArea getAttrArea()
public void setAttrArea(AttributeArea attrArea)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||