|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.widgetideas.table.client.TableModel
com.google.gwt.widgetideas.table.client.MutableTableModel
com.google.gwt.widgetideas.table.client.MutableTableModel.TableModelAdaptor
public static class MutableTableModel.TableModelAdaptor
TableModelAdapter
wraps a read-only TableModel
in a
MutableTableModel
wrapper, throwing
UnsupportedOperationException
when appropriate. This was done to
simplify the design of tables, such as ScrollTable
which may or may
not have mutable data.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.MutableTableModel |
---|
MutableTableModel.TableModelAdaptor |
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.TableModel |
---|
TableModel.Callback, TableModel.ClientResponse, TableModel.ClientTableModel, TableModel.ListTableModel, TableModel.Request, TableModel.Response |
Field Summary |
---|
Fields inherited from class com.google.gwt.widgetideas.table.client.TableModel |
---|
ALL_ROWS |
Constructor Summary | |
---|---|
MutableTableModel.TableModelAdaptor(TableModel readOnlyTableModel)
Constructor for MutableTableModel.TableModelAdaptor . |
Method Summary | |
---|---|
void |
onRowInserted(int beforeRow)
Event fired when a row is inserted. |
void |
onRowRemoved(int row)
Event fired when a row is removed. |
void |
onSetData(int firstRow,
java.util.Collection rows)
Event fired when the local data changes. |
void |
onSetData(int row,
int cell,
java.lang.Object data)
Event fired when the local data changes. |
void |
requestRows(TableModel.Request request,
TableModel.Callback callback)
Generate a Response based on a specific Request. |
Methods inherited from class com.google.gwt.widgetideas.table.client.TableModel |
---|
requestRows |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MutableTableModel.TableModelAdaptor(TableModel readOnlyTableModel)
MutableTableModel.TableModelAdaptor
.
readOnlyTableModel
- the underlying read only table modelMethod Detail |
---|
public void onRowInserted(int beforeRow)
MutableTableModel
onRowInserted
in class MutableTableModel
beforeRow
- the row index of the new rowpublic void onRowRemoved(int row)
MutableTableModel
onRowRemoved
in class MutableTableModel
row
- the row index of the removed rowpublic void onSetData(int row, int cell, java.lang.Object data)
MutableTableModel
onSetData
in class MutableTableModel
row
- the row indexcell
- the cell indexdata
- the new contents of the cellpublic void onSetData(int firstRow, java.util.Collection rows)
MutableTableModel
onSetData
in class MutableTableModel
firstRow
- the first row indexrows
- the 2D collection of row datapublic void requestRows(TableModel.Request request, TableModel.Callback callback)
TableModel
requestRows
in class TableModel
request
- the requestcallback
- the callback to use for the response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |