T
- the type being closedpublic class CloseEvent<T> extends GwtEvent<CloseHandler<T>>
GwtEvent.Type<H>
Modifier | Constructor and Description |
---|---|
protected |
CloseEvent(T target,
boolean autoClosed)
Creates a new close event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(CloseHandler<T> handler)
Should only be called by
HandlerManager . |
static <T> void |
fire(HasCloseHandlers<T> source,
T target)
Fires a close event on all registered handlers in the handler manager.
|
static <T> void |
fire(HasCloseHandlers<T> source,
T target,
boolean autoClosed)
Fires a close event on all registered handlers in the handler manager.
|
GwtEvent.Type<CloseHandler<T>> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
T |
getTarget()
Gets the target.
|
static GwtEvent.Type<CloseHandler<?>> |
getType()
Gets the type associated with this event.
|
boolean |
isAutoClosed()
Was the target automatically closed?
|
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
protected CloseEvent(T target, boolean autoClosed)
target
- the targetautoClosed
- whether it is auto closedpublic static <T> void fire(HasCloseHandlers<T> source, T target)
T
- the target typesource
- the source of the handlerstarget
- the targetpublic static <T> void fire(HasCloseHandlers<T> source, T target, boolean autoClosed)
T
- the target typesource
- the source of the handlerstarget
- the targetautoClosed
- was the target closed automaticallypublic static GwtEvent.Type<CloseHandler<?>> getType()
public final GwtEvent.Type<CloseHandler<T>> getAssociatedType()
Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class GwtEvent<CloseHandler<T>>
public T getTarget()
public boolean isAutoClosed()
protected void dispatch(CloseHandler<T> handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<CloseHandler<T>>
handler
- handlerEventBus.dispatchEvent(Event, Object)