Class CloseEvent<T>
java.lang.Object
com.google.web.bindery.event.shared.Event<CloseHandler<T>>
com.google.gwt.event.shared.GwtEvent<CloseHandler<T>>
com.google.gwt.event.logical.shared.CloseEvent<T>
- Type Parameters:
T
- the type being closed
Represents a close event.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
CloseEvent
(T target, boolean autoClosed) Creates a new close event. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(CloseHandler<T> handler) Should only be called byHandlerManager
.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.final GwtEvent.Type
<CloseHandler<T>> Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.Gets the target.static GwtEvent.Type
<CloseHandler<?>> getType()
Gets the type associated with this event.boolean
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
-
Constructor Details
-
CloseEvent
Creates a new close event.- Parameters:
target
- the targetautoClosed
- whether it is auto closed
-
-
Method Details
-
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<CloseHandler<T>>
- Returns:
- the type
-
getTarget
Gets the target.- Returns:
- the target
-
isAutoClosed
public boolean isAutoClosed()Was the target automatically closed?- Returns:
- auto closed