public class OpenDialogEvent extends AppEvent
source
Constructor and Description |
---|
OpenDialogEvent(Object pSource,
Dc pDialog)
Create a new open dialog event.
|
OpenDialogEvent(Object pSource,
Dc pDialog,
Map<String,Object> pDialogArguments)
Create a new open dialog event.
|
OpenDialogEvent(Object pSource,
String pDialogId)
Create a new open dialog event.
|
OpenDialogEvent(Object pSource,
String pDialogId,
Map<String,Object> pDialogArguments)
Create a new open dialog event.
|
Modifier and Type | Method and Description |
---|---|
Dc |
getDialog()
The dialog Dc of this open event.
|
Map<String,Object> |
getDialogArguments()
Returns arguments for the doPassivate() call.
|
String |
getDialogId()
The dialog id of this open event.
|
Map<String,Object> |
getDialogResults()
Returns the result of a open, this is only useful for modal dialogs, non-modal
dialogs will always return an empty map.
|
boolean |
hasDialogId()
Checks if the open event contains a dialog id and not a Dc object.
|
void |
setDialogResults(Map<String,Object> pDialogResults)
Set the results of the open, this should be used called after opening
a model dialog.
|
consume, forward, isConsumed, toString
getSource
public OpenDialogEvent(Object pSource, String pDialogId)
pSource
- the object requesting the open, must not be nullpDialogId
- the dialog id of the to be opend dialogpublic OpenDialogEvent(Object pSource, String pDialogId, Map<String,Object> pDialogArguments)
pSource
- the object requesting the open, must not be nullpDialogId
- the dialog id of the to be opend dialogpDialogArguments
- arguments for the doPassivate() call, may be nullpublic OpenDialogEvent(Object pSource, Dc pDialog)
pSource
- the object requesting the open, must not be nullpDialog
- the dialog object that should be opend, must not be nullpublic OpenDialogEvent(Object pSource, Dc pDialog, Map<String,Object> pDialogArguments)
pSource
- the object requesting the open, must not be nullpDialog
- the dialog object that should be opend, must not be nullpDialogArguments
- arguments for the doActivate() call, may be nullpublic boolean hasDialogId()
public String getDialogId()
IllegalStateException
- if this event contains no dialog stringpublic Dc getDialog()
IllegalStateException
- if this event contains no Dc objectpublic Map<String,Object> getDialogArguments()
public Map<String,Object> getDialogResults()
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.