helix.util.ui.parameters
Class ListParameter
java.lang.Object
|
+--helix.util.ui.parameters.ObjectParameter
|
+--helix.util.ui.parameters.ListParameter
- All Implemented Interfaces:
- Parameter
- public class ListParameter
- extends ObjectParameter
Represents a Parameter whose value is a list of string.
Each objects of the list value must belong to the domain.
| Methods inherited from class helix.util.ui.parameters.ObjectParameter |
addListener, getConstraint, getDefaultValue, getInitialValue, getKey, getLabel, getType, getValue, getValues, hasConstraints, hasDomainValues, isEnable, isPreferenceSaved, removeListener, setEnable |
ListParameter
public ListParameter(String key,
String label,
List value,
List defaultValue,
Object[] listDomainValues,
boolean isPrefSaved)
throws IllegalArgumentException
- Constructor.
- Parameters:
key - identifier of Parameter (can not be null)label - label which present the parametervalue - initial List value (can not be null)defaultValue - default List value (can not be null)listDomainValues - domain value for List element (if not null must contains value)isPrefSaved - indicates if value could be store in Preferences
setValue
public void setValue(Object value)
throws IllegalArgumentException
- Description copied from class:
ObjectParameter
- Set the value of this parameter.
- Specified by:
setValue in interface Parameter- Overrides:
setValue in class ObjectParameter
- Throws:
IllegalArgumentException - if new value is
null or does not respect constraint or domain values
getListValue
public List getListValue()
- Returns List value.
- Returns:
- java.util.List
getDomainElements
public Set getDomainElements()
- Returns the domain values that list elements must respect.
hasDomainElements
public boolean hasDomainElements()