VALUE
- is the generic type of the selectable values
.public interface AttributeWriteSelectedValue<VALUE> extends AttributeReadSelectedValue<VALUE>
value(s)
(items) of
an object.Modifier and Type | Method and Description |
---|---|
boolean |
setSelectedValue(VALUE selectedValue)
This method sets the value currently selected.
|
boolean |
setSelectedValues(Collection<VALUE> selectedValues)
This method sets the
values currently selected . |
getSelectedValue, getSelectedValues, getSelectionCount, hasSelectedValue
boolean setSelectedValue(VALUE selectedValue)
currently selected values
and select the given value.selectedValue
- is the value to select
.true
if the operation was successful, false
otherwise (the given
selectedValue
is not contained in this object and cannot be selected).boolean setSelectedValues(Collection<VALUE> selectedValues)
values currently selected
. All values that are NOT
available, will be ignored. SelectionMode.SINGLE_SELECTION
you shall not provide a
Collection
with more than one element. So you should then use setSelectedValue(Object)
instead. AttributeReadSelectedValue.getSelectedValues()
after this method the items may be in a different
order. Additionally the result of AttributeReadSelectedValue.getSelectedValue()
will contain elements that are actually
items available in this object. So e.g. if you have a list of items and call this method to select two
items but only one of them is actually available in the list, then only that one is selected and
therefore returned by AttributeReadSelectedValue.getSelectedValues()
.selectedValues
- is the Collection
with the values to select
.true
if the operation was successful and all selectedValues
have been
selected, false
otherwise (at least one item out of selectedValues
is
not contained in this object and cannot be selected).Copyright © 2001–2016 mmm-Team. All rights reserved.