public class CloseDialogEvent extends AppEvent
source| Constructor and Description |
|---|
CloseDialogEvent(Object pSource,
Dc pDialog)
Creates a new close dialog.
|
CloseDialogEvent(Object pSource,
Dc pDialog,
boolean pDispose)
Creates a new close dialog.
|
CloseDialogEvent(Object pSource,
String pDialogName)
Creates a new close dialog.
|
CloseDialogEvent(Object pSource,
String pDialogName,
boolean pDispose)
Creates a new close dialog.
|
| Modifier and Type | Method and Description |
|---|---|
Dc |
getDialog()
The dialog Dc of this close event.
|
String |
getDialogId()
The dialog id of this close event.
|
Map<String,Object> |
getResult()
Return the result of a close.
|
boolean |
getWasClosed()
Was the dialog really closed by this event?
|
boolean |
hasDialogId()
Checks if the close event contains a dialog id and not a Dc object.
|
boolean |
isDispose()
Returns if the dialog should be disposed after de-activating.
|
void |
setResult(Map<String,Object> pResult)
Set the result of a close.
|
void |
setWasClosed(boolean pWasClosed)
Set the flag if the dialog was really closed.
|
consume, forward, isConsumed, toStringgetSourcepublic CloseDialogEvent(Object pSource, String pDialogName)
pSource - the senderpDialogName - the dialog namepublic CloseDialogEvent(Object pSource, String pDialogName, boolean pDispose)
pSource - the senderpDialogName - the dialog namepDispose - flag if we should also dispose the dialogpublic CloseDialogEvent(Object pSource, Dc pDialog)
pSource - the senderpDialog - the dialog objectpublic boolean hasDialogId()
public String getDialogId()
IllegalStateException - if this event contains no dialog stringpublic Dc getDialog()
IllegalStateException - if this event contains no Dc objectpublic boolean isDispose()
public Map<String,Object> getResult()
public void setResult(Map<String,Object> pResult)
pResult - the result, must not be nullpublic boolean getWasClosed()
public void setWasClosed(boolean pWasClosed)
pWasClosed - true if the dialog was closedCopyright © 2014 Jürgen Zeller (privat). All rights reserved.