|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HasWidgetsInCells
Interface for cell-type widgets (usually panels) that contain child widgets
in grid cells. Those children are accessible by their row and column
coordinates. In addition to the HasWidgets
methods, this interfaces
includes row and column related methods (such as for accessing a child widget
by its row and column coordinate).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
Method Summary | |
---|---|
boolean |
clearCell(int row,
int column)
Clears the specified cell, removing its widget (if any). |
int |
getCellCount(int row)
Gets the number of cells in the specified row. |
int |
getRowCount()
Gets the number of rows in the grid. |
com.google.gwt.user.client.ui.Widget |
getWidget(int row,
int column)
Gets the widget located in the specified cell. |
boolean |
isCellPresent(int row,
int column)
Returns whether or not the specified cell exists (not necessarily whether or not it contains a widget). |
void |
setRowCount(int rows)
Sets the number of rows in the grid, resizing the grid to have that number of rows. |
void |
setWidget(int row,
int column,
com.google.gwt.user.client.ui.Widget widget)
Sets the widget within the specified cell, removing any existing widget that was located in that cell. |
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
add, clear, iterator, remove |
Method Detail |
---|
int getRowCount()
void setRowCount(int rows)
rows
- The new number of rows in the grid.boolean clearCell(int row, int column)
row
- The cell's 0-based rowcolumn
- The cell's 0-based column
true
if the widget was removed.int getCellCount(int row)
row
- The 0-based row
boolean isCellPresent(int row, int column)
row
- The cell's 0-based rowcolumn
- The cell's 0-based column
com.google.gwt.user.client.ui.Widget getWidget(int row, int column)
row
- The cell's 0-based rowcolumn
- The cell's 0-based column
void setWidget(int row, int column, com.google.gwt.user.client.ui.Widget widget)
row
- The cell's 0-based rowcolumn
- The cell's 0-based columnwidget
- The widget to set in that cell.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |