public static class InputDialog.InputDialogResult
extends java.lang.Object
DialogActions
in the input dialog.Dialogs.InputDialogBuilder#withActions(DialogActions, Consumer)
Modifier and Type | Class and Description |
---|---|
static class |
InputDialog.InputDialogResult.ActionType |
Modifier and Type | Field and Description |
---|---|
protected CloseAction |
closeAction |
protected java.util.Map<java.lang.String,java.lang.Object> |
values |
Constructor and Description |
---|
InputDialogResult(java.util.Map<java.lang.String,java.lang.Object> values,
CloseAction closeAction) |
Modifier and Type | Method and Description |
---|---|
boolean |
closedWith(DialogOutcome outcome)
Checks that the dialog was closed with the given
outcome . |
CloseAction |
getCloseAction() |
InputDialog.InputDialogResult.ActionType |
getCloseActionType()
Returns result action which was clicked in the dialog, e.g.
|
<T> java.util.Optional<T> |
getOptional(java.lang.String parameterId)
Returns optional value from parameter by its id.
|
<T> T |
getValue(java.lang.String parameterId) |
java.util.Map<java.lang.String,java.lang.Object> |
getValues()
Returns values from parameters.
|
protected java.util.Map<java.lang.String,java.lang.Object> values
protected CloseAction closeAction
public InputDialogResult(java.util.Map<java.lang.String,java.lang.Object> values, CloseAction closeAction)
public java.util.Map<java.lang.String,java.lang.Object> getValues()
@Nullable public <T> T getValue(java.lang.String parameterId)
parameterId
- parameter idpublic <T> java.util.Optional<T> getOptional(java.lang.String parameterId)
parameterId
- parameter idpublic CloseAction getCloseAction()
InputDialog.INPUT_DIALOG_OK_ACTION
,
InputDialog.INPUT_DIALOG_CANCEL_ACTION
,
InputDialog.INPUT_DIALOG_YES_ACTION
,
InputDialog.INPUT_DIALOG_NO_ACTION
public InputDialog.InputDialogResult.ActionType getCloseActionType()
public boolean closedWith(DialogOutcome outcome)
outcome
.