public class ObjectParameter<T> extends DiscreteParameter
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
description
Constructor and Description |
---|
ObjectParameter(String label,
T[] objects) |
ObjectParameter(String label,
T[] objects,
T value) |
Modifier and Type | Method and Description |
---|---|
T |
getObject() |
T[] |
getObjects() |
ObjectParameter<T> |
setDescription(String description) |
ObjectParameter<T> |
setObjects(T[] objects)
Set a list of objects for the parameter
|
DiscreteParameter |
setRange(int minValue,
int maxValue)
Sets the range from [minValue, maxValue-1] inclusive
|
LXParameter |
setValue(Object object) |
decrement, decrement, decrement, decrement, getMaxValue, getMinValue, getNormalized, getNormalizedf, getOption, getOptions, getRange, getValuei, increment, increment, increment, increment, setNormalized, setOptions, setRange, updateValue
getExponent, isMappable, setExponent, setMappable
addListener, bang, dispose, getDescription, getFormatter, getLabel, getParent, getPath, getPolarity, getUnits, getValue, getValuef, incrementValue, removeListener, reset, reset, setComponent, setFormatter, setPolarity, setUnits, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getDescription, getFormatter, getLabel, getPolarity, getUnits, getValue, getValuef, reset, setComponent, setValue
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent, getPath
public ObjectParameter<T> setDescription(String description)
setDescription
in class DiscreteParameter
public ObjectParameter<T> setObjects(T[] objects)
objects
- Array of arbitrary object valuespublic DiscreteParameter setRange(int minValue, int maxValue)
DiscreteParameter
setRange
in class DiscreteParameter
minValue
- Minimum valuemaxValue
- Maximum value, exclusivepublic LXParameter setValue(Object object)
public T[] getObjects()
public T getObject()
LX library by Mark C. Slee. © 2012-2020