Package org.nuclos.api.context
Class InputSpecification
java.lang.Object
org.nuclos.api.context.InputSpecification
- All Implemented Interfaces:
Serializable
Specification of input dialog.
- Author:
- thomas.schiffmann
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Input type to show a ok dialog.static final int
Input type to show a ok/cancel dialog.static final int
Input type to show a yes/no dialog.static final int
Input type to show string memo input dialog (with text area and possibility to enter a line break)static final int
Input type to show a select option dialog.static final int
Input type to show string input dialog.static final int
Variable value for no.static final int
Variable value for ok.static final int
Variable value for yes. -
Constructor Summary
ModifierConstructorDescriptionprotected
for deserialization onlyInputSpecification
(int type, String key, String message) Create a newInputSpecification
InputSpecification
(int type, String key, String message, String title) Create a newInputSpecification
-
Method Summary
Modifier and TypeMethodDescriptionboolean
internal use onlyGet default option (of available options, only applicable for INPUT_OPTION)getKey()
Get the variable key/name.Get the dialog message.Object[]
Get available input options, only applicable for INPUT_OPTION.getTitle()
Get the dialog title.int
getType()
Get input type.void
setApplyForAllMultiEditObjects
(boolean applyForAllMultiEditObjects) void
setDefaultOption
(Object defaultOption) Set default option (of available options, only applicable for INPUT_OPTION)void
setOptions
(Object[] options) Set available input options, only applicable for INPUT_OPTION.
-
Field Details
-
CONFIRM_YES_NO
public static final int CONFIRM_YES_NOInput type to show a yes/no dialog.- See Also:
-
CONFIRM_OK_CANCEL
public static final int CONFIRM_OK_CANCELInput type to show a ok/cancel dialog. If the user choosed cancel, the request won't execute again.- See Also:
-
CONFIRM_OK
public static final int CONFIRM_OKInput type to show a ok dialog.- See Also:
-
OK
public static final int OKVariable value for ok.- See Also:
-
YES
public static final int YESVariable value for yes.- See Also:
-
NO
public static final int NOVariable value for no.- See Also:
-
INPUT_VALUE
public static final int INPUT_VALUEInput type to show string input dialog.- See Also:
-
INPUT_MEMO
public static final int INPUT_MEMOInput type to show string memo input dialog (with text area and possibility to enter a line break)- See Also:
-
INPUT_OPTION
public static final int INPUT_OPTIONInput type to show a select option dialog.- See Also:
-
-
Constructor Details
-
InputSpecification
protected InputSpecification()for deserialization only -
InputSpecification
Create a newInputSpecification
- Parameters:
type
- Input type (CONFIRM_YES_NO, CONFIRM_OK_CANCEL, INPUT_VALUE or INPUT_OPTION)key
- Variable key (to obtain the value)message
- Dialog message
-
InputSpecification
Create a newInputSpecification
- Parameters:
type
- Input type (CONFIRM_YES_NO, CONFIRM_OK_CANCEL, INPUT_VALUE or INPUT_OPTION)key
- Variable key (to obtain the value)message
- Dialog messagetitle
- Dialog title
-
-
Method Details
-
getType
public int getType()Get input type.- Returns:
- Input type
-
getKey
Get the variable key/name.- Returns:
- Variable key/name
-
getMessage
Get the dialog message.- Returns:
- Dialog message
-
getTitle
Get the dialog title.- Returns:
- Dialog title
-
getOptions
Get available input options, only applicable for INPUT_OPTION.- Returns:
- Input options
-
setOptions
Set available input options, only applicable for INPUT_OPTION.- Parameters:
options
- Available input options
-
getDefaultOption
Get default option (of available options, only applicable for INPUT_OPTION)- Returns:
- Default option.
-
setDefaultOption
Set default option (of available options, only applicable for INPUT_OPTION)- Parameters:
defaultOption
- Default option
-
applyForAllMultiEditObjects
public boolean applyForAllMultiEditObjects()internal use only- Returns:
- applyForAllMultiEditObjects
-
setApplyForAllMultiEditObjects
public void setApplyForAllMultiEditObjects(boolean applyForAllMultiEditObjects) - Parameters:
applyForAllMultiEditObjects
- false (default): One input question for every object during a multi edit. true: The client is instructed to ask for the input only once. You have to choose a general key for your input to work as expected, no object specific data within the key.
-