com.google.gwt.widgetideas.table.client
Class FixedWidthGridBulkRenderer

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.TableBulkRenderer
      extended by com.google.gwt.widgetideas.table.client.GridBulkRenderer
          extended by com.google.gwt.widgetideas.table.client.FixedWidthGridBulkRenderer

public class FixedWidthGridBulkRenderer
extends GridBulkRenderer

Helper class to bulk load FixedWidthGrid tables.


Nested Class Summary
protected  class FixedWidthGridBulkRenderer.ChainingCallback
          Chaining callback for fixed width grid.
 
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.TableBulkRenderer
TableBulkRenderer.CellRenderer, TableBulkRenderer.RenderingOptions, TableBulkRenderer.StringCellRenderer
 
Field Summary
 
Fields inherited from class com.google.gwt.widgetideas.table.client.TableBulkRenderer
MAX_TIME, ROWS_PER_TIME_CHECK, TIME_SLICE
 
Constructor Summary
FixedWidthGridBulkRenderer(FixedWidthGrid table, int numColumns)
          Constructor.
 
Method Summary
protected  void addChainingCallback(TableBulkRenderer.RenderingOptions options)
          Adds the chaining callback to the given options.
protected  com.google.gwt.user.client.Element getBulkLoadedGhostRow(HTMLTable table)
          Gets the new ghost element from the table.
protected  void renderRows(java.util.Iterator<java.util.Iterator<java.lang.Object>> iterator, TableBulkRenderer.RenderingOptions options)
          Work horse protected rendering method.
 
Methods inherited from class com.google.gwt.widgetideas.table.client.TableBulkRenderer
getCellRenderer, getTable, renderRows, renderRows, renderRows, renderRows, renderRows, setCellRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedWidthGridBulkRenderer

public FixedWidthGridBulkRenderer(FixedWidthGrid table,
                                  int numColumns)
Constructor. Takes in the number of columns in the table to allow efficient creation of the header row.

Parameters:
table - table to be bulk rendered
numColumns - number of columns in table
Method Detail

addChainingCallback

protected void addChainingCallback(TableBulkRenderer.RenderingOptions options)
Description copied from class: GridBulkRenderer
Adds the chaining callback to the given options. Pulled out to allow subclasses to override.

Overrides:
addChainingCallback in class GridBulkRenderer
Parameters:
options - options to add the chaining callback to

getBulkLoadedGhostRow

protected com.google.gwt.user.client.Element getBulkLoadedGhostRow(HTMLTable table)
Gets the new ghost element from the table.

Parameters:
table - the table
Returns:
the new ghost row

renderRows

protected void renderRows(java.util.Iterator<java.util.Iterator<java.lang.Object>> iterator,
                          TableBulkRenderer.RenderingOptions options)
Description copied from class: TableBulkRenderer
Work horse protected rendering method.

Overrides:
renderRows in class GridBulkRenderer
Parameters:
iterator - Iterator of row iterators
options - rendering options for this table