Class RowVisibilityChangeEvent
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<RowVisibilityChangeHandler>
-
- com.vaadin.client.widget.escalator.RowVisibilityChangeEvent
-
public class RowVisibilityChangeEvent extends com.google.gwt.event.shared.GwtEvent<RowVisibilityChangeHandler>
Event fired when the range of visible rows changes e.g. because of scrolling.- Since:
- 7.4
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.gwt.event.shared.GwtEvent.Type<RowVisibilityChangeHandler>TYPEThe type of this event.
-
Constructor Summary
Constructors Constructor Description RowVisibilityChangeEvent(int firstVisibleRow, int visibleRowCount)Creates a new row visibility change event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatch(RowVisibilityChangeHandler handler)com.google.gwt.event.shared.GwtEvent.Type<RowVisibilityChangeHandler>getAssociatedType()intgetFirstVisibleRow()Gets the index of the first row that is at least partially visible.intgetVisibleRowCount()Gets the number of at least partially visible rows.RangegetVisibleRowRange()Gets the range of visible rows.-
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
-
-
-
-
Field Detail
-
TYPE
public static final com.google.gwt.event.shared.GwtEvent.Type<RowVisibilityChangeHandler> TYPE
The type of this event.
-
-
Method Detail
-
getFirstVisibleRow
public int getFirstVisibleRow()
Gets the index of the first row that is at least partially visible.- Returns:
- the index of the first visible row
-
getVisibleRowCount
public int getVisibleRowCount()
Gets the number of at least partially visible rows.- Returns:
- the number of visible rows
-
getVisibleRowRange
public Range getVisibleRowRange()
Gets the range of visible rows.- Returns:
- the visible rows
- Since:
- 7.6
-
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<RowVisibilityChangeHandler> getAssociatedType()
- Specified by:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<RowVisibilityChangeHandler>
-
dispatch
protected void dispatch(RowVisibilityChangeHandler handler)
- Specified by:
dispatchin classcom.google.gwt.event.shared.GwtEvent<RowVisibilityChangeHandler>
-
-