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.BooleanProperty
Property is buffering.javafx.beans.property.StringProperty
Property validity info.javafx.beans.property.BooleanProperty
Property 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.BooleanProperty
Property is buffering.void
commit()
Commits change.Class
<?> javafx.beans.property.Property
<T> javafx.beans.property.StringProperty
Property validity info.boolean
void
revert()
Reverts change.void
setEqualsBuffering
(boolean newEqualsBuffering) javafx.beans.property.BooleanProperty
Property validity.Methods inherited from class javafx.beans.property.SimpleObjectProperty
getBean, getName
Methods inherited from class javafx.beans.property.ObjectPropertyBase
addListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, set, toString, unbind
Methods inherited from class javafx.beans.property.ObjectProperty
bindBidirectional, setValue, unbindBidirectional
Methods inherited from class javafx.beans.binding.ObjectExpression
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.ben12.reta.beans.property.validation.BeanPropertyValidation
get, validate
Methods inherited from interface com.ben12.reta.beans.property.buffering.Buffering
isBuffering
Methods inherited from interface javafx.beans.Observable
addListener, removeListener, subscribe
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, flatMap, getValue, map, orElse, removeListener, subscribe, subscribe, when
Methods inherited from interface javafx.beans.property.Property
bind, bindBidirectional, isBound, unbind, unbindBidirectional
Methods inherited from interface com.ben12.reta.beans.property.validation.PropertyValidation
bindValidation, unbindValidation
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
Methods inherited from interface javafx.beans.value.WritableValue
getValue, setValue
-
Property Details
-
buffering
public javafx.beans.property.BooleanProperty bufferingPropertyProperty is buffering.- Specified by:
bufferingProperty
in interfaceBuffering<T>
- Returns:
- buffering property
- See Also:
-
validity
public javafx.beans.property.BooleanProperty validityPropertyProperty validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- Validity property
- See Also:
-
infoValidity
public javafx.beans.property.StringProperty infoValidityPropertyProperty validity info.- Specified by:
infoValidityProperty
in 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:
getSubject
in interfaceBuffering<T>
- Returns:
- buffered subject
-
getBeanType
- Specified by:
getBeanType
in interfaceBeanPropertyValidation<T>
- Returns:
- bean type containing the value to validate
-
getPropertyName
- Specified by:
getPropertyName
in interfaceBeanPropertyValidation<T>
- Returns:
- property name in the
BeanPropertyValidation.getBeanType()
to validate
-
bufferingProperty
public javafx.beans.property.BooleanProperty bufferingProperty()Property is buffering.- Specified by:
bufferingProperty
in interfaceBuffering<T>
- Returns:
- the
buffering
property - See Also:
-
isEqualsBuffering
public boolean isEqualsBuffering()- Specified by:
isEqualsBuffering
in interfaceBuffering<T>
- Returns:
- the equalsBuffering
-
setEqualsBuffering
public void setEqualsBuffering(boolean newEqualsBuffering) - Specified by:
setEqualsBuffering
in interfaceBuffering<T>
- Parameters:
newEqualsBuffering
- the equalsBuffering to set
-
commit
public void commit()Description copied from interface:Buffering
Commits change. -
revert
public void revert()Description copied from interface:Buffering
Reverts change. -
validityProperty
public javafx.beans.property.BooleanProperty validityProperty()Property validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- the
validity
property
-
infoValidityProperty
public javafx.beans.property.StringProperty infoValidityProperty()Property validity info.- Specified by:
infoValidityProperty
in interfacePropertyValidation
- Returns:
- the
infoValidity
property
-