|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.widgetideas.table.client.TableController
public class TableController
A controller that interfaces between a TableModel
and one or more
views of the 2-dimensional data. This model does not include any internal
caching, and as such it will send a new request to the TableModel
with every request for rows.
Nested Class Summary | |
---|---|
class |
TableController.ControllableTableCallback
A callback that automatically updates a ControllableTable . |
Constructor Summary | |
---|---|
TableController(TableModel tableModel)
Constructor. |
Method Summary | |
---|---|
void |
addControllableTable(ControllableTable controllableTable)
Add a new ControllableTable . |
int |
getNumRows()
|
TableModel |
getTableModel()
|
void |
insertRow(int beforeRow)
Insert a row of data. |
void |
removeControllableTable(ControllableTable controllableTable)
Remove a ControllableTable . |
void |
removeRow(int row)
Remove a row of data and decrement all rows after the removed row. |
void |
setData(int row,
int column,
java.lang.Object data)
Set data in the controller. |
void |
setNumRows(int numRows)
Set the total number of rows. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableController(TableModel tableModel)
tableModel
- the underlying TableModel
Method Detail |
---|
public void addControllableTable(ControllableTable controllableTable)
ControllableTable
.
controllableTable
- the ControllableTable
widget to addpublic int getNumRows()
public TableModel getTableModel()
TableModel
public void insertRow(int beforeRow)
beforeRow
- the row to insertpublic void removeControllableTable(ControllableTable controllableTable)
ControllableTable
.
controllableTable
- the ControllableTable
to removepublic void removeRow(int row)
row
- the row to remove
java.lang.IndexOutOfBoundsException
public void setData(int row, int column, java.lang.Object data)
row
- the row indexcolumn
- the column indexdata
- the data to setpublic void setNumRows(int numRows)
numRows
- the total number of rows
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |