|
||||||||||
| 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.user.client.ui.HTMLTable
com.google.gwt.user.client.ui.Grid
public class Grid
A rectangular grid that can contain text, html, or a child
Widget within its cells. It must be
resized explicitly to the desired number of rows and columns.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.HTMLTable |
|---|
HTMLTable.Cell, HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatter |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Grid()
Constructor for Grid. |
|
Grid(int rows,
int columns)
Constructs a grid with the requested size. |
|
| Method Summary | |
|---|---|
boolean |
clearCell(int row,
int column)
Replaces the contents of the specified cell with a single space. |
int |
getCellCount(int row)
Return number of columns. |
int |
getColumnCount()
Gets the number of columns in this grid. |
int |
getRowCount()
Return number of rows. |
int |
insertRow(int beforeRow)
Inserts a new row into the table. |
void |
removeRow(int row)
Removes the specified row from the table. |
void |
resize(int rows,
int columns)
Resizes the grid. |
void |
resizeColumns(int columns)
Resizes the grid to the specified number of columns. |
void |
resizeRows(int rows)
Resizes the grid to the specified number of rows. |
| Methods inherited from class com.google.gwt.user.client.ui.HTMLTable |
|---|
addClickHandler, addTableListener, clear, clear, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getHTML, getRowFormatter, getText, getWidget, isCellPresent, iterator, remove, removeTableListener, setBorderWidth, setCellPadding, setCellSpacing, setHTML, setText, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public Grid()
Grid.
public Grid(int rows,
int columns)
rows - the number of rowscolumns - the number of columns
java.lang.IndexOutOfBoundsException| Method Detail |
|---|
public boolean clearCell(int row,
int column)
clearCell in class HTMLTablerow - the cell's rowcolumn - the cell's column
java.lang.IndexOutOfBoundsExceptionpublic int getCellCount(int row)
getCellCount in class HTMLTablerow - the row whose cells are to be counted
public int getColumnCount()
public int getRowCount()
getRowCount in class HTMLTablepublic int insertRow(int beforeRow)
resize(int, int) or resizeRows(int) as they are more
efficient.
beforeRow - the index before which the new row will be inserted
java.lang.IndexOutOfBoundsExceptionpublic void removeRow(int row)
HTMLTable
row - the index of the row to be removed
public void resize(int rows,
int columns)
rows - the number of rowscolumns - the number of columns
java.lang.IndexOutOfBoundsExceptionpublic void resizeColumns(int columns)
columns - the number of columns
java.lang.IndexOutOfBoundsExceptionpublic void resizeRows(int rows)
rows - the number of rows
java.lang.IndexOutOfBoundsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||