|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.d4sreporting.common.server.serializables.TableModel
public class TableModel
TableModel class represent a template component that can be JAVA (Not GWT) serializable
| Constructor Summary | |
|---|---|
TableModel()
default constructor |
|
TableModel(int colsNo)
actual one |
|
| Method Summary | |
|---|---|
boolean |
addRow(ArrayList<String> 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. |
int |
getCellCount(int row)
|
int |
getColsNo()
|
int |
getRowCount()
|
List<ArrayList<String>> |
getTable()
|
String |
getValue(int row,
int column)
Gets the value in the specified cell. |
void |
setColsNo(int colsNo)
|
void |
setTable(List<ArrayList<String>> table)
|
String |
toString()
to String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableModel()
public TableModel(int colsNo)
colsNo - the number of columns of the table| Method Detail |
|---|
public boolean addRow(ArrayList<String> row)
row - the table's row
IllegalArgumentException
public String 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 List<ArrayList<String>> getTable()
public void setTable(List<ArrayList<String>> table)
table - .public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||