Constructor and Description |
---|
Parameter.Factory() |
Modifier and Type | Method and Description |
---|---|
static ParameterBoolean |
createBoolean(String name,
String label,
Boolean defaultValue)
Creates a new Boolean-typed parameter, using the given attributes.
|
static ParameterSelect |
createSelect(String name,
List<ParameterSelect.SelectItem> items,
String defaultValue)
Creates a new String-typed selection parameter, using the given attributes.
|
static ParameterSelect.SelectItem |
createSelectItem(String label,
String value)
Creates a new SelectItem, based on the given parameter.
|
static ParameterText |
createText(String name,
String placeholder,
String defaultValue)
Creates a new String-typed text input parameter, using the given attributes.
|
public static ParameterBoolean createBoolean(String name, @Nullable String label, @Nullable Boolean defaultValue)
name
- Name of this parameter, must be unique within a ReportPlugin
.label
- The label for the related checkbox on client side.defaultValue
- The default value of this parameter.ParameterBoolean
instancepublic static ParameterSelect createSelect(String name, @Nullable List<ParameterSelect.SelectItem> items, @Nullable String defaultValue)
name
- Name of this parameter, must be unique within a ReportPlugin
.items
- List of selectable items for the related listbox on client side.defaultValue
- The default value of this parameter.ParameterSelect
instancepublic static ParameterSelect.SelectItem createSelectItem(String label, String value)
label
- The label of this item.value
- The value of this item.ParameterSelect.SelectItem
instancepublic static ParameterText createText(String name, @Nullable String placeholder, @Nullable String defaultValue)
name
- Name of this parameter, must be unique within a ReportPlugin
.placeholder
- The default text, if the related textfield is empty. The string will not be used as a value.defaultValue
- The default value of this parameter.ParameterText
instanceCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408