public class DialogEvent
extends Event
Dialog
Modifier and Type | Field and Description |
---|---|
static <any> |
ANY
Common supertype for all dialog event types.
|
static <any> |
DIALOG_CLOSE_REQUEST
This event is delivered to a
dialog when there is an external request to close that dialog.
|
static <any> |
DIALOG_HIDDEN
This event occurs on dialog just after it is hidden.
|
static <any> |
DIALOG_HIDING
This event occurs on dialog just before it is hidden.
|
static <any> |
DIALOG_SHOWING
This event occurs on dialog just before it is shown.
|
static <any> |
DIALOG_SHOWN
This event occurs on dialog just after it is shown.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
DialogEvent(Dialog<?> source,
<any> eventType)
Construct a new
Event with the specified event source, target
and type. |
Modifier and Type | Method and Description |
---|---|
DialogEvent |
copyFor(java.lang.Object newSource,
EventTarget newTarget) |
DialogEvent |
copyFor(java.lang.Object newSource,
EventTarget newTarget,
<any> type)
Creates a copy of the given event with the given fields substituted.
|
<any> |
getEventType() |
java.lang.String |
toString()
Returns a string representation of this
DialogEvent object. |
private static final long serialVersionUID
public static final <any> ANY
public static final <any> DIALOG_SHOWING
public static final <any> DIALOG_SHOWN
public static final <any> DIALOG_HIDING
public static final <any> DIALOG_HIDDEN
public static final <any> DIALOG_CLOSE_REQUEST
public DialogEvent(Dialog<?> source, <any> 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 java.lang.String toString()
DialogEvent
object.DialogEvent
object.public DialogEvent copyFor(java.lang.Object newSource, EventTarget newTarget)
public DialogEvent copyFor(java.lang.Object newSource, EventTarget newTarget, <any> type)
newSource
- the new source of the copied eventnewTarget
- the new target of the copied eventtype
- the new eventTypepublic <any> getEventType()