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,
Dc pDialog,
boolean pDispose,
boolean pForceClose)
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.
|
CloseDialogEvent(Object pSource,
String pDialogName,
boolean pDispose,
boolean pForceClose)
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.
|
boolean |
isForceClose()
Returns if the close is forced.
|
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, String pDialogName, boolean pDispose, boolean pForceClose)
pSource - the senderpDialogName - the dialog namepDispose - flag if we should also dispose the dialogpForceClose - flag if we should skip asking the Dc if it can passivatepublic CloseDialogEvent(Object pSource, Dc pDialog)
pSource - the senderpDialog - the dialog objectpublic CloseDialogEvent(Object pSource, Dc pDialog, boolean pDispose)
pSource - the senderpDialog - the dialog objectpDispose - flag if we should also dispose the dialogpublic CloseDialogEvent(Object pSource, Dc pDialog, boolean pDispose, boolean pForceClose)
pSource - the senderpDialog - the dialog objectpDispose - flag if we should also dispose the dialogpForceClose - flag if we should skip asking the Dc if it can passivatepublic 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 boolean isForceClose()
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 © 2022 Jürgen Zeller (privat). All rights reserved.