public abstract class AbstractListingConnector extends AbstractFieldConnector implements HasDataSource
AbstractListing.SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
AbstractListingConnector() |
| Modifier and Type | Method and Description |
|---|---|
DataSource<JsonObject> |
getDataSource()
Gets the current data source for this Connector.
|
protected static JsonValue |
getRowData(JsonObject row)
Returns the data of the given data row.
|
protected static String |
getRowKey(JsonObject row)
Returns the key of the given data row.
|
AbstractListingState |
getState()
Returns the shared state object for this connector.
|
protected boolean |
isRowSelected(JsonObject row)
Returns whether the given row is selected.
|
void |
setDataSource(DataSource<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, getWidget, 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<JsonObject> dataSource)
HasDataSourcesetDataSource in interface HasDataSourcedataSource - the new data source, not nullpublic DataSource<JsonObject> getDataSource()
HasDataSourcegetDataSource in interface HasDataSourceprotected static String getRowKey(JsonObject row)
row - the rowprotected static JsonValue getRowData(JsonObject row)
row - the rowprotected boolean isRowSelected(JsonObject row)
row - the rowtrue if the row is selected, false otherwisepublic AbstractListingState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractFieldConnectorCopyright © 2018 Vaadin Ltd. All rights reserved.