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

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.widgetideas.table.client.overrides.HTMLTable
                  extended by com.google.gwt.widgetideas.table.client.overrides.FlexTable
                      extended by com.google.gwt.widgetideas.table.client.PreloadedTable
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.SourcesTableEvents

public class PreloadedTable
extends FlexTable

A PreloadedTable allow users to configure a table with HTML cell data before rendering the table. This can lead to faster performance for large tables.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.overrides.FlexTable
FlexTable.FlexCellFormatter
 
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.overrides.HTMLTable
HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatter, HTMLTable.WidgetMapper
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
PreloadedTable()
           
 
Method Summary
protected  void onLoad()
           
 void setHTML(int row, int column, java.lang.String html)
          Sets the HTML contents of the specified cell.
 void setPendingHTML(int row, int column, java.lang.String html)
          Sets cells HTML that will be included in the table upon initialization.
 void setText(int row, int column, java.lang.String text)
          Sets the text within the specified cell.
 void setWidget(int row, int column, com.google.gwt.user.client.ui.Widget widget)
          Sets the widget within the specified cell.
 
Methods inherited from class com.google.gwt.widgetideas.table.client.overrides.FlexTable
addCell, addCells, getCellCount, getColumnIndex, getFlexCellFormatter, getRowCount, insertCell, insertRow, prepareCell, prepareRow, removeCell, removeCells, removeRow
 
Methods inherited from class com.google.gwt.widgetideas.table.client.overrides.HTMLTable
addTableListener, checkCellBounds, checkRowBounds, cleanCell, clear, clearAll, clearCell, createCell, getBodyElement, getCellContainer, getCellContainer, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getEventTargetRow, getHTML, getRowFormatter, getRowIndex, getText, getWidget, getWidgetMap, insertCells, internalClearCell, isCellPresent, iterator, onBrowserEvent, prepareColumn, remove, removeTableListener, setBodyElement, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setClearText, setColumnFormatter, setElement, setRowFormatter
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onDetach, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreloadedTable

public PreloadedTable()
Method Detail

setHTML

public void setHTML(int row,
                    int column,
                    java.lang.String html)
Description copied from class: HTMLTable
Sets the HTML contents of the specified cell.

Overrides:
setHTML in class HTMLTable
Parameters:
row - the cell's row
column - the cell's column
html - the cell's HTML contents

setPendingHTML

public void setPendingHTML(int row,
                           int column,
                           java.lang.String html)
Sets cells HTML that will be included in the table upon initialization.

Parameters:
row - row
column - column
html - html to set

setText

public void setText(int row,
                    int column,
                    java.lang.String text)
Description copied from class: HTMLTable
Sets the text within the specified cell.

Overrides:
setText in class HTMLTable
Parameters:
row - the cell's row
column - cell's column
text - the cell's text contents

setWidget

public void setWidget(int row,
                      int column,
                      com.google.gwt.user.client.ui.Widget widget)
Description copied from class: HTMLTable
Sets the widget within the specified cell.

Inherited implementations may either throw IndexOutOfBounds exception if the cell does not exist, or allocate a new cell to store the content.

FlexTable will automatically allocate the cell at the correct location and then set the widget. Grid will set the widget if and only if the cell is within the Grid's bounding box.

Overrides:
setWidget in class HTMLTable
Parameters:
row - the cell's row
column - the cell's column
widget - The widget to be added

onLoad

protected void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Panel