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

All Known Subinterfaces:
HasAutoFitColumn, HasFixedColumnWidth, HasRowPaging, HasSortableColumns
All Known Implementing Classes:
BulkEditablePagingGrid, BulkLoadedTable, EditableGridView, FixedWidthFlexTable, FixedWidthGrid, FlexTable, Grid, GridView, HoverGrid, HTMLTable, PreloadedTable, SortableFixedWidthGrid

public interface HasColumns

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 getElement()
          Gets a handle to the object's underlying DOM element.
 com.google.gwt.user.client.Element getEventTargetCell(com.google.gwt.user.client.Event event)
          Determines the TD associated with the specified event.
 int getOffsetWidth()
          Gets the object's offset width in pixels.
 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.
 void setStyleName(java.lang.String style)
          Clears all of the object's style names and sets it to the given style.
 

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

getElement

com.google.gwt.user.client.Element getElement()
Gets a handle to the object's underlying DOM element.

Returns:
the object's browser element

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.

getOffsetWidth

int getOffsetWidth()
Gets the object's offset width in pixels. This is the total width of the object, including decorations such as border, margin, and padding.

Returns:
the object's offset width

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

setStyleName

void setStyleName(java.lang.String style)
Clears all of the object's style names and sets it to the given style.

Parameters:
style - the new style name