|
||||||||||
| 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.Composite
com.google.gwt.user.cellview.client.AbstractHasData<T>
com.google.gwt.user.cellview.client.AbstractCellTable<T>
com.google.gwt.user.cellview.client.DataGrid<T>
com.github.gwtbootstrap.client.ui.DataGrid<T>
T - the data type of each rowpublic class DataGrid<T>
The Bootstrap style DataGrid
| Nested Class Summary | |
|---|---|
static interface |
DataGrid.Resources
Basic GWT-Bootstrap style Table Resource. |
static interface |
DataGrid.SelectableResources
Selectable GWT-Bootstrap style Table Resource. |
static interface |
DataGrid.SelectableStyle
|
static interface |
DataGrid.Style
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.cellview.client.HasKeyboardPagingPolicy |
|---|
HasKeyboardPagingPolicy.KeyboardPagingPolicy |
| Nested classes/interfaces inherited from interface com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy |
|---|
HasKeyboardSelectionPolicy.KeyboardSelectionPolicy |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DataGrid()
Constructs a table with a default page size of 50. |
|
DataGrid(int pageSize)
Constructs a table with the given page size. |
|
DataGrid(int pageSize,
DataGrid.Resources resources)
Constructs a table with the given page size with the specified DataGrid.Resources. |
|
DataGrid(int pageSize,
DataGrid.Resources resources,
ProvidesKey<T> keyProvider)
Constructs a table with the given page size, the specified DataGrid.Resources, and the given key provider. |
|
DataGrid(int pageSize,
DataGrid.Resources resources,
ProvidesKey<T> keyProvider,
Widget loadingIndicator)
Constructs a table with the given page size, the specified DataGrid.Resources, and the given key provider. |
|
DataGrid(int pageSize,
ProvidesKey<T> keyProvider)
Constructs a table with the given page size and the given key provider. |
|
| Method Summary | |
|---|---|
void |
addStyle(Style style)
Adds the provided style to the widget. |
void |
removeStyle(Style style)
Removes the provided style from the widget. |
void |
setBordered(boolean bordered)
set Bordered style |
void |
setCondensed(boolean condensed)
set Condensed style |
void |
setHideOn(Device device)
Sets the kind of device, this widget is hidden on. |
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on. |
void |
setStriped(boolean striped)
set Striped style |
void |
setStyle(Style style)
Replaces the widet's style with the provided one. |
| Methods inherited from class com.google.gwt.user.cellview.client.DataGrid |
|---|
addColumnStyleName, clearTableWidth, doSetColumnWidth, doSetHeaderVisible, getTableBodyElement, getTableFootElement, getTableHeadElement, onLoadingStateChanged, onResize, refreshColumnWidths, removeColumnStyleName, setEmptyTableWidget, setLoadingIndicator, setMinimumTableWidth, setTableWidth |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public DataGrid()
public DataGrid(int pageSize)
pageSize - the page size
public DataGrid(int pageSize,
ProvidesKey<T> keyProvider)
key provider.
pageSize - the page sizekeyProvider - an instance of ProvidesKey
public DataGrid(int pageSize,
DataGrid.Resources resources)
DataGrid.Resources.
pageSize - the page sizeresources - the resources to use for this widget
public DataGrid(int pageSize,
DataGrid.Resources resources,
ProvidesKey<T> keyProvider)
DataGrid.Resources, and the given key provider.
pageSize - the page sizeresources - the resources to use for this widgetkeyProvider - an instance of ProvidesKey
public DataGrid(int pageSize,
DataGrid.Resources resources,
ProvidesKey<T> keyProvider,
Widget loadingIndicator)
DataGrid.Resources, and the given key provider.
pageSize - the page sizeresources - the resources to use for this widgetkeyProvider - an instance of ProvidesKeyloadingIndicator - the widget to use as a loading indicator, or null
to disable| Method Detail |
|---|
public void setStriped(boolean striped)
striped - true:set false:removepublic void setBordered(boolean bordered)
bordered - true:set false:removepublic void setCondensed(boolean condensed)
condensed - true:set false:removepublic void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setHideOn(Device)public void setHideOn(Device device)
The widget is not hidden on any other device.
Only works if responsive design is turned on!
setHideOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setShowOn(Device)public void setStyle(Style style)
setStyle in interface HasStylestyle - the style to be applied to the Widget.public void addStyle(Style style)
addStyle in interface HasStylestyle - the style to be added to the Widget.public void removeStyle(Style style)
removeStyle in interface HasStylestyle - the style to be removed from the Widget.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||