com.google.gwt.widgetideas.table.client
Interface HasTableCells

All Known Subinterfaces:
HasAutoFitColumn, HasFixedColumnWidth, HasRowPaging
All Known Implementing Classes:
EditablePagingGrid, FixedWidthFlexTable, FixedWidthGrid, FlexTable, Grid, HTMLTable, PagingGrid, PreloadedTable, SelectionGrid, SortableFixedWidthGrid

public interface HasTableCells

An interface for tables. All of these methods are implemented in the HTMLTable class.


Method Summary
 int getCellCount(int row)
          Gets the number of cells in a given row.
 int getCellPadding()
          Gets the amount of padding that is added around all cells.
 int getCellSpacing()
          Gets the amount of spacing that is added around all cells.
 com.google.gwt.user.client.Element getEventTargetCell(com.google.gwt.user.client.Event event)
          Determines the TD associated with the specified event.
 void setCellPadding(int padding)
          Sets the amount of padding to be added around all cells.
 void setCellSpacing(int spacing)
          Sets the amount of spacing to be added around all cells.
 

Method Detail

getCellCount

int getCellCount(int row)
Gets the number of cells in a given row.

Parameters:
row - the row whose cells are to be counted
Returns:
the number of cells present in the row

getCellPadding

int getCellPadding()
Gets the amount of padding that is added around all cells.

Returns:
the cell padding, in pixels

getCellSpacing

int getCellSpacing()
Gets the amount of spacing that is added around all cells.

Returns:
the cell spacing, in pixels

getEventTargetCell

com.google.gwt.user.client.Element getEventTargetCell(com.google.gwt.user.client.Event event)
Determines the TD associated with the specified event.

Parameters:
event - the event to be queried
Returns:
the TD associated with the event, or null if none is found.

setCellPadding

void setCellPadding(int padding)
Sets the amount of padding to be added around all cells.

Parameters:
padding - the cell padding, in pixels

setCellSpacing

void setCellSpacing(int spacing)
Sets the amount of spacing to be added around all cells.

Parameters:
spacing - the cell spacing, in pixels