Package com.google.gwt.view.client
Class RowCountChangeEvent
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<RowCountChangeEvent.Handler>
-
- com.google.gwt.view.client.RowCountChangeEvent
-
public class RowCountChangeEvent extends GwtEvent<RowCountChangeEvent.Handler>
Represents a row count change event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRowCountChangeEvent.HandlerHandler interface forRowCountChangeEventevents.-
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRowCountChangeEvent(int rowCount, boolean isExact)Creates aRowCountChangeEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatch(RowCountChangeEvent.Handler handler)Should only be called byHandlerManager.static voidfire(HasRows source, int rowCount, boolean isExact)Fires aRowCountChangeEventon all registered handlers in the handler manager.GwtEvent.Type<RowCountChangeEvent.Handler>getAssociatedType()Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.intgetNewRowCount()Gets the new row count.static GwtEvent.Type<RowCountChangeEvent.Handler>getType()Gets the type associated with this event.booleanisNewRowCountExact()Check if the new row count is exact.java.lang.StringtoDebugString()This is a method used primarily for debugging.
-
-
-
Constructor Detail
-
RowCountChangeEvent
protected RowCountChangeEvent(int rowCount, boolean isExact)Creates aRowCountChangeEvent.- Parameters:
rowCount- the new row countisExact- true if the row count is exact
-
-
Method Detail
-
fire
public static void fire(HasRows source, int rowCount, boolean isExact)
Fires aRowCountChangeEventon 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
public static GwtEvent.Type<RowCountChangeEvent.Handler> getType()
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
public final GwtEvent.Type<RowCountChangeEvent.Handler> getAssociatedType()
Description copied from class:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
getAssociatedTypein 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
public java.lang.String toDebugString()
Description copied from class:EventThis 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:
toDebugStringin classEvent<RowCountChangeEvent.Handler>- Returns:
- a string representing the event's specifics.
-
dispatch
protected void dispatch(RowCountChangeEvent.Handler handler)
Description copied from class:GwtEventShould only be called byHandlerManager. In other words, do not use or call.- Specified by:
dispatchin classGwtEvent<RowCountChangeEvent.Handler>- Parameters:
handler- handler- See Also:
EventBus.dispatchEvent(Event, Object)
-
-