|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.event.shared.Event<H> com.google.gwt.event.shared.GwtEvent<CloseHandler<T>> com.google.gwt.event.logical.shared.CloseEvent<T>
T
- the type being closedpublic class CloseEvent<T>
Represents a close event.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
---|
GwtEvent.Type<H> |
Constructor Summary | |
---|---|
protected |
CloseEvent(T target,
boolean autoClosed)
Creates a new close event. |
Method Summary | ||
---|---|---|
protected void |
dispatch(CloseHandler<T> handler)
Should only be called by HandlerManager . |
|
static
|
fire(HasCloseHandlers<T> source,
T target)
Fires a close event on all registered handlers in the handler manager. |
|
static
|
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? |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
---|
assertLive, getSource, isLive, kill, revive |
Methods inherited from class com.google.web.bindery.event.shared.Event |
---|
setSource, toDebugString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CloseEvent(T target, boolean autoClosed)
target
- the targetautoClosed
- whether it is auto closedMethod Detail |
---|
public 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)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |