| java.lang.Object com.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
Field Summary | |
protected int | numColumns Number of columns in the current grid. | protected int | numRows Number of rows in the current grid. |
Constructor Summary | |
public | Grid() Constructor for Grid . | public | Grid(int rows, int columns) Constructs a grid with the requested size. |
Method Summary | |
public boolean | clearCell(int row, int column) Replaces the contents of the specified cell with a single space. | protected Element | createCell() Creates a new, empty cell. | public int | getCellCount(int row) Return number of columns. | public int | getColumnCount() Gets the number of columns in this grid. | public int | getRowCount() Return number of rows. | protected void | prepareCell(int row, int column) Checks that a cell is a valid cell in the table. | protected void | prepareColumn(int column) Checks that the column index is valid. | protected void | prepareRow(int row) Checks that the row index is valid. | public void | resize(int rows, int columns) Resizes the grid. | public void | resizeColumns(int columns) Resizes the grid to the specified number of columns. | public void | resizeRows(int rows) Resizes the grid to the specified number of rows. |
numColumns | protected int numColumns(Code) | | Number of columns in the current grid.
|
numRows | protected int numRows(Code) | | Number of rows in the current grid.
|
Grid | public Grid()(Code) | | Constructor for Grid .
|
Grid | public Grid(int rows, int columns)(Code) | | Constructs a grid with the requested size.
Parameters: rows - the number of rows Parameters: columns - the number of columns throws: IndexOutOfBoundsException - |
clearCell | public boolean clearCell(int row, int column)(Code) | | Replaces the contents of the specified cell with a single space.
Parameters: row - the cell's row Parameters: column - the cell's column throws: IndexOutOfBoundsException - |
createCell | protected Element createCell()(Code) | | Creates a new, empty cell.
|
getCellCount | public int getCellCount(int row)(Code) | | Return number of columns. For grid, row argument is ignored as all grids
are rectangular.
|
getColumnCount | public int getColumnCount()(Code) | | Gets the number of columns in this grid.
the number of columns |
getRowCount | public int getRowCount()(Code) | | Return number of rows.
|
prepareCell | protected void prepareCell(int row, int column)(Code) | | Checks that a cell is a valid cell in the table.
Parameters: row - the cell's row Parameters: column - the cell's column throws: IndexOutOfBoundsException - |
prepareColumn | protected void prepareColumn(int column)(Code) | | Checks that the column index is valid.
Parameters: column - The column index to be checked throws: IndexOutOfBoundsException - if the column is negative |
prepareRow | protected void prepareRow(int row)(Code) | | Checks that the row index is valid.
Parameters: row - The row index to be checked throws: IndexOutOfBoundsException - if the row is negative |
resize | public void resize(int rows, int columns)(Code) | | Resizes the grid.
Parameters: rows - the number of rows Parameters: columns - the number of columns throws: IndexOutOfBoundsException - |
resizeColumns | public void resizeColumns(int columns)(Code) | | Resizes the grid to the specified number of columns.
Parameters: columns - the number of columns throws: IndexOutOfBoundsException - |
resizeRows | public void resizeRows(int rows)(Code) | | Resizes the grid to the specified number of rows.
Parameters: rows - the number of rows throws: IndexOutOfBoundsException - |
Methods inherited from com.google.gwt.user.client.ui.HTMLTable | public void addTableListener(TableListener listener)(Code)(Java Doc) protected void checkCellBounds(int row, int column)(Code)(Java Doc) protected void checkRowBounds(int row)(Code)(Java Doc) public void clear()(Code)(Java Doc) public boolean clearCell(int row, int column)(Code)(Java Doc) protected Element createCell()(Code)(Java Doc) protected Element getBodyElement()(Code)(Java Doc) abstract public int getCellCount(int row)(Code)(Java Doc) public CellFormatter getCellFormatter()(Code)(Java Doc) public int getCellPadding()(Code)(Java Doc) public int getCellSpacing()(Code)(Java Doc) public ColumnFormatter getColumnFormatter()(Code)(Java Doc) native protected int getDOMCellCount(Element tableBody, int row)(Code)(Java Doc) protected int getDOMCellCount(int row)(Code)(Java Doc) protected int getDOMRowCount()(Code)(Java Doc) native protected int getDOMRowCount(Element elem)(Code)(Java Doc) protected Element getEventTargetCell(Event event)(Code)(Java Doc) public String getHTML(int row, int column)(Code)(Java Doc) abstract public int getRowCount()(Code)(Java Doc) public RowFormatter getRowFormatter()(Code)(Java Doc) public String getText(int row, int column)(Code)(Java Doc) public Widget getWidget(int row, int column)(Code)(Java Doc) protected void insertCell(int row, int column)(Code)(Java Doc) protected void insertCells(int row, int column, int count)(Code)(Java Doc) protected int insertRow(int beforeRow)(Code)(Java Doc) protected boolean internalClearCell(Element td, boolean clearInnerHTML)(Code)(Java Doc) public boolean isCellPresent(int row, int column)(Code)(Java Doc) public Iterator<Widget> iterator()(Code)(Java Doc) public void onBrowserEvent(Event event)(Code)(Java Doc) abstract protected void prepareCell(int row, int column)(Code)(Java Doc) protected void prepareColumn(int column)(Code)(Java Doc) abstract protected void prepareRow(int row)(Code)(Java Doc) public boolean remove(Widget widget)(Code)(Java Doc) protected void removeCell(int row, int column)(Code)(Java Doc) protected void removeRow(int row)(Code)(Java Doc) public void removeTableListener(TableListener listener)(Code)(Java Doc) public void setBorderWidth(int width)(Code)(Java Doc) protected void setCellFormatter(CellFormatter cellFormatter)(Code)(Java Doc) public void setCellPadding(int padding)(Code)(Java Doc) public void setCellSpacing(int spacing)(Code)(Java Doc) protected void setColumnFormatter(ColumnFormatter formatter)(Code)(Java Doc) public void setHTML(int row, int column, String html)(Code)(Java Doc) protected void setRowFormatter(RowFormatter rowFormatter)(Code)(Java Doc) public void setText(int row, int column, String text)(Code)(Java Doc) public void setWidget(int row, int column, Widget widget)(Code)(Java Doc)
|
|
|