T
- the type of valuepublic interface HasConstrainedValue<T> extends HasValue<T>
It is up to the implementation to decide (and document) how to behave when
HasValue.setValue(Object)
is called with a value that is not in the
acceptable set. For example, throwing an IllegalArgumentException
, or
quietly adding the value to the acceptable set, are both reasonable choices.
Modifier and Type | Method and Description |
---|---|
void |
setAcceptableValues(java.util.Collection<T> values)
Set the acceptable values.
|
getValue, setValue, setValue
addValueChangeHandler
fireEvent
void setAcceptableValues(java.util.Collection<T> values)
values
- the acceptible values