|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
V - The type of values contained in the model.public interface SelectModel<V>
A model for selecting one or more values from a collection. The model must be thread-safe, synchronized on itself. Any iteration over values should include synchronization on the instance of this interface.
| Field Summary |
|---|
| Fields inherited from interface com.guiseframework.model.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Method Summary | |
|---|---|
V |
getSelectedValue()
Determines the selected value. |
V[] |
getSelectedValues()
Determines the selected values. |
boolean |
replace(V oldValue,
V newValue)
Replaces the first occurrence in the of the given value with its replacement. |
void |
setSelectedValues(V... values)
Sets the selected values. |
| Methods inherited from interface com.guiseframework.model.ValueModel |
|---|
clearValue, getDefaultValue, getValidator, getValue, getValueClass, isValidValue, resetValue, setValidator, setValue, validateValue |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.globalmentor.beans.PropertyConstrainable |
|---|
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
boolean replace(V oldValue,
V newValue)
oldValue - The value for which to search.newValue - The replacement value.
V getSelectedValue()
null if no value is currently selected.V[] getSelectedValues()
void setSelectedValues(V... values)
throws java.beans.PropertyVetoException
Throwable.getCause().
This method delegates to the selection strategy.
values - The values to select.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||