public class

RowCountChangeEvent

extends GwtEvent<H extends EventHandler>
java.lang.Object
   ↳ com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler>
     ↳ com.google.gwt.view.client.RowCountChangeEvent

Class Overview

Represents a row count change event.

Summary

Nested Classes
interface RowCountChangeEvent.Handler Handler interface for RowCountChangeEvent events. 
Protected Constructors
RowCountChangeEvent(int rowCount, boolean isExact)
Public Methods
static void fire(HasRows source, int rowCount, boolean isExact)
Fires a RowCountChangeEvent on all registered handlers in the handler manager.
final Type<RowCountChangeEvent.Handler> getAssociatedType()
Returns the type used to register this event.
int getNewRowCount()
Gets the new row count.
static Type<RowCountChangeEvent.Handler> getType()
Gets the type associated with this event.
boolean isNewRowCountExact()
Check if the new row count is exact.
String toDebugString()
This is a method used primarily for debugging.
Protected Methods
void dispatch(RowCountChangeEvent.Handler handler)
Should only be called by HandlerManager.
[Expand]
Inherited Methods
From class com.google.gwt.event.shared.GwtEvent
From class java.lang.Object

Protected Constructors

protected RowCountChangeEvent (int rowCount, boolean isExact)

Parameters
rowCount the new row count
isExact true if the row count is exact

Public Methods

public static void fire (HasRows source, int rowCount, boolean isExact)

Fires a RowCountChangeEvent on all registered handlers in the handler manager. If no such handlers exist, this method will do nothing.

Parameters
source the source of the handlers
rowCount the new rowCount
isExact true if rowCount is an exact count

public final Type<RowCountChangeEvent.Handler> getAssociatedType ()

Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.

Returns
  • the type

public int getNewRowCount ()

Gets the new row count.

Returns
  • the new row count

public static Type<RowCountChangeEvent.Handler> getType ()

Gets the type associated with this event.

Returns
  • returns the handler type

public boolean isNewRowCountExact ()

Check if the new row count is exact.

Returns
  • true if the new row count is exact, false if not

public String toDebugString ()

This is a method used primarily for debugging. It gives a string representation of the event details. This does not override the toString method because the compiler cannot always optimize toString out correctly. Event types should override as desired.

Returns
  • a string representing the event's specifics.

Protected Methods

protected void dispatch (RowCountChangeEvent.Handler handler)

Should only be called by HandlerManager. In other words, do not use or call.

Parameters
handler handler