public class CellTable<T> extends CellTable<T> implements HasResponsiveness
CellTable.BasicResources, CellTable.Resources, CellTable.Style
AbstractCellTable.CellTableKeyboardSelectionHandler<T>, AbstractCellTable.TableSectionChangeHandler
AbstractHasData.DefaultKeyboardSelectionHandler<T>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasKeyboardPagingPolicy.KeyboardPagingPolicy
HasKeyboardSelectionPolicy.KeyboardSelectionPolicy
DEBUG_ID_PREFIX
Constructor and Description |
---|
CellTable()
Constructs a table with a default page size of 15.
|
CellTable(int pageSize)
Constructs a table with the given page size.
|
CellTable(int pageSize,
CellTable.Resources resources)
Constructs a table with the given page size with the specified
Resources . |
CellTable(int pageSize,
CellTable.Resources resources,
ProvidesKey<T> keyProvider,
Widget loadingIndicator)
Constructs a table with the specified page size,
Resources , key
provider, and loading indicator. |
CellTable(int pageSize,
CellTable.Resources resources,
ProvidesKey<T> keyProvider,
Widget loadingIndicator,
boolean enableColGroup,
boolean attachLoadingPanel)
Constructs a table with the specified page size,
Resources , key
provider, and loading indicator. |
CellTable(int pageSize,
ProvidesKey<T> keyProvider)
Constructs a table with the given page size and the given
key provider . |
CellTable(ProvidesKey<T> keyProvider)
Constructs a table with a default page size of 15, and the given
key provider . |
Modifier and Type | Method and Description |
---|---|
void |
setBordered(boolean bordered) |
void |
setCondensed(boolean condensed) |
void |
setHiddenOn(DeviceSize deviceSize)
Sets the devices that the element is hidden on
|
void |
setHover(boolean hover) |
void |
setStriped(boolean striped) |
void |
setVisibleOn(DeviceSize deviceSize)
Sets the devices that the element is visible on
|
addColumnStyleName, doAttachChildren, doDetachChildren, doSetColumnWidth, doSetHeaderVisible, getBodyHeight, getHeaderHeight, getTableBodyElement, getTableFootElement, getTableHeadElement, getTableLoadingSection, onLoadingStateChanged, onTableBodyChange, onTableFootChange, onTableHeadChange, refreshColumnWidths, removeColumnStyleName, setColumnWidth, setColumnWidth, setEmptyTableWidget, setLoadingIndicator, setTableLayoutFixed, setWidth
addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnSortHandler, addRowHoverHandler, clearColumnWidth, clearColumnWidth, convertToElements, dependsOnSelection, flush, getChildContainer, getChildElement, getColumn, getColumnCount, getColumnIndex, getColumnSortList, getColumnWidth, getEmptyTableWidget, getFooter, getFooterBuilder, getHeader, getHeaderBuilder, getKeyboardSelectedColumn, getKeyboardSelectedElement, getKeyboardSelectedSubRow, getLoadingIndicator, getRealColumnCount, getResources, getRowElement, getRowStyles, getSubRowElement, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, isAutoFooterRefreshDisabled, isAutoHeaderRefreshDisabled, isKeyboardNavigationSuppressed, isSkipRowHoverCheck, isSkipRowHoverFloatElementCheck, isSkipRowHoverStyleUpdate, onBlur, onBrowserEvent2, onFocus, redrawFooters, redrawHeaders, removeColumn, removeColumn, renderRowValues, renderRowValuesLegacy, replaceAllChildren, replaceChildren, resetFocusOnCell, setAutoFooterRefreshDisabled, setAutoHeaderRefreshDisabled, setColumnWidth, setColumnWidth, setFooterBuilder, setHeaderBuilder, setKeyboardSelected, setKeyboardSelectedColumn, setKeyboardSelectedColumn, setKeyboardSelectedRow, setKeyboardSelectedRow, setRowStyles, setSkipRowHoverCheck, setSkipRowHoverFloatElementCheck, setSkipRowHoverStyleUpdate, setTableBuilder
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, redraw, redrawRow, setAccessKey, setFocus, setFocusable, setKeyboardPagingPolicy, setKeyboardSelectedRow, setKeyboardSelectionHandler, setKeyboardSelectionPolicy, setPageSize, setPageStart, setRowCount, setRowCount, setRowData, setRowData, setSelected, setSelectionModel, setSelectionModel, setTabIndex, setVisibleRange, setVisibleRange, setVisibleRangeAndClearData
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public CellTable()
public CellTable(int pageSize)
pageSize
- the page sizepublic CellTable(ProvidesKey<T> keyProvider)
key provider
.keyProvider
- an instance of ProvidesKey, or null if the record
object should act as its own keypublic CellTable(int pageSize, CellTable.Resources resources)
Resources
.pageSize
- the page sizeresources
- the resources to use for this widgetpublic CellTable(int pageSize, ProvidesKey<T> keyProvider)
key provider
.pageSize
- the page sizekeyProvider
- an instance of ProvidesKey, or null if the record
object should act as its own keypublic CellTable(int pageSize, CellTable.Resources resources, ProvidesKey<T> keyProvider, Widget loadingIndicator)
Resources
, key
provider, and loading indicator.pageSize
- the page sizeresources
- the resources to use for this widgetkeyProvider
- an instance of ProvidesKey, or null if the record
object should act as its own keyloadingIndicator
- the widget to use as a loading indicator, or null
to disablepublic CellTable(int pageSize, CellTable.Resources resources, ProvidesKey<T> keyProvider, Widget loadingIndicator, boolean enableColGroup, boolean attachLoadingPanel)
Resources
, key
provider, and loading indicator.pageSize
- the page sizeresources
- the resources to use for this widgetkeyProvider
- an instance of ProvidesKey, or null if the record
object should act as its own keyloadingIndicator
- the widget to use as a loading indicator, or null
to disableenableColGroup
- enable colgroup element. This is used when the table is using fixed
layout and when column style is added. Ignoring this element will boost rendering
performance. Note that when colgroup is disabled, CellTable.setColumnWidth(com.google.gwt.user.cellview.client.Column<T, ?>, java.lang.String)
attachLoadingPanel
- attaching the table section that contains the empty table widget and
the loading indicator. Attaching this to the table significantly improve the rendering
performance in webkit based browsers but also introduces significantly larger latency
in IE. If the panel is not attached to the table, it won't be displayed. But the user
can call CellTable.getTableLoadingSection()
and attach it to other elements outside the
table elementpublic void setVisibleOn(DeviceSize deviceSize)
HasResponsiveness
setVisibleOn
in interface HasResponsiveness
deviceSize
- device sizeDeviceSize
public void setHiddenOn(DeviceSize deviceSize)
HasResponsiveness
setHiddenOn
in interface HasResponsiveness
deviceSize
- device sizesDeviceSize
public void setStriped(boolean striped)
public void setBordered(boolean bordered)
public void setCondensed(boolean condensed)
public void setHover(boolean hover)
Copyright © 2017. All rights reserved.