T
- the data type of each rowpublic class DataGrid<T> extends DataGrid<T> implements HasStyle, IsResponsive
Modifier and Type | Class and Description |
---|---|
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 |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasKeyboardPagingPolicy.KeyboardPagingPolicy
HasKeyboardSelectionPolicy.KeyboardSelectionPolicy
DEBUG_ID_PREFIX
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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 |
setHover(boolean hover)
set Hover style
|
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.
|
addColumnStyleName, clearTableWidth, doSetColumnWidth, doSetHeaderVisible, getTableBodyElement, getTableFootElement, getTableHeadElement, onLoadingStateChanged, onResize, refreshColumnWidths, removeColumnStyleName, setEmptyTableWidget, setLoadingIndicator, setMinimumTableWidth, setTableWidth
addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnSortHandler, clearColumnWidth, convertToElements, dependsOnSelection, doSelection, flush, getChildContainer, getColumn, getColumnCount, getColumnIndex, getColumnSortList, getColumnWidth, getEmptyTableWidget, getKeyboardSelectedElement, getLoadingIndicator, getRowElement, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, isKeyboardNavigationSuppressed, onBlur, onBrowserEvent2, onFocus, redraw, redrawFooters, redrawHeaders, removeColumn, removeColumn, renderRowValues, replaceAllChildren, resetFocusOnCell, setColumnWidth, setColumnWidth, setKeyboardSelected, setRowStyles, setSelected
addCellPreviewHandler, addLoadingStateChangeHandler, addRangeChangeHandler, addRowCountChangeHandler, cellConsumesEventType, checkRowBounds, getAccessKey, getDisplayedItem, getDisplayedItems, getKeyboardPagingPolicy, getKeyboardSelectedRow, getKeyboardSelectionPolicy, getKeyProvider, getPageSize, getPageStart, getRowContainer, getRowCount, getSelectionModel, getTabIndex, getValueKey, getVisibleItem, getVisibleItemCount, getVisibleItems, getVisibleRange, isRowCountExact, isRowWithinBounds, onBrowserEvent, onUnload, onUpdateSelection, replaceChildren, setAccessKey, setFocus, setFocusable, setKeyboardPagingPolicy, setKeyboardSelectionPolicy, setPageSize, setPageStart, setRowCount, setRowCount, setRowData, setRowData, setSelectionModel, setSelectionModel, setTabIndex, setVisibleRange, setVisibleRange, setVisibleRangeAndClearData
getWidget, initWidget, isAttached, onAttach, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public DataGrid()
public DataGrid(int pageSize)
pageSize
- the page sizepublic DataGrid(int pageSize, ProvidesKey<T> keyProvider)
key provider
.pageSize
- the page sizekeyProvider
- an instance of ProvidesKeypublic DataGrid(int pageSize, DataGrid.Resources resources)
DataGrid.Resources
.pageSize
- the page sizeresources
- the resources to use for this widgetpublic 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 ProvidesKeypublic 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 disablepublic 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 setHover(boolean hover)
hover
- 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 IsResponsive
Configurator.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 IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setShowOn(Device)
public void removeStyle(Style style)
removeStyle
in interface HasStyle
style
- the style to be removed from the Widget.Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.