public class ImmutableBeanPropertyField<T,M,R extends javafx.beans.property.Property<T>> extends Object implements ImmutablePropertyField<T,M,R>
| Constructor and Description |
|---|
ImmutableBeanPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
java.util.function.Function<M,T> getter,
java.util.function.BiFunction<M,T,M> immutableSetter,
java.util.function.Supplier<R> propertySupplier) |
ImmutableBeanPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
java.util.function.Function<M,T> getter,
java.util.function.BiFunction<M,T,M> immutableSetter,
T defaultValue,
java.util.function.Supplier<R> propertySupplier) |
| 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 ImmutableBeanPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
java.util.function.Function<M,T> getter,
java.util.function.BiFunction<M,T,M> immutableSetter,
java.util.function.Supplier<R> propertySupplier)
public ImmutableBeanPropertyField(de.saxsys.mvvmfx.internal.SideEffect updateFunction,
java.util.function.Function<M,T> getter,
java.util.function.BiFunction<M,T,M> immutableSetter,
T defaultValue,
java.util.function.Supplier<R> propertySupplier)
public void commit(M wrappedObject)
public M commitImmutable(M wrappedObject)
commitImmutable in interface ImmutablePropertyField<T,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.