Package com.google.gwt.view.client
Class RowCountChangeEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<RowCountChangeEvent.Handler>
com.google.gwt.event.shared.GwtEvent<RowCountChangeEvent.Handler>
com.google.gwt.view.client.RowCountChangeEvent
Represents a row count change event.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Handler interface forRowCountChangeEvent
events.Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
RowCountChangeEvent
(int rowCount, boolean isExact) Creates aRowCountChangeEvent
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(RowCountChangeEvent.Handler handler) Should only be called byHandlerManager
.static void
Fires aRowCountChangeEvent
on all registered handlers in the handler manager.Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.int
Gets the new row count.getType()
Gets the type associated with this event.boolean
Check if the new row count is exact.This is a method used primarily for debugging.
-
Constructor Details
-
RowCountChangeEvent
protected RowCountChangeEvent(int rowCount, boolean isExact) Creates aRowCountChangeEvent
.- Parameters:
rowCount
- the new row countisExact
- true if the row count is exact
-
-
Method Details
-
fire
Fires aRowCountChangeEvent
on all registered handlers in the handler manager. If no such handlers exist, this method will do nothing.- Parameters:
source
- the source of the handlersrowCount
- the new rowCountisExact
- true if rowCount is an exact count
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
Description copied from class:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in classGwtEvent<RowCountChangeEvent.Handler>
- Returns:
- the type
-
getNewRowCount
public int getNewRowCount()Gets the new row count.- Returns:
- the new row count
-
isNewRowCountExact
public boolean isNewRowCountExact()Check if the new row count is exact.- Returns:
- true if the new row count is exact, false if not
-
toDebugString
Description copied from class:Event
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.- Overrides:
toDebugString
in classEvent<RowCountChangeEvent.Handler>
- Returns:
- a string representing the event's specifics.
-
dispatch
Description copied from class:GwtEvent
Should only be called byHandlerManager
. In other words, do not use or call.- Specified by:
dispatch
in classGwtEvent<RowCountChangeEvent.Handler>
- Parameters:
handler
- handler- See Also:
-