public abstract class AbstractDataTable<T> extends gwt.material.design.client.base.MaterialWidget implements DataDisplay<T>
DataView
,
this will handle scaffolding, event registration, and attachment.Modifier and Type | Class and Description |
---|---|
static class |
AbstractDataTable.DefaultTableScaffolding |
gwt.material.design.client.base.MaterialWidget.Feature
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
protected gwt.material.design.client.events.HandlerRegistry |
handlerRegistry |
protected TableScaffolding |
scaffolding |
protected DataView<T> |
view |
Constructor and Description |
---|
AbstractDataTable() |
AbstractDataTable(DataView<T> view) |
AbstractDataTable(DataView<T> view,
TableScaffolding scaffolding) |
AbstractDataTable(TableScaffolding scaffolding) |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(CategoryComponent category)
Explicitly add a
CategoryComponent , which will be drawn to the table. |
void |
addCategory(String category)
Explicitly add a category, which will be drawn to the table.
|
com.google.gwt.event.shared.HandlerRegistration |
addCategoryClosedHandler(CategoryClosedHandler handler)
Add a handler that triggers when a category is closed.
|
com.google.gwt.event.shared.HandlerRegistration |
addCategoryOpenedHandler(CategoryOpenedHandler handler)
Add a handler that triggers when a category is opened.
|
void |
addColumn(Column<T,?> column)
Add a new column to the data view.
|
void |
addColumn(Column<T,?> column,
String header)
Add a new column to the data view.
|
com.google.gwt.event.shared.HandlerRegistration |
addColumnSortHandler(ColumnSortHandler<T> handler)
Add a handler that triggers when a column is sorted.
|
com.google.gwt.event.shared.HandlerRegistration |
addComponentsRenderedHandler(ComponentsRenderedHandler handler)
Add a handler that triggers when all the components have rendered,
this can fire multiple times depending on the table settings.
Also see EventHandlers.addRenderedHandler(RenderedHandler) . |
com.google.gwt.event.shared.HandlerRegistration |
addDestroyHandler(DestroyHandler handler)
Event fired when the tables view calls
DataView.destroy() . |
com.google.gwt.event.shared.HandlerRegistration |
addInsertColumnHandler(InsertColumnHandler<T> handler)
Event fired when the tables view calls
HasColumns.insertColumn(int, Column, String) . |
com.google.gwt.event.shared.HandlerRegistration |
addRemoveColumnHandler(RemoveColumnHandler handler)
Event fired when the tables view calls
HasColumns.removeColumn(int) . |
com.google.gwt.event.shared.HandlerRegistration |
addRenderedHandler(RenderedHandler handler)
Add a handler that triggers when all the row data has rendered after calling
AbstractDataView.setRowData(int, List) .This will only fire once per call even if the data is re-rendered in the cases of sorting, etc. |
com.google.gwt.event.shared.HandlerRegistration |
addRowCollapsedHandler(RowCollapsedHandler<T> handler)
Add a handler that triggers when a row has collapsed.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowCollapseHandler(RowCollapsingHandler<T> handler)
Add a handler that triggers when a row is collapsing.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowContextMenuHandler(RowContextMenuHandler<T> handler)
Add a handler that triggers when a row is right clicked.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowDoubleClickHandler(RowDoubleClickHandler<T> handler)
Add a handler that triggers when a row is double clicked.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowExpandedHandler(RowExpandedHandler<T> handler)
Add a handler that triggers when a row has expanded.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowExpandingHandler(RowExpandingHandler<T> handler)
Add a handler that triggers when a row is expanding.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowLongPressHandler(RowLongPressHandler<T> handler)
Add a handler that triggers when a row is long pressed.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowSelectHandler(RowSelectHandler<T> handler)
Adda a handler that is triggered when a row is selected.
|
com.google.gwt.event.shared.HandlerRegistration |
addRowShortPressHandler(RowShortPressHandler<T> handler)
Add a handler that triggers when a row is short pressed.
|
com.google.gwt.event.shared.HandlerRegistration |
addSelectAllHandler(SelectAllHandler<T> handler)
Add a handler that is triggered when select all rows is executed.
|
com.google.gwt.event.shared.HandlerRegistration |
addSetupHandler(SetupHandler handler)
Event fired when the tables view calls
DataView.setup(TableScaffolding) . |
protected void |
build() |
protected boolean |
cellConsumesEventType(com.google.gwt.cell.client.Cell<?> cell,
String eventType)
Check if a cell consumes the specified event type.
|
void |
clearCategories()
Clear all categories.
|
void |
clearHandlers() |
void |
clearRows(boolean clearData)
Clear data rows.
|
void |
clearRowsAndCategories(boolean clearData)
Clear all rows and categories.
|
void |
closeCategory(CategoryComponent category)
Close an existing Category.
|
void |
closeCategory(String categoryName)
Close an existing Category.
|
void |
deselectRow(com.google.gwt.dom.client.Element row,
boolean fireEvent)
Unselect a selected row.
|
void |
disableCategory(String categoryName)
Disable a data view category.
|
void |
enableCategory(String categoryName)
Enable a data view category.
|
List<CategoryComponent> |
getCategories()
Get all registered category components.
|
CategoryComponent |
getCategory(String categoryName)
Get a stored category component.
|
int |
getColumnOffset()
Get the offset column index (used when selection mode is on).
|
List<Column<T,?>> |
getColumns()
Get the current defined columns.
|
DataSource<T> |
getDataSource()
Get the configured data source.
|
String |
getHeight()
Get the table body height.
|
int |
getLongPressDuration()
Get the long press duration requirement.
|
List<CategoryComponent> |
getOpenCategories()
Get all the open
CategoryComponent 's or null if categories are disabled. |
RowComponent<T> |
getRow(int index)
Get a row by its rendered index.
|
RowComponent<T> |
getRow(T model)
Get a row by its representing model.
|
RowComponent<T> |
getRowByModel(T model)
Get a models
RowComponent or null if not found. |
int |
getRowCount()
Get the exact count of all rows.
|
RowComponentFactory<T> |
getRowFactory()
Get the views row factory.
|
int |
getRowHeight()
Get the maximum row height.
|
List<RowComponent<T>> |
getRows()
Get all data views
RowComponent 's. |
int |
getRowValueIndex(com.google.gwt.dom.client.TableRowElement row)
Get the index of the row value from the associated
TableRowElement . |
TableScaffolding |
getScaffolding()
Get the tables scaffolding elements.
|
List<T> |
getSelectedRowModels(boolean visibleOnly)
Get all the selected row models.
|
SelectionType |
getSelectionType()
Get the data views row selection type.
|
int |
getTotalRows()
Get the configured total rows count.
|
DataView<T> |
getView()
Get the displays
DataView . |
com.google.gwt.view.client.Range |
getVisibleRange()
Get the range of visible rows.
|
boolean |
hasCategory(String categoryName)
Has this data view got an existing
CategoryComponent with given name. |
boolean |
hasDeselectedRows(boolean visibleOnly)
Does this view have unselected rows.
|
boolean |
hasSelectedRows(boolean visibleOnly)
Does this view have selected rows.
|
void |
insertColumn(int beforeIndex,
Column<T,?> col,
String header)
Inserts a column into the table at the specified index.
|
boolean |
isCategoryEmpty(CategoryComponent category)
Check if a category has data to provide.
|
boolean |
isDestroyOnUnload() |
boolean |
isUseCategories()
Is the data view using categories where possible.
|
boolean |
isUseLoadOverlay()
Is the data view using loading overlay mask.
|
boolean |
isUseRowExpansion()
Is the data view using row expansion.
|
boolean |
isUseStickyHeader()
True if we are using sticky table header.
|
void |
loaded(int startIndex,
List<T> data)
Data views loader has loaded data for use.
|
protected void |
onBlur() |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
protected void |
onFocus() |
protected void |
onLoad() |
protected void |
onUnload() |
void |
openCategory(CategoryComponent category)
Open an existing Category.
|
void |
openCategory(String categoryName)
Open an existing Category.
|
com.google.gwt.event.shared.HandlerRegistration |
registerHandler(com.google.gwt.event.shared.HandlerRegistration registration) |
void |
removeColumn(int colIndex)
Remove an existing column by index.
|
void |
removeColumns()
Remove all columns.
|
void |
selectAllRows(boolean select)
Select or deselect all rows.
|
void |
selectAllRows(boolean select,
boolean fireEvent)
Select or deselect all rows.
|
void |
selectRow(com.google.gwt.dom.client.Element row,
boolean fireEvent)
Select a given row.
|
void |
setCategoryFactory(ComponentFactory<? extends CategoryComponent,String> categoryFactory)
Set your own custom
CategoryComponentFactory to generate your categories. |
void |
setDataSource(DataSource<T> dataSource)
Set a
DataSource for data loading. |
void |
setDestroyOnUnload(boolean destroyOnUnload) |
void |
setHeight(String height)
Set the table body height.
|
void |
setLoadedCallback(LoadedCallback callback)
Deprecated.
|
void |
setLongPressDuration(int longPressDuration)
Set the long press duration requirement.
|
void |
setRenderer(Renderer<T> renderer)
Set your own custom renderer.
|
void |
setRowData(int start,
List<? extends T> values)
Set values associated with the rows in the visible range.
|
void |
setRowFactory(RowComponentFactory<T> rowFactory)
Set your own custom
RowComponentFactory to generate your row components. |
void |
setRowHeight(int rowHeight)
Set maximum row height.
|
void |
setSelectionType(SelectionType selectionType)
Set the data views row selection type.
|
void |
setTotalRows(int totalRows)
Set the total row count.
|
void |
setUseCategories(boolean useCategories)
Allow the data view to generate categories,
or use added categories for row data.
|
void |
setUseLoadOverlay(boolean useLoadOverlay)
Use the loading overlay mask.
|
void |
setUseRowExpansion(boolean useRowExpansion)
Use row expansion functionality, giving the user
a way to expand rows for extra information.
|
void |
setUseStickyHeader(boolean stickyHeader)
Enable the use of sticky table header bar.
|
void |
setVisibleRange(int start,
int length)
Set the visible range or rows.
|
void |
setVisibleRange(com.google.gwt.view.client.Range range)
Set the visible range or rows.
|
void |
sort(Column<T,?> column)
Sort a column.
|
void |
sort(Column<T,?> column,
SortDir dir)
Sort a column.
|
void |
sort(int columnIndex)
Sort a column matching the given index (the index excludes the selection box row).
|
void |
sort(int columnIndex,
SortDir dir)
Sort a column matching the given index (the index excludes the selection box row).
|
void |
updateRow(T model)
Update a models row within the table.
|
$this, add, add, addAttachHandler, addBlurHandler, addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragLeaveHandler, addDragMoveHandler, addDragOverHandler, addDragStartHandler, addDropActivateHandler, addDropDeactivateHandler, addDropHandler, addFocusHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addOrientationChangeHandler, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, body, clearActiveClass, enableFeature, getBackfaceVisibility, getBackgroundColor, getBorder, getBorderBottom, getBorderLeft, getBorderMixin, getBorderRadius, getBorderRight, getBorderTop, getCenterOn, getCenterOnMixin, getChildren, getChildrenList, getCircleMixin, getColorsMixin, getDataAttribute, getDepth, getDimensionMixin, getEnabledMixin, getFlexboxMixin, getFloat, getFloatMixin, getFocusableMixin, getFontSize, getFontSizeMixin, getFontWeight, getFontWeightMixin, getGridMixin, getHandlerRegistry, getHideOn, getHideOnMixin, getHoverableMixin, getId, getIdMixin, getInitialClasses, getLayoutPosition, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getOrientation, getOrientationMixin, getPerspective, getPerspectiveOrigin, getScrollspy, getScrollspyMixin, getSeparatorMixin, getShadow, getShadowMixin, getShowOn, getShowOnMixin, getTabIndex, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipHTML, getTooltipMixin, getTooltipPosition, getTransform, getTransformMixin, getTransformOrigin, getTransformStyle, getTruncateMixin, getVerticalAlign, getVerticalAlignMixin, getWaves, getWavesMixin, getWidth, insert, insert, isCircle, isDetectOrientation, isEnabled, isFeatureEnabled, isHoverable, isSeparator, isTruncate, removeHandler, setAccessKey, setBackfaceVisibility, setBackgroundColor, setBorder, setBorderBottom, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBottom, setCenterOn, setCircle, setClass, setDataAttribute, setDepth, setDetectOrientation, setDisplay, setEnabled, setFlex, setFlexAlignContent, setFlexAlignItems, setFlexAlignSelf, setFlexBasis, setFlexDirection, setFlexGrow, setFlexJustifyContent, setFlexOrder, setFlexShrink, setFlexWrap, setFloat, setFocus, setFontSize, setFontSize, setFontWeight, setGrid, setGwtDisplay, setHideOn, setHoverable, setId, setInitialClasses, setLayoutPosition, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOffset, setOpacity, setOrientation, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPerspective, setPerspectiveOrigin, setRight, setScrollspy, setSeparator, setShadow, setShowOn, setStyle, setTabIndex, setTextAlign, setTextColor, setTooltip, setTooltipDelayMs, setTooltipHTML, setTooltipPosition, setTop, setTransform, setTransformOrigin, setTransformStyle, setTransition, setTruncate, setVerticalAlign, setVisibility, setWaves, stopTouchStartEvent, validate, window
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove, remove
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, 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, resolvePotentialElement, setElement, setElement, 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
forEach, spliterator
protected TableScaffolding scaffolding
protected gwt.material.design.client.events.HandlerRegistry handlerRegistry
public AbstractDataTable()
public AbstractDataTable(DataView<T> view)
public AbstractDataTable(TableScaffolding scaffolding)
public AbstractDataTable(DataView<T> view, TableScaffolding scaffolding)
protected void onLoad()
onLoad
in class gwt.material.design.client.base.MaterialWidget
protected void onUnload()
onUnload
in class gwt.material.design.client.base.MaterialWidget
protected void build()
public final DataView<T> getView()
DataDisplay
DataView
.getView
in interface DataDisplay<T>
public final com.google.gwt.view.client.Range getVisibleRange()
HasRows
getVisibleRange
in interface HasRows<T>
HasRows.setVisibleRange(Range)
,
HasRows.setVisibleRange(int, int)
public final void setVisibleRange(int start, int length)
HasRows
HasRows.setVisibleRange(Range)
.setVisibleRange
in interface HasRows<T>
start
- the start indexlength
- the lengthHasRows.getVisibleRange()
public final void setVisibleRange(com.google.gwt.view.client.Range range)
HasRows
setVisibleRange
in interface HasRows<T>
range
- the visible rangeHasRows.getVisibleRange()
public final int getRowCount()
HasRows
getRowCount
in interface HasRows<T>
public final void setRowData(int start, List<? extends T> values)
HasRows
setRowData
in interface HasRows<T>
start
- the start index of the datavalues
- the values within the rangepublic final void setCategoryFactory(ComponentFactory<? extends CategoryComponent,String> categoryFactory)
HasCategories
CategoryComponentFactory
to generate your categories.setCategoryFactory
in interface HasCategories
public final CategoryComponent getCategory(String categoryName)
HasCategories
getCategory
in interface HasCategories
categoryName
- name of the category component.public final List<CategoryComponent> getCategories()
HasCategories
getCategories
in interface HasCategories
public final List<CategoryComponent> getOpenCategories()
HasCategories
CategoryComponent
's or null if categories are disabled.getOpenCategories
in interface HasCategories
public final boolean isCategoryEmpty(CategoryComponent category)
HasCategories
isCategoryEmpty
in interface HasCategories
public final void addCategory(String category)
HasCategories
addCategory
in interface HasCategories
category
- The category name.public final void addCategory(CategoryComponent category)
HasCategories
CategoryComponent
, which will be drawn to the table.
If the category already exists then it will be ignored.addCategory
in interface HasCategories
category
- The category data defined.public final boolean hasCategory(String categoryName)
HasCategories
CategoryComponent
with given name.hasCategory
in interface HasCategories
public final void disableCategory(String categoryName)
HasCategories
disableCategory
in interface HasCategories
public final void enableCategory(String categoryName)
HasCategories
enableCategory
in interface HasCategories
public final void openCategory(String categoryName)
HasCategories
openCategory
in interface HasCategories
public final void openCategory(CategoryComponent category)
HasCategories
openCategory
in interface HasCategories
public final void closeCategory(String categoryName)
HasCategories
closeCategory
in interface HasCategories
public final void closeCategory(CategoryComponent category)
HasCategories
closeCategory
in interface HasCategories
public final void clearRowsAndCategories(boolean clearData)
HasCategories
clearRowsAndCategories
in interface HasCategories
clearData
- should we also clear the stored data.public final void clearCategories()
HasCategories
clearCategories
in interface HasCategories
public final void addColumn(Column<T,?> column)
HasColumns
addColumn
in interface HasColumns<T>
column
- the column objectpublic final void addColumn(Column<T,?> column, String header)
HasColumns
addColumn
in interface HasColumns<T>
column
- the column objectpublic final void insertColumn(int beforeIndex, Column<T,?> col, String header)
HasColumns
insertColumn
in interface HasColumns<T>
beforeIndex
- the index to insert the columncol
- the column to be addedpublic final void removeColumn(int colIndex)
HasColumns
removeColumn
in interface HasColumns<T>
colIndex
- the columns placement indexpublic final void removeColumns()
HasColumns
removeColumns
in interface HasColumns<T>
public final List<Column<T,?>> getColumns()
HasColumns
getColumns
in interface HasColumns<T>
public final int getColumnOffset()
HasColumns
getColumnOffset
in interface HasColumns<T>
public final void sort(int columnIndex)
HasColumns
sort
in interface HasColumns<T>
columnIndex
- valid index to the user added Column
s.public final void sort(int columnIndex, SortDir dir)
HasColumns
sort
in interface HasColumns<T>
columnIndex
- valid index to the user added Column
s.dir
- the sort direction or null for auto reversing.public final void sort(Column<T,?> column)
HasColumns
sort
in interface HasColumns<T>
column
- matching column that was added via ##addColumn(Column)
.public final void sort(Column<T,?> column, SortDir dir)
HasColumns
sort
in interface HasColumns<T>
column
- matching column that was added via ##addColumn(Column)
.dir
- the sort direction or null for auto reversing.public final void setDataSource(DataSource<T> dataSource)
HasDataSource
DataSource
for data loading.setDataSource
in interface HasDataSource<T>
public final DataSource<T> getDataSource()
HasDataSource
getDataSource
in interface HasDataSource<T>
public void loaded(int startIndex, List<T> data)
HasDataSource
loaded
in interface HasDataSource<T>
public final void setRenderer(Renderer<T> renderer)
HasRenderer
BaseRenderer
for the standard rendering.setRenderer
in interface HasRenderer<T>
public final int getTotalRows()
HasRows
getTotalRows
in interface HasRows<T>
public final void setTotalRows(int totalRows)
HasRows
setTotalRows
in interface HasRows<T>
public final int getRowHeight()
HasRows
getRowHeight
in interface HasRows<T>
public final void setRowHeight(int rowHeight)
HasRows
setRowHeight
in interface HasRows<T>
public final void updateRow(T model)
HasRows
public List<RowComponent<T>> getRows()
HasRows
RowComponent
's.public final RowComponent<T> getRow(T model)
HasRows
public final RowComponent<T> getRow(int index)
HasRows
public final RowComponent<T> getRowByModel(T model)
HasRows
RowComponent
or null if not found.getRowByModel
in interface HasRows<T>
model
- a model with a valid equals
method.RowComponent
.public final void clearRows(boolean clearData)
HasRows
public final void setRowFactory(RowComponentFactory<T> rowFactory)
HasRows
RowComponentFactory
to generate your row components.setRowFactory
in interface HasRows<T>
public RowComponentFactory<T> getRowFactory()
HasRows
getRowFactory
in interface HasRows<T>
public final void setSelectionType(SelectionType selectionType)
HasRows
setSelectionType
in interface HasRows<T>
public final SelectionType getSelectionType()
HasRows
getSelectionType
in interface HasRows<T>
public final void selectAllRows(boolean select)
HasRows
selectAllRows
in interface HasRows<T>
select
- true will select, false with deselectpublic final void selectAllRows(boolean select, boolean fireEvent)
HasRows
selectAllRows
in interface HasRows<T>
select
- true will select, false with deselectfireEvent
- fire the '' event.public final void selectRow(com.google.gwt.dom.client.Element row, boolean fireEvent)
HasRows
public final void deselectRow(com.google.gwt.dom.client.Element row, boolean fireEvent)
HasRows
deselectRow
in interface HasRows<T>
public final boolean hasDeselectedRows(boolean visibleOnly)
HasRows
hasDeselectedRows
in interface HasRows<T>
visibleOnly
- should we restrict this check to visible rows only.public final boolean hasSelectedRows(boolean visibleOnly)
HasRows
hasSelectedRows
in interface HasRows<T>
visibleOnly
- should we restrict this check to visible rows only.public final List<T> getSelectedRowModels(boolean visibleOnly)
HasRows
getSelectedRowModels
in interface HasRows<T>
visibleOnly
- should we restrict this check to visible rows only.public final boolean isUseStickyHeader()
ViewSettings
isUseStickyHeader
in interface ViewSettings
public final void setUseStickyHeader(boolean stickyHeader)
ViewSettings
setUseStickyHeader
in interface ViewSettings
public final boolean isUseCategories()
ViewSettings
isUseCategories
in interface ViewSettings
public final void setUseCategories(boolean useCategories)
ViewSettings
setUseCategories
in interface ViewSettings
public final boolean isUseLoadOverlay()
ViewSettings
isUseLoadOverlay
in interface ViewSettings
public final void setUseLoadOverlay(boolean useLoadOverlay)
ViewSettings
setUseLoadOverlay
in interface ViewSettings
public final boolean isUseRowExpansion()
ViewSettings
isUseRowExpansion
in interface ViewSettings
public final void setUseRowExpansion(boolean useRowExpansion)
ViewSettings
setUseRowExpansion
in interface ViewSettings
public final int getLongPressDuration()
ViewSettings
getLongPressDuration
in interface ViewSettings
public final void setLongPressDuration(int longPressDuration)
ViewSettings
setLongPressDuration
in interface ViewSettings
public final String getHeight()
ViewSettings
getHeight
in interface ViewSettings
public final void setHeight(String height)
ViewSettings
setHeight
in interface ViewSettings
setHeight
in class com.google.gwt.user.client.ui.UIObject
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
protected void onFocus()
protected void onBlur()
public final int getRowValueIndex(com.google.gwt.dom.client.TableRowElement row)
TableRowElement
.row
- the row elementprotected boolean cellConsumesEventType(com.google.gwt.cell.client.Cell<?> cell, String eventType)
cell
- the celleventType
- the event type to checkpublic TableScaffolding getScaffolding()
getScaffolding
in interface DataDisplay<T>
@Deprecated public void setLoadedCallback(LoadedCallback callback)
addSetupHandler(SetupHandler)
public com.google.gwt.event.shared.HandlerRegistration addSetupHandler(SetupHandler handler)
DataView.setup(TableScaffolding)
.public com.google.gwt.event.shared.HandlerRegistration addDestroyHandler(DestroyHandler handler)
DataView.destroy()
.public com.google.gwt.event.shared.HandlerRegistration addInsertColumnHandler(InsertColumnHandler<T> handler)
HasColumns.insertColumn(int, Column, String)
.public com.google.gwt.event.shared.HandlerRegistration addRemoveColumnHandler(RemoveColumnHandler handler)
HasColumns.removeColumn(int)
.public boolean isDestroyOnUnload()
public void setDestroyOnUnload(boolean destroyOnUnload)
public com.google.gwt.event.shared.HandlerRegistration registerHandler(com.google.gwt.event.shared.HandlerRegistration registration)
registerHandler
in interface gwt.material.design.client.events.HandlerRegistry
registerHandler
in class gwt.material.design.client.base.MaterialWidget
public void clearHandlers()
clearHandlers
in interface gwt.material.design.client.events.HandlerRegistry
public com.google.gwt.event.shared.HandlerRegistration addSelectAllHandler(SelectAllHandler<T> handler)
EventHandlers
addSelectAllHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowSelectHandler(RowSelectHandler<T> handler)
EventHandlers
addRowSelectHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowExpandingHandler(RowExpandingHandler<T> handler)
EventHandlers
addRowExpandingHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowExpandedHandler(RowExpandedHandler<T> handler)
EventHandlers
addRowExpandedHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowCollapseHandler(RowCollapsingHandler<T> handler)
EventHandlers
addRowCollapseHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowCollapsedHandler(RowCollapsedHandler<T> handler)
EventHandlers
addRowCollapsedHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowContextMenuHandler(RowContextMenuHandler<T> handler)
EventHandlers
addRowContextMenuHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowDoubleClickHandler(RowDoubleClickHandler<T> handler)
EventHandlers
addRowDoubleClickHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowLongPressHandler(RowLongPressHandler<T> handler)
EventHandlers
addRowLongPressHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRowShortPressHandler(RowShortPressHandler<T> handler)
EventHandlers
addRowShortPressHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addColumnSortHandler(ColumnSortHandler<T> handler)
EventHandlers
addColumnSortHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addCategoryOpenedHandler(CategoryOpenedHandler handler)
EventHandlers
addCategoryOpenedHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addCategoryClosedHandler(CategoryClosedHandler handler)
EventHandlers
addCategoryClosedHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addComponentsRenderedHandler(ComponentsRenderedHandler handler)
EventHandlers
EventHandlers.addRenderedHandler(RenderedHandler)
.addComponentsRenderedHandler
in interface EventHandlers<T>
public com.google.gwt.event.shared.HandlerRegistration addRenderedHandler(RenderedHandler handler)
EventHandlers
AbstractDataView.setRowData(int, List)
.addRenderedHandler
in interface EventHandlers<T>
Copyright © 2018. All rights reserved.