|
|||||||||
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. |
java.lang.Object |
getObject(int row,
int column)
Returns the object from a particular cell in the table. |
void |
setObject(int row,
int column,
java.lang.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, ensureRowCapacity, equals, getColumnCount, getColumnIncrement, getData, getRowCount, getRowIncrement, hashCode, readSerializedData, setData, writeSerializedData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, 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 java.lang.Object getObject(int row, int column)
getObject
in class ObjectTable
row
- the row index (zero-based).column
- the column index (zero-based).
public void setObject(int row, int column, java.lang.Object object)
setObject
in class ObjectTable
row
- the row index (zero-based).column
- the column index (zero-based).object
- the object.public void copyColumn(int oldColumn, int newColumn)
copyColumn
in class ObjectTable
oldColumn
- the index of the old (source) columnnewColumn
- the index of the new columnpublic void copyRow(int oldRow, int newRow)
copyRow
in class ObjectTable
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 |