|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoTable
Interface that describes internal tables used in the parameter lists of function modules. It's a data container, that can have multiple rows of the same fields.
Method Summary | |
---|---|
void |
appendRow()
Appends a new row at the end of the table and moves the row pointer such that it points to the newly appended row. |
void |
appendRows(int numRows)
Appends the specified number of empty rows at the end of the table. |
void |
clear()
Clears the table, i.e. |
void |
deleteAllRows()
Deletes all rows of table. |
void |
deleteRow()
Deletes the current row Note:The row pointer will be left untouched unless it would point to a row that would have become invalid due to the deletion operation. |
void |
deleteRow(int pos)
Deletes the row at the specified position. Note:The row pointer will be left untouched unless it would point to a row that would have become invalid due to deletion. |
void |
ensureBufferCapacity(int required_rows)
Checks the size of the buffer and allocates new memory if necessary and initialize the rows. |
void |
firstRow()
Moves the row pointer to the first row. |
int |
getNumColumns()
Returns the number of columns in the table This is just a convenience function and returns the same value as getFieldCount(). |
int |
getNumRows()
Returns the number of rows. |
JCoRecordFieldIterator |
getRecordFieldIterator()
Returns an iterator over JCoRecordField. |
JCoRecordMetaData |
getRecordMetaData()
returns the appropriated meta data object, that was used for creation of this record. |
int |
getRow()
Returns the current row number. |
void |
insertRow(int pos)
Inserts a new empty row before the specified position. |
boolean |
isEmpty()
Checks whether the table is empty. |
boolean |
isFirstRow()
Retrieves whether the row pointer is on the first row of this table. |
boolean |
isLastRow()
Retrieves whether the row pointer is on the last row of this table. |
void |
lastRow()
Moves the row pointer to the last row. |
boolean |
nextRow()
Moves the row pointer to the next row. |
boolean |
previousRow()
Moves the row pointer to the previous row. |
void |
setRow(int pos)
Sets the row pointer to the specified position. |
void |
trimToRows()
Trims the capacity of this table to be the table's current number of rows. |
Method Detail |
---|
JCoRecordMetaData getRecordMetaData()
void ensureBufferCapacity(int required_rows)
void trimToRows()
boolean isEmpty()
boolean isFirstRow()
boolean isLastRow()
int getNumRows()
int getNumColumns()
JCoRecord.getFieldCount()
void clear()
clear
in interface JCoRecord
void deleteAllRows()
void firstRow()
void lastRow()
boolean nextRow()
if (table.getNumRows() > 0) { table.firstRow(); do { ... while(table.nextRow()); }
boolean previousRow()
if (table.getNumRows() > 0) { table.lastRow() do { ... while(table.previousRow()); }
int getRow()
void setRow(int pos)
int numRows = table.getNumRows(); for (int irow = 0; i < numRows; irow++) { table.setRow(irow); .... }If a negative value is specified, the row pointer is set to position 0, and if the specified value is greater than the number of rows, it is moved to the last row.
pos
- the position to set the row pointer tovoid appendRow()
void appendRows(int numRows)
numRows
- the number of empty rows to appendvoid insertRow(int pos)
pos
- the index of the row before to insert the new rowvoid deleteRow()
void deleteRow(int pos)
pos
- the index of the row to deleteJCoRecordFieldIterator getRecordFieldIterator()
JCoRecord.iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |