|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.widgetideas.table.client.overrides.HTMLTable
com.google.gwt.widgetideas.table.client.overrides.FlexTable
com.google.gwt.widgetideas.table.client.PreloadedTable
public class PreloadedTable
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 |
---|
public PreloadedTable()
Method Detail |
---|
public void setHTML(int row, int column, java.lang.String html)
HTMLTable
setHTML
in class HTMLTable
row
- the cell's rowcolumn
- the cell's columnhtml
- the cell's HTML contentspublic void setPendingHTML(int row, int column, java.lang.String html)
row
- rowcolumn
- columnhtml
- html to setpublic void setText(int row, int column, java.lang.String text)
HTMLTable
setText
in class HTMLTable
row
- the cell's rowcolumn
- cell's columntext
- the cell's text contentspublic void setWidget(int row, int column, com.google.gwt.user.client.ui.Widget widget)
HTMLTable
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.
setWidget
in class HTMLTable
row
- the cell's rowcolumn
- the cell's columnwidget
- The widget to be addedprotected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Panel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |