org.gcube.portlets.d4sreporting.common.server.serializables
Class S_Table

java.lang.Object
  extended by org.gcube.portlets.d4sreporting.common.server.serializables.S_Table
All Implemented Interfaces:
Serializable

public class S_Table
extends Object
implements Serializable

Author:
massi
See Also:
Serialized Form

Constructor Summary
S_Table()
          default constructor
S_Table(int colsNo)
          actual one
 
Method Summary
 boolean addRow(ArrayList<S_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.
 boolean equals(Object obj)
           
 int getCellCount(int row)
           
 int getColsNo()
           
 ArrayList<S_TableCell> getRow(int i)
           
 int getRowCount()
           
 ArrayList<ArrayList<S_TableCell>> getTable()
           
 S_TableCell getValue(int row, int column)
          Gets the value in the specified cell.
 void setColsNo(int colsNo)
           
 void setTable(ArrayList<ArrayList<S_TableCell>> table)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S_Table

public S_Table()
default constructor


S_Table

public S_Table(int colsNo)
actual one

Parameters:
colsNo - the number of columns of the table
Method Detail

addRow

public boolean addRow(ArrayList<S_TableCell> row)
Gets the ArrayList of Strings row in the specified row.

Parameters:
row - the table's row

getValue

public S_TableCell getValue(int row,
                            int column)
Gets the value in the specified cell.

Parameters:
row - the cell's row
column - the cell's column
Returns:
the String in the specified cell, or null if none is present
Throws:
IndexOutOfBoundsException

checkCellBounds

protected void checkCellBounds(int row,
                               int column)
Bounds checks that the cell exists at the specified location.

Parameters:
row - cell's row
column - cell's column
Throws:
IndexOutOfBoundsException

checkRowBounds

protected void checkRowBounds(int row)
Checks that the row is within the correct bounds.

Parameters:
row - row index to check
Throws:
IndexOutOfBoundsException

getRowCount

public int getRowCount()
Returns:
.

getCellCount

public int getCellCount(int row)
Parameters:
row - .
Returns:
.

getColsNo

public int getColsNo()
Returns:
.

setColsNo

public void setColsNo(int colsNo)
Parameters:
colsNo - .

getRow

public ArrayList<S_TableCell> getRow(int i)
Parameters:
i -
Returns:

getTable

public ArrayList<ArrayList<S_TableCell>> getTable()
Returns:
.

setTable

public void setTable(ArrayList<ArrayList<S_TableCell>> table)
Parameters:
table - .

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.