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.BooleanProperty
List is buffering.javafx.beans.property.StringProperty
List validity info.javafx.beans.property.BooleanProperty
List 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.BooleanProperty
List is buffering.void
commit()
Commits change.Class
<?> javafx.collections.ObservableList
<E> javafx.beans.property.StringProperty
List validity info.boolean
void
revert()
Reverts change.void
setEqualsBuffering
(boolean newEqualsBuffering) javafx.beans.property.BooleanProperty
List validity.Methods inherited from class javafx.beans.property.SimpleListProperty
getBean, getName
Methods inherited from class javafx.beans.property.ListPropertyBase
addListener, addListener, addListener, bind, emptyProperty, fireValueChangedEvent, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, toString, unbind
Methods inherited from class javafx.beans.property.ListProperty
bindBidirectional, setValue, unbindBidirectional
Methods inherited from class javafx.beans.property.ReadOnlyListProperty
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectional
Methods 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, valueAt
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 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, toArray
Methods inherited from interface javafx.beans.Observable
subscribe
Methods inherited from interface javafx.collections.ObservableList
addAll, filtered, remove, removeAll, retainAll, setAll, setAll, sorted, sorted
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
-
buffering
public javafx.beans.property.BooleanProperty bufferingPropertyList is buffering.- Specified by:
bufferingProperty
in interfaceBuffering<E>
- Returns:
- buffering property
- See Also:
-
validity
public javafx.beans.property.BooleanProperty validityPropertyList validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- Validity property
- See Also:
-
infoValidity
public javafx.beans.property.StringProperty infoValidityPropertyList validity info.- Specified by:
infoValidityProperty
in 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:
getSubject
in interfaceBuffering<E>
- Returns:
- buffered subject
-
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
-
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()List 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. -
validityProperty
public javafx.beans.property.BooleanProperty validityProperty()List validity.- Specified by:
validityProperty
in interfacePropertyValidation
- Returns:
- the
validity
property
-
infoValidityProperty
public javafx.beans.property.StringProperty infoValidityProperty()List validity info.- Specified by:
infoValidityProperty
in interfacePropertyValidation
- Returns:
- the
infoValidity
property
-