|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.model.AbstractModelGroup<ValueModel<V>>
com.guiseframework.model.ValuePolicyModelGroup<V>
V - The type of value contained in the value model.public abstract class ValuePolicyModelGroup<V>
An abstract implementation of a group of value models implementing a value policy across several models, such as mutual exclusion. When value models are added to the list, the group adds itself as a property value change listeners to the model, listening for changes in the value.
ValueModel| Constructor Summary | |
|---|---|
ValuePolicyModelGroup(ValueModel<V>... models)
Model constructor. |
|
| Method Summary | |
|---|---|
protected void |
addImpl(ValueModel<V> valueModel)
Actual implementation of adding a model to the group. |
void |
propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Called when a bound property is changed. |
protected void |
removeImpl(ValueModel<V> valueModel)
Actual implementation of removing a model from the group. |
| Methods inherited from class com.guiseframework.model.AbstractModelGroup |
|---|
add, contains, getModelSet, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.globalmentor.beans.GenericPropertyChangeListener |
|---|
propertyChange |
| Constructor Detail |
|---|
public ValuePolicyModelGroup(ValueModel<V>... models)
models - Zero or more models with which to initially place in the group.
java.lang.NullPointerException - if one of the models is null.| Method Detail |
|---|
protected void addImpl(ValueModel<V> valueModel)
addImpl in class AbstractModelGroup<ValueModel<V>>valueModel - The model to add to the group.protected void removeImpl(ValueModel<V> valueModel)
removeImpl in class AbstractModelGroup<ValueModel<V>>valueModel - The model to remove from the group.public final void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChangeEvent - An event object describing the event source, the property that has changed, and its old and new values.GenericPropertyChangeListener.propertyChange(GenericPropertyChangeEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||