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

    Properties
    Type
    Property
    Description
    javafx.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

    Constructors
    Constructor
    Description
    ObservableListBuffering(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableList<E> newSubject)
     
    ObservableListBuffering(javafx.collections.ObservableList<E> newSubject)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.beans.property.BooleanProperty
    List is buffering.
    void
    Commits change.
     
     
    javafx.collections.ObservableList<E>
     
    javafx.beans.property.StringProperty
    List validity info.
    boolean
     
    void
    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.lang.Iterable

    forEach

    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

  • Constructor Details

    • ObservableListBuffering

      public ObservableListBuffering(javafx.collections.ObservableList<E> newSubject)
      Parameters:
      newSubject - subject list to buffer
    • ObservableListBuffering

      public ObservableListBuffering(Class<?> newBeanType, String newPropertyName, javafx.collections.ObservableList<E> newSubject)
      Parameters:
      newBeanType - bean type
      newPropertyName - bean property name
      newSubject - property value
  • Method Details

    • getSubject

      public javafx.collections.ObservableList<E> getSubject()
      Specified by:
      getSubject in interface Buffering<E>
      Returns:
      buffered subject
    • getBeanType

      public Class<?> getBeanType()
      Specified by:
      getBeanType in interface BeanPropertyValidation<E>
      Returns:
      bean type containing the value to validate
    • getPropertyName

      public String getPropertyName()
      Specified by:
      getPropertyName in interface BeanPropertyValidation<E>
      Returns:
      property name in the BeanPropertyValidation.getBeanType() to validate
    • isEqualsBuffering

      public boolean isEqualsBuffering()
      Specified by:
      isEqualsBuffering in interface Buffering<E>
      Returns:
      use equals method for check buffering
    • setEqualsBuffering

      public void setEqualsBuffering(boolean newEqualsBuffering)
      Specified by:
      setEqualsBuffering in interface Buffering<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 interface Buffering<E>
      Returns:
      the buffering property
      See Also:
    • commit

      public void commit()
      Description copied from interface: Buffering
      Commits change.
      Specified by:
      commit in interface Buffering<E>
    • revert

      public void revert()
      Description copied from interface: Buffering
      Reverts change.
      Specified by:
      revert in interface Buffering<E>
    • validityProperty

      public javafx.beans.property.BooleanProperty validityProperty()
      List validity.
      Specified by:
      validityProperty in interface PropertyValidation
      Returns:
      the validity property
    • infoValidityProperty

      public javafx.beans.property.StringProperty infoValidityProperty()
      List validity info.
      Specified by:
      infoValidityProperty in interface PropertyValidation
      Returns:
      the infoValidity property