Package com.groiss.smartclient
Class ClientUtil.DialogConfiguration
java.lang.Object
com.groiss.smartclient.ClientUtil.DialogConfiguration
- Enclosing class:
- ClientUtil
A configuration object that holds all the settings to be used for presenting the requested dialog on the clientside
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
forClientUtil.DialogConfiguration.Type.CHOICE
dialogs to specify the kind of input to be used for the optionsstatic enum
Type of dialog. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
get the titlegetType()
get the type of dialogdefine which kind of control to be used. default value:ClientUtil.DialogConfiguration.ChoiceType.RADIO
setConfirmValue
(String confirmValue) define what value will be submitted when confirming theClientUtil.DialogConfiguration.Type.CONFIRM
-dialog default value: "true"setMessage
(String message) set the dialog messagesetOptions
(Collection<Pair<String, String>> options) set the options to be used forClientUtil.DialogConfiguration.Type.CHOICE
set the dialog-title, default value:Question
set the type of dialog to be used, default value:ClientUtil.DialogConfiguration.Type.CONFIRM
-
Constructor Details
-
DialogConfiguration
public DialogConfiguration()
-
-
Method Details
-
setMessage
set the dialog message- Parameters:
message
-- Returns:
- the current
ClientUtil.DialogConfiguration
for joining
-
getMessage
- Returns:
- the message
-
setTitle
set the dialog-title, default value:Question
- Parameters:
title
-- Returns:
- the current
ClientUtil.DialogConfiguration
for joining
-
getTitle
get the title- Returns:
-
setType
set the type of dialog to be used, default value:ClientUtil.DialogConfiguration.Type.CONFIRM
- Parameters:
type
-- Returns:
- the current
ClientUtil.DialogConfiguration
for joining
-
getType
get the type of dialog- Returns:
-
setOptions
set the options to be used forClientUtil.DialogConfiguration.Type.CHOICE
- Parameters:
options
-- Returns:
-
getOptions
- Returns:
- the choices
-
getChoiceType
- Returns:
- the choiceType
-
setChoiceType
define which kind of control to be used. default value:ClientUtil.DialogConfiguration.ChoiceType.RADIO
- Parameters:
type
-- Returns:
-
setConfirmValue
define what value will be submitted when confirming theClientUtil.DialogConfiguration.Type.CONFIRM
-dialog default value: "true"- Parameters:
confirmValue
- the confirmValue to set
-
getConfirmValue
- Returns:
- the confirmValue
-