com.vaadin.client.widget.escalator
Class RowVisibilityChangeEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<RowVisibilityChangeHandler>
          extended by 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>
 
Field Summary
static com.google.gwt.event.shared.GwtEvent.Type<RowVisibilityChangeHandler> TYPE
          The type of this event.
 
Constructor Summary
RowVisibilityChangeEvent(int firstVisibleRow, int visibleRowCount)
          Creates a new row visibility change event
 
Method Summary
protected  void dispatch(RowVisibilityChangeHandler handler)
           
 com.google.gwt.event.shared.GwtEvent.Type<RowVisibilityChangeHandler> getAssociatedType()
           
 int getFirstVisibleRow()
          Gets the index of the first row that is at least partially visible.
 int getVisibleRowCount()
          Gets the number of at least partially visible rows.
 com.vaadin.shared.ui.grid.Range getVisibleRowRange()
          Gets the range of visible rows.
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final com.google.gwt.event.shared.GwtEvent.Type<RowVisibilityChangeHandler> TYPE
The type of this event.

Constructor Detail

RowVisibilityChangeEvent

public RowVisibilityChangeEvent(int firstVisibleRow,
                                int visibleRowCount)
Creates a new row visibility change event

Parameters:
firstVisibleRow - the index of the first visible row
visibleRowCount - the number of visible rows
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 com.vaadin.shared.ui.grid.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()
Overrides:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<RowVisibilityChangeHandler>

dispatch

protected void dispatch(RowVisibilityChangeHandler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<RowVisibilityChangeHandler>


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.