@GwtCompatible public class ParameterSelect extends Object implements Parameter<String>
Modifier and Type | Class and Description |
---|---|
static class |
ParameterSelect.SelectItem
Definition for a selectable item.
|
Constructor and Description |
---|
ParameterSelect(String name,
List<ParameterSelect.SelectItem> items,
String defaultValue)
Creates a new String-typed selection parameter, using the given attributes.
|
Modifier and Type | Method and Description |
---|---|
String |
cast(Object object)
Cast's the given object to the parameter's value type.
|
String |
getDefaultValue()
Provides the parameter's default value.
|
List<ParameterSelect.SelectItem> |
getItems()
Returns the list of selectable items for the related listbox on client side.
|
String |
getName()
Privides the parameter's name.
|
public ParameterSelect(String name, List<ParameterSelect.SelectItem> items, @Nullable String defaultValue)
name
- Name of this parameter, should be unique within a WebeditReportPlugin
.items
- List of selectable items for the related listbox on client side.defaultValue
- The default value of this parameter.public String getName()
public String getDefaultValue()
getDefaultValue
in interface Parameter<String>
public List<ParameterSelect.SelectItem> getItems()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500