Class ObservableMapBuffering<K,E>
java.lang.Object
javafx.beans.binding.MapExpression<K,E>
javafx.beans.property.ReadOnlyMapProperty<K,E>
javafx.beans.property.MapProperty<K,E>
javafx.beans.property.MapPropertyBase<K,E>
javafx.beans.property.SimpleMapProperty<K,E>
com.ben12.reta.beans.property.buffering.ObservableMapBuffering<K,E>
- Type Parameters:
K- map key typeE- map value type
- All Implemented Interfaces:
Buffering<javafx.collections.ObservableMap<K,,E>> BeanPropertyValidation<javafx.collections.ObservableMap<K,,E>> PropertyValidation,Map<K,,E> javafx.beans.Observable,javafx.beans.property.Property<javafx.collections.ObservableMap<K,,E>> javafx.beans.property.ReadOnlyProperty<javafx.collections.ObservableMap<K,,E>> javafx.beans.value.ObservableMapValue<K,,E> javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableMap<K,,E>> javafx.beans.value.ObservableValue<javafx.collections.ObservableMap<K,,E>> javafx.beans.value.WritableMapValue<K,,E> javafx.beans.value.WritableObjectValue<javafx.collections.ObservableMap<K,,E>> javafx.beans.value.WritableValue<javafx.collections.ObservableMap<K,,E>> javafx.collections.ObservableMap<K,E>
public class ObservableMapBuffering<K,E>
extends javafx.beans.property.SimpleMapProperty<K,E>
implements Buffering<javafx.collections.ObservableMap<K,E>>, BeanPropertyValidation<javafx.collections.ObservableMap<K,E>>
Observable map buffering.
- Author:
- BenoƮt Moreau (ben.12)
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanPropertyMap is buffering.javafx.beans.property.StringPropertyMap validity info.javafx.beans.property.BooleanPropertyMap validity.Properties inherited from class javafx.beans.property.MapPropertyBase
empty, size -
Nested Class Summary
-
Field Summary
Fields inherited from interface com.ben12.reta.beans.property.validation.BeanPropertyValidation
DEFAULT_VALIDATOR -
Constructor Summary
ConstructorsConstructorDescriptionObservableMapBuffering(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableMap<K, E> newSubject) ObservableMapBuffering(javafx.collections.ObservableMap<K, E> newSubject) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.BooleanPropertyMap is buffering.voidcommit()Commits change.Class<?> javafx.beans.property.StringPropertyMap validity info.booleanvoidrevert()Reverts change.voidsetEqualsBuffering(boolean newEqualsBuffering) javafx.beans.property.BooleanPropertyMap validity.Methods inherited from class javafx.beans.property.SimpleMapProperty
getBean, getNameMethods inherited from class javafx.beans.property.MapPropertyBase
addListener, addListener, addListener, bind, emptyProperty, fireValueChangedEvent, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, toString, unbindMethods inherited from class javafx.beans.property.MapProperty
bindBidirectional, setValue, unbindBidirectionalMethods inherited from class javafx.beans.property.ReadOnlyMapProperty
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectionalMethods inherited from class javafx.beans.binding.MapExpression
asString, clear, containsKey, containsValue, entrySet, get, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keySet, mapExpression, put, putAll, remove, size, valueAt, valueAt, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, 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 java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface javafx.beans.Observable
subscribeMethods inherited from interface javafx.beans.value.ObservableValue
flatMap, getValue, map, orElse, subscribe, subscribe, whenMethods inherited from interface com.ben12.reta.beans.property.validation.PropertyValidation
bindValidation, unbindValidationMethods inherited from interface javafx.beans.value.WritableValue
getValue
-
Property Details
-
validity
public javafx.beans.property.BooleanProperty validityPropertyMap validity.- Specified by:
validityPropertyin interfacePropertyValidation- Returns:
- Validity property
- See Also:
-
infoValidity
public javafx.beans.property.StringProperty infoValidityPropertyMap validity info.- Specified by:
infoValidityPropertyin interfacePropertyValidation- Returns:
- Validation info property
- See Also:
-
buffering
public javafx.beans.property.BooleanProperty bufferingPropertyMap is buffering.- Specified by:
bufferingPropertyin interfaceBuffering<K>- Returns:
- buffering property
- See Also:
-
-
Constructor Details
-
ObservableMapBuffering
- Parameters:
newSubject- subject map to buffer
-
ObservableMapBuffering
public ObservableMapBuffering(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableMap<K, E> newSubject) - Parameters:
newBeanType- bean typenewPropertyName- bean property namenewSubject- property value
-
-
Method Details
-
getBeanType
- Specified by:
getBeanTypein interfaceBeanPropertyValidation<K>- Returns:
- bean type containing the value to validate
-
getPropertyName
- Specified by:
getPropertyNamein interfaceBeanPropertyValidation<K>- Returns:
- property name in the
BeanPropertyValidation.getBeanType()to validate
-
validityProperty
public javafx.beans.property.BooleanProperty validityProperty()Map validity.- Specified by:
validityPropertyin interfacePropertyValidation- Returns:
- the
validityproperty
-
infoValidityProperty
public javafx.beans.property.StringProperty infoValidityProperty()Map validity info.- Specified by:
infoValidityPropertyin interfacePropertyValidation- Returns:
- the
infoValidityproperty
-
getSubject
- Specified by:
getSubjectin interfaceBuffering<K>- Returns:
- buffered subject
-
isEqualsBuffering
public boolean isEqualsBuffering()- Specified by:
isEqualsBufferingin interfaceBuffering<K>- Returns:
- use equals method for check buffering
-
setEqualsBuffering
public void setEqualsBuffering(boolean newEqualsBuffering) - Specified by:
setEqualsBufferingin interfaceBuffering<K>- Parameters:
newEqualsBuffering- true for use equals method for check buffering, use == otherwise
-
bufferingProperty
public javafx.beans.property.BooleanProperty bufferingProperty()Map is buffering.- Specified by:
bufferingPropertyin interfaceBuffering<K>- Returns:
- the
bufferingproperty - See Also:
-
commit
public void commit()Description copied from interface:BufferingCommits change. -
revert
public void revert()Description copied from interface:BufferingReverts change.
-