|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.base.util.ObjectTable
org.pentaho.reporting.libraries.base.util.GenericObjectTable
public class GenericObjectTable
A generic table storing objects in an fast array backend. This generic class provides public getter and setters for the contents of the table.
Constructor Summary | |
---|---|
GenericObjectTable()
Creates a new object table. |
|
GenericObjectTable(int increment)
Creates a new table. |
|
GenericObjectTable(int rowIncrement,
int colIncrement)
Creates a new table. |
Method Summary | |
---|---|
void |
copyColumn(int oldColumn,
int newColumn)
Copys the contents of the old column to the new column. |
void |
copyRow(int oldRow,
int newRow)
Copys the contents of the old row to the new row. |
Object |
getObject(int row,
int column)
Returns the object from a particular cell in the table. |
void |
setObject(int row,
int column,
Object object)
Sets the object for a cell in the table. |
Methods inherited from class org.pentaho.reporting.libraries.base.util.ObjectTable |
---|
clear, clearRow, ensureCapacity, equals, getColumnCount, getColumnIncrement, getRowCount, getRowIncrement, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericObjectTable()
public GenericObjectTable(int increment)
increment
- the row and column size increment.public GenericObjectTable(int rowIncrement, int colIncrement)
rowIncrement
- the row size increment.colIncrement
- the column size increment.Method Detail |
---|
public Object getObject(int row, int column)
row
- the row index (zero-based).column
- the column index (zero-based).
public void setObject(int row, int column, Object object)
row
- the row index (zero-based).column
- the column index (zero-based).object
- the object.public void copyColumn(int oldColumn, int newColumn)
oldColumn
- the index of the old (source) columnnewColumn
- the index of the new columnpublic void copyRow(int oldRow, int newRow)
oldRow
- the index of the old rownewRow
- the index of the new row
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |