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.BooleanProperty
Map is buffering.javafx.beans.property.StringProperty
Map validity info.javafx.beans.property.BooleanProperty
Map 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.BooleanProperty
Map is buffering.void
commit()
Commits change.Class
<?> javafx.beans.property.StringProperty
Map validity info.boolean
void
revert()
Reverts change.void
setEqualsBuffering
(boolean newEqualsBuffering) javafx.beans.property.BooleanProperty
Map validity.Methods inherited from class javafx.beans.property.SimpleMapProperty
getBean, getName
Methods inherited from class javafx.beans.property.MapPropertyBase
addListener, addListener, addListener, bind, emptyProperty, fireValueChangedEvent, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, toString, unbind
Methods inherited from class javafx.beans.property.MapProperty
bindBidirectional, setValue, unbindBidirectional
Methods inherited from class javafx.beans.property.ReadOnlyMapProperty
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectional
Methods 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, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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 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, values
Methods inherited from interface javafx.beans.Observable
subscribe
Methods inherited from interface javafx.beans.value.ObservableValue
flatMap, getValue, map, orElse, subscribe, subscribe, when
Methods inherited from interface com.ben12.reta.beans.property.validation.PropertyValidation
bindValidation, unbindValidation
Methods inherited from interface javafx.beans.value.WritableValue
getValue
-
Property Details
-
validity
public javafx.beans.property.BooleanProperty validityPropertyMap validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- Validity property
- See Also:
-
infoValidity
public javafx.beans.property.StringProperty infoValidityPropertyMap validity info.- Specified by:
infoValidityProperty
in interfacePropertyValidation
- Returns:
- Validation info property
- See Also:
-
buffering
public javafx.beans.property.BooleanProperty bufferingPropertyMap is buffering.- Specified by:
bufferingProperty
in 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:
getBeanType
in interfaceBeanPropertyValidation<K>
- Returns:
- bean type containing the value to validate
-
getPropertyName
- Specified by:
getPropertyName
in interfaceBeanPropertyValidation<K>
- Returns:
- property name in the
BeanPropertyValidation.getBeanType()
to validate
-
validityProperty
public javafx.beans.property.BooleanProperty validityProperty()Map validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- the
validity
property
-
infoValidityProperty
public javafx.beans.property.StringProperty infoValidityProperty()Map validity info.- Specified by:
infoValidityProperty
in interfacePropertyValidation
- Returns:
- the
infoValidity
property
-
getSubject
- Specified by:
getSubject
in interfaceBuffering<K>
- Returns:
- buffered subject
-
isEqualsBuffering
public boolean isEqualsBuffering()- Specified by:
isEqualsBuffering
in interfaceBuffering<K>
- Returns:
- use equals method for check buffering
-
setEqualsBuffering
public void setEqualsBuffering(boolean newEqualsBuffering) - Specified by:
setEqualsBuffering
in 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:
bufferingProperty
in interfaceBuffering<K>
- Returns:
- the
buffering
property - See Also:
-
commit
public void commit()Description copied from interface:Buffering
Commits change. -
revert
public void revert()Description copied from interface:Buffering
Reverts change.
-