T - E - the type of the list elements.public class BeanSetPropertyField<M,E,T extends javafx.collections.ObservableSet<E>,R extends javafx.beans.property.Property<T>> extends Object
PropertyField that is used when the field of the model class is a Set and is not a JavaFX SetProperty but is following the old Java-Beans standard, i.e. there is getter and setter method for the field.| Constructor and Description |
|---|
BeanSetPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
SetGetter<M,E> getter,
SetSetter<M,E> setter,
java.util.function.Supplier<javafx.beans.property.SetProperty<E>> propertySupplier) |
BeanSetPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
SetGetter<M,E> getter,
SetSetter<M,E> setter,
java.util.function.Supplier<javafx.beans.property.SetProperty<E>> propertySupplier,
Set<E> defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(M wrappedObject) |
R |
getProperty() |
boolean |
isDifferent(M wrappedObject)
Determines if the value in the model object and the property field are different or not.
|
void |
reload(M wrappedObject) |
void |
resetToDefault() |
void |
updateDefault(M wrappedObject) |
public BeanSetPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
SetGetter<M,E> getter,
SetSetter<M,E> setter,
java.util.function.Supplier<javafx.beans.property.SetProperty<E>> propertySupplier)
public void commit(M wrappedObject)
public void reload(M wrappedObject)
public void resetToDefault()
public void updateDefault(M wrappedObject)
public R getProperty()
public boolean isDifferent(M wrappedObject)
ModelWrapper.differentProperty() flag.wrappedObject - the wrapped model objectfalse if both the wrapped model object and the property field have the same value,
otherwise trueCopyright © 2019 Saxonia Systems AG. All rights reserved.