|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.widgetideas.table.client.BulkLoader
public class BulkLoader
A helper class to enable bulk loading of tables from a TableModel
.
Nested Class Summary | |
---|---|
static interface |
BulkLoader.BulkLoadable
|
static interface |
BulkLoader.OnLoadCompleteCallBack
CallBack for when loading the table is complete. |
Field Summary | |
---|---|
int |
MAX_TIME
Maximum time allowable to create the table string. |
BulkLoader.OnLoadCompleteCallBack |
onLoadComplete
A bulk loader may have a single BulkLoader.OnLoadCompleteCallBack so the user
may continue processing after the table is fully loaded. |
static int |
TIME_SLICE
Time slice in milliseconds that the construction of the string can take before flushing the event cue. |
Constructor Summary | |
---|---|
BulkLoader(BulkLoader.BulkLoadable table)
|
Method Summary | |
---|---|
int |
getRowsPerTimeCheck()
|
void |
renderRows(java.util.List rows)
Sets the table's rows to the list of rows provided. |
void |
renderRows(TableModel tableModel)
Sets the table's rows to all the data contained in the given tableModel. |
void |
renderRows(TableModel tableModel,
int startRow,
int numRows)
Init rows removes all rows in the current table and adds the rows supplied by the tableModel. |
void |
renderRows(TableModel tableModel,
int startRow,
int numRows,
java.lang.String headerRow)
Init rows removes all rows in the current table and adds the rows supplied by the tableModel. |
void |
renderRows(TableModel tableModel,
int startRow,
int numRows,
java.lang.String headerRow,
java.lang.String startCell,
java.lang.String endCell)
Init rows removes all rows in the current table and adds the rows supplied by the tableModel. |
void |
setRowsPerTimeCheck(int rowsPerTimeCheck)
Sets how many rows should be processed before time is checked for an event flush. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public BulkLoader.OnLoadCompleteCallBack onLoadComplete
BulkLoader.OnLoadCompleteCallBack
so the user
may continue processing after the table is fully loaded.
public static int TIME_SLICE
Note: TIME_SLICE does not to anything unless rowsPerTimeCheck is set to something other than Integer.MAX_VALUE.
public int MAX_TIME
Note: MAX_TIME does not to anything unless rowsPerTimeCheck is set to something other than Integer.MAX_VALUE.
Constructor Detail |
---|
public BulkLoader(BulkLoader.BulkLoadable table)
Method Detail |
---|
public void renderRows(java.util.List rows)
rows
- list of rows. Each row itself must be another listpublic void renderRows(TableModel tableModel)
tableModel
- the data tableModelpublic void renderRows(TableModel tableModel, int startRow, int numRows)
tableModel
- the table datastartRow
- the tableModel's start row indexnumRows
- the number of rows to request from the tableModel -1
indicates all of thempublic void renderRows(TableModel tableModel, int startRow, int numRows, java.lang.String headerRow)
tableModel
- the table datastartRow
- the tableModel's start row indexnumRows
- the number of rows to request from the tableModel -1
indicates all of themheaderRow
- the initial row of the table. As this can have custom
styling, it is passed into the rendererpublic void renderRows(TableModel tableModel, int startRow, int numRows, java.lang.String headerRow, java.lang.String startCell, java.lang.String endCell)
tableModel
- the table datastartRow
- the tableModel's start row indexnumRows
- the number of rows to request from the tableModel -1
indicates all of themheaderRow
- the initial row of the table. As this can have custom
styling, it is passed into the rendererstartCell
- the
endCell
- the "public void setRowsPerTimeCheck(int rowsPerTimeCheck)
rowsPerTimeCheck
- public int getRowsPerTimeCheck()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |