Class ObservableSetBuffering<E>
java.lang.Object
javafx.beans.binding.SetExpression<E>
javafx.beans.property.ReadOnlySetProperty<E>
javafx.beans.property.SetProperty<E>
javafx.beans.property.SetPropertyBase<E>
javafx.beans.property.SimpleSetProperty<E>
com.ben12.reta.beans.property.buffering.ObservableSetBuffering<E>
- Type Parameters:
E
- set elements type
- All Implemented Interfaces:
Buffering<javafx.collections.ObservableSet<E>>
,BeanPropertyValidation<javafx.collections.ObservableSet<E>>
,PropertyValidation
,Iterable<E>
,Collection<E>
,Set<E>
,javafx.beans.Observable
,javafx.beans.property.Property<javafx.collections.ObservableSet<E>>
,javafx.beans.property.ReadOnlyProperty<javafx.collections.ObservableSet<E>>
,javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableSet<E>>
,javafx.beans.value.ObservableSetValue<E>
,javafx.beans.value.ObservableValue<javafx.collections.ObservableSet<E>>
,javafx.beans.value.WritableObjectValue<javafx.collections.ObservableSet<E>>
,javafx.beans.value.WritableSetValue<E>
,javafx.beans.value.WritableValue<javafx.collections.ObservableSet<E>>
,javafx.collections.ObservableSet<E>
public class ObservableSetBuffering<E>
extends javafx.beans.property.SimpleSetProperty<E>
implements Buffering<javafx.collections.ObservableSet<E>>, BeanPropertyValidation<javafx.collections.ObservableSet<E>>
Observable set buffering.
- Author:
- BenoƮt Moreau (ben.12)
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanProperty
Set is buffering.javafx.beans.property.StringProperty
Set validity info.javafx.beans.property.BooleanProperty
Set validity.Properties inherited from class javafx.beans.property.SetPropertyBase
empty, size
-
Field Summary
Fields inherited from interface com.ben12.reta.beans.property.validation.BeanPropertyValidation
DEFAULT_VALIDATOR
-
Constructor Summary
ConstructorsConstructorDescriptionObservableSetBuffering
(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableSet<E> newSubject) ObservableSetBuffering
(javafx.collections.ObservableSet<E> newSubject) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.BooleanProperty
Set is buffering.void
commit()
Commits change.Class
<?> javafx.collections.ObservableSet
<E> javafx.beans.property.StringProperty
Set validity info.boolean
void
revert()
Reverts change.void
setEqualsBuffering
(boolean newEqualsBuffering) javafx.beans.property.BooleanProperty
Set validity.Methods inherited from class javafx.beans.property.SimpleSetProperty
getBean, getName
Methods inherited from class javafx.beans.property.SetPropertyBase
addListener, addListener, addListener, bind, emptyProperty, fireValueChangedEvent, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, toString, unbind
Methods inherited from class javafx.beans.property.SetProperty
bindBidirectional, setValue, unbindBidirectional
Methods inherited from class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectional
Methods inherited from class javafx.beans.binding.SetExpression
add, addAll, asString, clear, contains, containsAll, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, remove, removeAll, retainAll, setExpression, size, toArray, toArray
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.Collection
parallelStream, removeIf, stream, toArray
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 java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
Methods inherited from interface javafx.beans.value.WritableValue
getValue
-
Property Details
-
validity
public javafx.beans.property.BooleanProperty validityPropertySet validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- Validity property
- See Also:
-
infoValidity
public javafx.beans.property.StringProperty infoValidityPropertySet validity info.- Specified by:
infoValidityProperty
in interfacePropertyValidation
- Returns:
- Validation info property
- See Also:
-
buffering
public javafx.beans.property.BooleanProperty bufferingPropertySet is buffering.- Specified by:
bufferingProperty
in interfaceBuffering<E>
- Returns:
- buffering property
- See Also:
-
-
Constructor Details
-
ObservableSetBuffering
- Parameters:
newSubject
- subject set to buffer
-
ObservableSetBuffering
public ObservableSetBuffering(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableSet<E> newSubject) - Parameters:
newBeanType
- bean typenewPropertyName
- bean property namenewSubject
- property value
-
-
Method Details
-
getBeanType
- Specified by:
getBeanType
in interfaceBeanPropertyValidation<E>
- Returns:
- bean type containing the value to validate
-
getPropertyName
- Specified by:
getPropertyName
in interfaceBeanPropertyValidation<E>
- Returns:
- property name in the
BeanPropertyValidation.getBeanType()
to validate
-
validityProperty
public javafx.beans.property.BooleanProperty validityProperty()Set validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- the
validity
property
-
infoValidityProperty
public javafx.beans.property.StringProperty infoValidityProperty()Set validity info.- Specified by:
infoValidityProperty
in interfacePropertyValidation
- Returns:
- the
infoValidity
property
-
getSubject
- Specified by:
getSubject
in interfaceBuffering<E>
- Returns:
- buffered subject
-
isEqualsBuffering
public boolean isEqualsBuffering()- Specified by:
isEqualsBuffering
in interfaceBuffering<E>
- Returns:
- use equals method for check buffering
-
setEqualsBuffering
public void setEqualsBuffering(boolean newEqualsBuffering) - Specified by:
setEqualsBuffering
in interfaceBuffering<E>
- Parameters:
newEqualsBuffering
- true for use equals method for check buffering, use == otherwise
-
bufferingProperty
public javafx.beans.property.BooleanProperty bufferingProperty()Set is buffering.- Specified by:
bufferingProperty
in interfaceBuffering<E>
- 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.
-