public class DialogEvent extends Event
Dialog
,
Serialized FormModifier and Type | Field and Description |
---|---|
static EventType<DialogEvent> |
ANY
Common supertype for all dialog event types.
|
static EventType<DialogEvent> |
DIALOG_CLOSE_REQUEST
This event is delivered to a
dialog when there is an external request to close that dialog.
|
static EventType<DialogEvent> |
DIALOG_HIDDEN
This event occurs on dialog just after it is hidden.
|
static EventType<DialogEvent> |
DIALOG_HIDING
This event occurs on dialog just before it is hidden.
|
static EventType<DialogEvent> |
DIALOG_SHOWING
This event occurs on dialog just before it is shown.
|
static EventType<DialogEvent> |
DIALOG_SHOWN
This event occurs on dialog just after it is shown.
|
consumed, eventType, NULL_SOURCE_TARGET, target
source
Constructor and Description |
---|
DialogEvent(Dialog<?> source,
EventType<? extends Event> eventType)
Construct a new
Event with the specified event source, target
and type. |
Modifier and Type | Method and Description |
---|---|
DialogEvent |
copyFor(Object newSource,
EventTarget newTarget)
Creates and returns a copy of this event with the specified event source
and target.
|
DialogEvent |
copyFor(Object newSource,
EventTarget newTarget,
EventType<DialogEvent> type)
Creates a copy of the given event with the given fields substituted.
|
EventType<DialogEvent> |
getEventType()
Gets the event type of this event.
|
String |
toString()
Returns a string representation of this
DialogEvent object. |
getSource
public static final EventType<DialogEvent> ANY
public static final EventType<DialogEvent> DIALOG_SHOWING
public static final EventType<DialogEvent> DIALOG_SHOWN
public static final EventType<DialogEvent> DIALOG_HIDING
public static final EventType<DialogEvent> DIALOG_HIDDEN
public static final EventType<DialogEvent> DIALOG_CLOSE_REQUEST
public DialogEvent(Dialog<?> source, EventType<? extends Event> eventType)
Event
with the specified event source, target
and type. If the source or target is set to null
, it is replaced
by the NULL_SOURCE_TARGET
value.source
- the event source which sent the eventeventType
- the event typepublic String toString()
DialogEvent
object.toString
in class EventObject
DialogEvent
object.public DialogEvent copyFor(Object newSource, EventTarget newTarget)
Event
null
, it is
replaced by the NULL_SOURCE_TARGET
value.public DialogEvent copyFor(Object newSource, EventTarget newTarget, EventType<DialogEvent> type)
newSource
- the new source of the copied eventnewTarget
- the new target of the copied eventtype
- the new eventTypepublic EventType<DialogEvent> getEventType()
Event
Event
class can have different event types. These event types further specify
what kind of event occurred.getEventType
in class Event
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.