Class SimpleObjectPropertyBuffering<T>
java.lang.Object
javafx.beans.binding.ObjectExpression<T>
javafx.beans.property.ReadOnlyObjectProperty<T>
javafx.beans.property.ObjectProperty<T>
javafx.beans.property.ObjectPropertyBase<T>
javafx.beans.property.SimpleObjectProperty<T>
com.ben12.reta.beans.property.buffering.SimpleObjectPropertyBuffering<T>
- Type Parameters:
T- property value type
- All Implemented Interfaces:
Buffering<javafx.beans.property.Property<T>>,PropertyBuffering<T>,PropertyBufferingValidation<T>,BeanPropertyValidation<T>,PropertyValidation,javafx.beans.Observable,javafx.beans.property.Property<T>,javafx.beans.property.ReadOnlyProperty<T>,javafx.beans.value.ObservableObjectValue<T>,javafx.beans.value.ObservableValue<T>,javafx.beans.value.WritableObjectValue<T>,javafx.beans.value.WritableValue<T>
public class SimpleObjectPropertyBuffering<T>
extends javafx.beans.property.SimpleObjectProperty<T>
implements PropertyBufferingValidation<T>
Simple object property buffering implementation.
- Author:
- BenoƮt Moreau (ben.12)
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanPropertyProperty is buffering.javafx.beans.property.StringPropertyProperty validity info.javafx.beans.property.BooleanPropertyProperty validity. -
Field Summary
Fields inherited from interface com.ben12.reta.beans.property.validation.BeanPropertyValidation
DEFAULT_VALIDATOR -
Constructor Summary
ConstructorsConstructorDescriptionSimpleObjectPropertyBuffering(Class<?> newBeanType, String newPropertyName, javafx.beans.property.Property<T> newSubject) SimpleObjectPropertyBuffering(javafx.beans.property.Property<T> newSubject) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.BooleanPropertyProperty is buffering.voidcommit()Commits change.Class<?> javafx.beans.property.Property<T> javafx.beans.property.StringPropertyProperty validity info.booleanvoidrevert()Reverts change.voidsetEqualsBuffering(boolean newEqualsBuffering) javafx.beans.property.BooleanPropertyProperty validity.Methods inherited from class javafx.beans.property.SimpleObjectProperty
getBean, getNameMethods inherited from class javafx.beans.property.ObjectPropertyBase
addListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, set, toString, unbindMethods inherited from class javafx.beans.property.ObjectProperty
bindBidirectional, setValue, unbindBidirectionalMethods inherited from class javafx.beans.binding.ObjectExpression
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ben12.reta.beans.property.validation.BeanPropertyValidation
get, validateMethods inherited from interface com.ben12.reta.beans.property.buffering.Buffering
isBufferingMethods inherited from interface javafx.beans.Observable
addListener, removeListener, subscribeMethods inherited from interface javafx.beans.value.ObservableValue
addListener, flatMap, getValue, map, orElse, removeListener, subscribe, subscribe, whenMethods inherited from interface javafx.beans.property.Property
bind, bindBidirectional, isBound, unbind, unbindBidirectionalMethods inherited from interface com.ben12.reta.beans.property.validation.PropertyValidation
bindValidation, unbindValidationMethods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getNameMethods inherited from interface javafx.beans.value.WritableValue
getValue, setValue
-
Property Details
-
buffering
public javafx.beans.property.BooleanProperty bufferingPropertyProperty is buffering.- Specified by:
bufferingPropertyin interfaceBuffering<T>- Returns:
- buffering property
- See Also:
-
validity
public javafx.beans.property.BooleanProperty validityPropertyProperty validity.- Specified by:
validityPropertyin interfacePropertyValidation- Returns:
- Validity property
- See Also:
-
infoValidity
public javafx.beans.property.StringProperty infoValidityPropertyProperty validity info.- Specified by:
infoValidityPropertyin interfacePropertyValidation- Returns:
- Validation info property
- See Also:
-
-
Constructor Details
-
SimpleObjectPropertyBuffering
- Parameters:
newSubject- subject property to buffer
-
SimpleObjectPropertyBuffering
public SimpleObjectPropertyBuffering(Class<?> newBeanType, String newPropertyName, javafx.beans.property.Property<T> newSubject) - Parameters:
newBeanType- bean typenewPropertyName- bean property namenewSubject- property value
-
-
Method Details
-
getSubject
- Specified by:
getSubjectin interfaceBuffering<T>- Returns:
- buffered subject
-
getBeanType
- Specified by:
getBeanTypein interfaceBeanPropertyValidation<T>- Returns:
- bean type containing the value to validate
-
getPropertyName
- Specified by:
getPropertyNamein interfaceBeanPropertyValidation<T>- Returns:
- property name in the
BeanPropertyValidation.getBeanType()to validate
-
bufferingProperty
public javafx.beans.property.BooleanProperty bufferingProperty()Property is buffering.- Specified by:
bufferingPropertyin interfaceBuffering<T>- Returns:
- the
bufferingproperty - See Also:
-
isEqualsBuffering
public boolean isEqualsBuffering()- Specified by:
isEqualsBufferingin interfaceBuffering<T>- Returns:
- the equalsBuffering
-
setEqualsBuffering
public void setEqualsBuffering(boolean newEqualsBuffering) - Specified by:
setEqualsBufferingin interfaceBuffering<T>- Parameters:
newEqualsBuffering- the equalsBuffering to set
-
commit
public void commit()Description copied from interface:BufferingCommits change. -
revert
public void revert()Description copied from interface:BufferingReverts change. -
validityProperty
public javafx.beans.property.BooleanProperty validityProperty()Property validity.- Specified by:
validityPropertyin interfacePropertyValidation- Returns:
- the
validityproperty
-
infoValidityProperty
public javafx.beans.property.StringProperty infoValidityProperty()Property validity info.- Specified by:
infoValidityPropertyin interfacePropertyValidation- Returns:
- the
infoValidityproperty
-