public abstract class AbstractListingConnector extends AbstractFieldConnector implements HasDataSource
AbstractListing.SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
AbstractListingConnector() |
| Modifier and Type | Method and Description |
|---|---|
DataSource<elemental.json.JsonObject> |
getDataSource()
Gets the current data source for this Connector.
|
protected static elemental.json.JsonValue |
getRowData(elemental.json.JsonObject row)
Returns the data of the given data row.
|
protected static String |
getRowKey(elemental.json.JsonObject row)
Returns the key of the given data row.
|
AbstractListingState |
getState()
Returns the shared state object for this connector.
|
protected boolean |
isRowSelected(elemental.json.JsonObject row)
Returns whether the given row is selected.
|
void |
setDataSource(DataSource<elemental.json.JsonObject> dataSource)
Sets the data source for this Connector.
|
isReadOnly, isRequiredIndicatorVisible, updateWidgetStyleNamescreateWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, getWidget, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onStateChanged, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSizeaddStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelegateCaptionHandling, flush, getLayoutManager, getTooltipInfo, hasTooltip, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabledaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledStategetConnectorIdpublic void setDataSource(DataSource<elemental.json.JsonObject> dataSource)
HasDataSourcesetDataSource in interface HasDataSourcedataSource - the new data source, not nullpublic DataSource<elemental.json.JsonObject> getDataSource()
HasDataSourcegetDataSource in interface HasDataSourceprotected static String getRowKey(elemental.json.JsonObject row)
row - the rowprotected static elemental.json.JsonValue getRowData(elemental.json.JsonObject row)
row - the rowprotected boolean isRowSelected(elemental.json.JsonObject row)
row - the rowtrue if the row is selected, false otherwisepublic AbstractListingState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractFieldConnectorCopyright © 2023 Vaadin Ltd. All rights reserved.