public class SmartTable extends FlexTable
FlexTable with a number of extremely useful utility methods.| Modifier and Type | Class and Description |
|---|---|
class |
SmartTable.CellMutator
Performs a number of convenient modifications on a cell, each returning the mutator instance
for very legible chaining of modifications.
|
FlexTable.FlexCellFormatterHTMLTable.Cell, HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatterUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
SmartTable() |
SmartTable(int cellPadding,
int cellSpacing) |
SmartTable(String styleName,
int cellPadding,
int cellSpacing) |
| Modifier and Type | Method and Description |
|---|---|
int |
addText(Object text,
int colSpan,
String... styles)
Adds text to the bottom row of this table in column zero, with the specified column span and
style.
|
int |
addWidget(Widget widget,
int colSpan,
String... styles)
Adds a widget to the bottom row of this table in column zero, with the specified column span
and style.
|
SmartTable.CellMutator |
cell(int row,
int col)
Gets a mutator for the given cell.
|
void |
removeStyleNames(int row,
int column,
String... styles)
Removes the specified style names on the specified row and column.
|
void |
setColumnCellStyles(int column,
String... styles)
Sets the style of all cells in the given column to the given values.
|
void |
setHTML(int row,
int column,
String text,
int colSpan,
String... styles)
Sets the HTML in the specified cell, with the specified style and column span.
|
void |
setStyleNames(int row,
int column,
String... styles)
Configures the specified style names on the specified row and column.
|
void |
setText(int row,
int column,
Object text,
int colSpan,
String... styles)
Sets the text in the specified cell, with the specified style and column span.
|
void |
setWidget(int row,
int column,
Widget widget,
int colSpan,
String... styles)
Sets the widget in the specified cell, with the specified style and column span.
|
addCell, getCellCount, getFlexCellFormatter, getRowCount, insertCell, insertRow, removeAllRows, removeCell, removeCells, removeRowaddClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addTableListener, clear, clear, clearCell, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getHTML, getRowFormatter, getText, getWidget, isCellPresent, iterator, remove, removeTableListener, setBorderWidth, setCellPadding, setCellSpacing, setHTML, setHTML, setText, setWidget, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, sinkBitlessEvent, toString, unsinkEventsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventpublic SmartTable()
public SmartTable(int cellPadding,
int cellSpacing)
public SmartTable(String styleName, int cellPadding, int cellSpacing)
public void setText(int row,
int column,
Object text,
int colSpan,
String... styles)
text - an object whose string value will be displayed.public void setHTML(int row,
int column,
String text,
int colSpan,
String... styles)
public void setWidget(int row,
int column,
Widget widget,
int colSpan,
String... styles)
public int addText(Object text, int colSpan, String... styles)
text - an object whose string value will be displayed.public int addWidget(Widget widget, int colSpan, String... styles)
public void setStyleNames(int row,
int column,
String... styles)
public void setColumnCellStyles(int column,
String... styles)
public void removeStyleNames(int row,
int column,
String... styles)
public SmartTable.CellMutator cell(int row, int col)
Copyright © 2013. All Rights Reserved.