Class ObservableListBuffering<E>
java.lang.Object
javafx.beans.binding.ListExpression<E>
javafx.beans.property.ReadOnlyListProperty<E>
javafx.beans.property.ListProperty<E>
javafx.beans.property.ListPropertyBase<E>
javafx.beans.property.SimpleListProperty<E>
com.ben12.reta.beans.property.buffering.ObservableListBuffering<E>
- Type Parameters:
E- list elements type
- All Implemented Interfaces:
Buffering<javafx.collections.ObservableList<E>>,BeanPropertyValidation<javafx.collections.ObservableList<E>>,PropertyValidation,Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>,javafx.beans.Observable,javafx.beans.property.Property<javafx.collections.ObservableList<E>>,javafx.beans.property.ReadOnlyProperty<javafx.collections.ObservableList<E>>,javafx.beans.value.ObservableListValue<E>,javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<E>>,javafx.beans.value.ObservableValue<javafx.collections.ObservableList<E>>,javafx.beans.value.WritableListValue<E>,javafx.beans.value.WritableObjectValue<javafx.collections.ObservableList<E>>,javafx.beans.value.WritableValue<javafx.collections.ObservableList<E>>,javafx.collections.ObservableList<E>
public class ObservableListBuffering<E>
extends javafx.beans.property.SimpleListProperty<E>
implements Buffering<javafx.collections.ObservableList<E>>, BeanPropertyValidation<javafx.collections.ObservableList<E>>
Observable list buffering.
- Author:
- BenoƮt Moreau (ben.12)
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanPropertyList is buffering.javafx.beans.property.StringPropertyList validity info.javafx.beans.property.BooleanPropertyList validity.Properties inherited from class javafx.beans.property.ListPropertyBase
empty, size -
Field Summary
Fields inherited from interface com.ben12.reta.beans.property.validation.BeanPropertyValidation
DEFAULT_VALIDATOR -
Constructor Summary
ConstructorsConstructorDescriptionObservableListBuffering(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableList<E> newSubject) ObservableListBuffering(javafx.collections.ObservableList<E> newSubject) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.BooleanPropertyList is buffering.voidcommit()Commits change.Class<?> javafx.collections.ObservableList<E> javafx.beans.property.StringPropertyList validity info.booleanvoidrevert()Reverts change.voidsetEqualsBuffering(boolean newEqualsBuffering) javafx.beans.property.BooleanPropertyList validity.Methods inherited from class javafx.beans.property.SimpleListProperty
getBean, getNameMethods inherited from class javafx.beans.property.ListPropertyBase
addListener, addListener, addListener, bind, emptyProperty, fireValueChangedEvent, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, toString, unbindMethods inherited from class javafx.beans.property.ListProperty
bindBidirectional, setValue, unbindBidirectionalMethods inherited from class javafx.beans.property.ReadOnlyListProperty
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectionalMethods inherited from class javafx.beans.binding.ListExpression
add, add, addAll, addAll, addAll, asString, clear, contains, containsAll, get, getSize, getValue, indexOf, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, lastIndexOf, listExpression, listIterator, listIterator, remove, remove, remove, removeAll, removeAll, retainAll, retainAll, set, setAll, setAll, size, subList, toArray, toArray, valueAt, valueAtMethods 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.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.beans.Observable
subscribeMethods inherited from interface javafx.collections.ObservableList
addAll, filtered, remove, removeAll, retainAll, setAll, setAll, sorted, sortedMethods 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
-
buffering
public javafx.beans.property.BooleanProperty bufferingPropertyList is buffering.- Specified by:
bufferingPropertyin interfaceBuffering<E>- Returns:
- buffering property
- See Also:
-
validity
public javafx.beans.property.BooleanProperty validityPropertyList validity.- Specified by:
validityPropertyin interfacePropertyValidation- Returns:
- Validity property
- See Also:
-
infoValidity
public javafx.beans.property.StringProperty infoValidityPropertyList validity info.- Specified by:
infoValidityPropertyin interfacePropertyValidation- Returns:
- Validation info property
- See Also:
-
-
Constructor Details
-
ObservableListBuffering
- Parameters:
newSubject- subject list to buffer
-
ObservableListBuffering
public ObservableListBuffering(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableList<E> newSubject) - Parameters:
newBeanType- bean typenewPropertyName- bean property namenewSubject- property value
-
-
Method Details
-
getSubject
- Specified by:
getSubjectin interfaceBuffering<E>- Returns:
- buffered subject
-
getBeanType
- Specified by:
getBeanTypein interfaceBeanPropertyValidation<E>- Returns:
- bean type containing the value to validate
-
getPropertyName
- Specified by:
getPropertyNamein interfaceBeanPropertyValidation<E>- Returns:
- property name in the
BeanPropertyValidation.getBeanType()to validate
-
isEqualsBuffering
public boolean isEqualsBuffering()- Specified by:
isEqualsBufferingin interfaceBuffering<E>- Returns:
- use equals method for check buffering
-
setEqualsBuffering
public void setEqualsBuffering(boolean newEqualsBuffering) - Specified by:
setEqualsBufferingin interfaceBuffering<E>- Parameters:
newEqualsBuffering- true for use equals method for check buffering, use == otherwise
-
bufferingProperty
public javafx.beans.property.BooleanProperty bufferingProperty()List is buffering.- Specified by:
bufferingPropertyin interfaceBuffering<E>- 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. -
validityProperty
public javafx.beans.property.BooleanProperty validityProperty()List validity.- Specified by:
validityPropertyin interfacePropertyValidation- Returns:
- the
validityproperty
-
infoValidityProperty
public javafx.beans.property.StringProperty infoValidityProperty()List validity info.- Specified by:
infoValidityPropertyin interfacePropertyValidation- Returns:
- the
infoValidityproperty
-