public class ModalEvent extends Event
Modifier and Type | Field and Description |
---|---|
static EventType<ModalEvent> |
ANY
Common supertype for all
ModalEvent events. |
static EventType<ModalEvent> |
TERMINATED
This event occurs just after a modal task has terminated with a result.
|
consumed, eventType, NULL_SOURCE_TARGET, target
source
Constructor and Description |
---|
ModalEvent(Object result)
Creates a new
ModalEvent with an event type of TERMINATED . |
Modifier and Type | Method and Description |
---|---|
<T> T |
getResult(Class<T> type)
Returns the result object cast to the specified type.
|
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
getSource, toString
public static final EventType<ModalEvent> TERMINATED
public static final EventType<ModalEvent> ANY
ModalEvent
events.public ModalEvent(Object result)
ModalEvent
with an event type of TERMINATED
.result
- the result of the event.public final <T> T getResult(Class<T> type)
T
- the required type of the result object.type
- the required class type of the result object.null
if none available.NullPointerException
- if type
is null
.ClassCastException
- if result is not an instance of type
.Copyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.