public class RowCountChangeEvent extends GwtEvent<RowCountChangeEvent.Handler>
Modifier and Type | Class and Description |
---|---|
static interface |
RowCountChangeEvent.Handler
Handler interface for
RowCountChangeEvent events. |
GwtEvent.Type<H>
Modifier | Constructor and Description |
---|---|
protected |
RowCountChangeEvent(int rowCount,
boolean isExact)
Creates a
RowCountChangeEvent . |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(RowCountChangeEvent.Handler handler)
Should only be called by
HandlerManager . |
static void |
fire(HasRows source,
int rowCount,
boolean isExact)
Fires a
RowCountChangeEvent on all registered handlers in the
handler manager. |
GwtEvent.Type<RowCountChangeEvent.Handler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
int |
getNewRowCount()
Gets the new row count.
|
static GwtEvent.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 RowCountChangeEvent(int rowCount, boolean isExact)
RowCountChangeEvent
.rowCount
- the new row countisExact
- true if the row count is exactpublic static void fire(HasRows source, int rowCount, boolean isExact)
RowCountChangeEvent
on all registered handlers in the
handler manager. If no such handlers exist, this method will do nothing.source
- the source of the handlersrowCount
- the new rowCountisExact
- true if rowCount is an exact countpublic static GwtEvent.Type<RowCountChangeEvent.Handler> getType()
public final GwtEvent.Type<RowCountChangeEvent.Handler> getAssociatedType()
com.google.web.bindery.event.shared.Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class GwtEvent<RowCountChangeEvent.Handler>
public int getNewRowCount()
public boolean isNewRowCountExact()
public String toDebugString()
com.google.web.bindery.event.shared.Event
toDebugString
in class com.google.web.bindery.event.shared.Event<RowCountChangeEvent.Handler>
protected void dispatch(RowCountChangeEvent.Handler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<RowCountChangeEvent.Handler>
handler
- handlerEventBus.dispatchEvent(Event, Object)
Copyright © 2018. All rights reserved.