public class ImmutableListPropertyField<M,E,T extends javafx.collections.ObservableList<E>,R extends javafx.beans.property.Property<T>> extends Object implements ImmutablePropertyField<T,M,R>
| Constructor and Description |
|---|
ImmutableListPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
ListGetter<M,E> getter,
ListImmutableSetter<M,E> immutableSetter,
java.util.function.Supplier<javafx.beans.property.ListProperty<E>> propertySupplier) |
ImmutableListPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
ListGetter<M,E> getter,
ListImmutableSetter<M,E> immutableSetter,
java.util.function.Supplier<javafx.beans.property.ListProperty<E>> propertySupplier,
List<E> defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(M wrappedObject) |
M |
commitImmutable(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 ImmutableListPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
ListGetter<M,E> getter,
ListImmutableSetter<M,E> immutableSetter,
java.util.function.Supplier<javafx.beans.property.ListProperty<E>> propertySupplier)
public ImmutableListPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
ListGetter<M,E> getter,
ListImmutableSetter<M,E> immutableSetter,
java.util.function.Supplier<javafx.beans.property.ListProperty<E>> propertySupplier,
List<E> defaultValue)
public void commit(M wrappedObject)
public M commitImmutable(M wrappedObject)
commitImmutable in interface ImmutablePropertyField<T extends javafx.collections.ObservableList<E>,M,R extends javafx.beans.property.Property<T>>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.