com.vaadin.client.connectors.

Class AbstractListingConnector

    • Constructor Detail

      • AbstractListingConnector

        public AbstractListingConnector()
    • Method Detail

      • setDataSource

        public void setDataSource​(DataSource<elemental.json.JsonObject> dataSource)

        Description copied from interface: HasDataSource

        Sets the data source for this Connector.

        Specified by:

        setDataSource in interface HasDataSource

        Parameters:

        dataSource - the new data source, not null

      • getDataSource

        public DataSource<elemental.json.JsonObject> getDataSource()

        Description copied from interface: HasDataSource

        Gets the current data source for this Connector.

        Specified by:

        getDataSource in interface HasDataSource

        Returns:

        the data source, not null

      • getRowKey

        protected static String getRowKey​(elemental.json.JsonObject row)

        Returns the key of the given data row.

        Parameters:

        row - the row

        Returns:

        the row key

      • getRowData

        protected static elemental.json.JsonValue getRowData​(elemental.json.JsonObject row)

        Returns the data of the given data row.

        Parameters:

        row - the row

        Returns:

        the row data

      • isRowSelected

        protected boolean isRowSelected​(elemental.json.JsonObject row)

        Returns whether the given row is selected.

        Parameters:

        row - the row

        Returns:

        true if the row is selected, false otherwise