com.vaadin.v7.client.widget.grid.DataAvailableEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-compatibility-client Show documentation
Show all versions of vaadin-compatibility-client Show documentation
Vaadin 7 compatibility package for Vaadin 8
/*
* Copyright (C) 2000-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.v7.client.widget.grid;
import com.google.gwt.event.shared.GwtEvent;
import com.vaadin.shared.Range;
/**
* Event object describing a change of row availability in DataSource of a Grid.
*
* @since 7.4
* @author Vaadin Ltd
*/
public class DataAvailableEvent extends GwtEvent {
private Range rowsAvailable;
public static final Type TYPE = new Type();
public DataAvailableEvent(Range rowsAvailable) {
this.rowsAvailable = rowsAvailable;
}
/**
* Returns the range of available rows in
* {@link com.vaadin.client.data.DataSource DataSource} for this event.
*
* @return range of available rows
*/
public Range getAvailableRows() {
return rowsAvailable;
}
@Override
public Type getAssociatedType() {
return TYPE;
}
@Override
protected void dispatch(DataAvailableHandler handler) {
handler.onDataAvailable(this);
}
}