E
- The element type of the source ObservableList
.public static class ListListenerHelperEx.AtomicChange<E>
extends javafx.collections.ListChangeListener.Change<E>
ListChangeListener.Change
.Constructor and Description |
---|
AtomicChange(javafx.collections.ObservableList<E> source,
java.util.List<E> previousContents,
java.util.List<ListListenerHelperEx.ElementarySubChange<E>> elementarySubChanges)
Creates a new
ListListenerHelperEx.AtomicChange that
represents a change comprising multiple elementary sub-changesO. |
AtomicChange(javafx.collections.ObservableList<E> source,
java.util.List<E> previousContents,
ListListenerHelperEx.ElementarySubChange<E> elementarySubChange)
Creates a new
ListListenerHelperEx.AtomicChange that
represents a change comprising a single elementary sub-change. |
AtomicChange(javafx.collections.ObservableList<E> source,
javafx.collections.ListChangeListener.Change<? extends E> change)
Creates a new
ListListenerHelperEx.AtomicChange for the
passed in source, based on the data provided in the passed-in change. |
Modifier and Type | Method and Description |
---|---|
int |
getAddedSize() |
java.util.List<E> |
getAddedSubList() |
int |
getFrom() |
int[] |
getPermutation() |
int |
getPermutation(int i) |
java.util.List<E> |
getPreviousContents()
Returns the previous contents of the observable list before the
change was applied.
|
java.util.List<E> |
getRemoved() |
int |
getRemovedSize() |
int |
getTo() |
boolean |
next() |
void |
reset() |
java.lang.String |
toString() |
boolean |
wasAdded() |
boolean |
wasPermutated() |
boolean |
wasRemoved() |
boolean |
wasReplaced() |
boolean |
wasUpdated() |
public AtomicChange(javafx.collections.ObservableList<E> source, java.util.List<E> previousContents, ListListenerHelperEx.ElementarySubChange<E> elementarySubChange)
ListListenerHelperEx.AtomicChange
that
represents a change comprising a single elementary sub-change.source
- The source ObservableList
from which the change
originated.previousContents
- The previous contents of the ObservableList
before
the change was applied.elementarySubChange
- The elementary sub-change that has been applied.public AtomicChange(javafx.collections.ObservableList<E> source, java.util.List<E> previousContents, java.util.List<ListListenerHelperEx.ElementarySubChange<E>> elementarySubChanges)
ListListenerHelperEx.AtomicChange
that
represents a change comprising multiple elementary sub-changesO.source
- The source ObservableList
from which the change
originated.previousContents
- The previous contents of the ObservableList
before
the change was applied.elementarySubChanges
- The elementary sub-changes that have been applied as part
of this change.public AtomicChange(javafx.collections.ObservableList<E> source, javafx.collections.ListChangeListener.Change<? extends E> change)
ListListenerHelperEx.AtomicChange
for the
passed in source, based on the data provided in the passed-in change.
This is basically used to allow properties wrapping an
ObservableList
to re-fire change events of their wrapped
ObservableList
with themselves as source.
source
- The new source ObservableList
.change
- The change to infer a new change from. It is expected that
the change is in initial state. In either case it will be
reset to initial state.public int getAddedSize()
getAddedSize
in class javafx.collections.ListChangeListener.Change<E>
public java.util.List<E> getAddedSubList()
getAddedSubList
in class javafx.collections.ListChangeListener.Change<E>
public int getFrom()
getFrom
in class javafx.collections.ListChangeListener.Change<E>
public int[] getPermutation()
getPermutation
in class javafx.collections.ListChangeListener.Change<E>
public int getPermutation(int i)
getPermutation
in class javafx.collections.ListChangeListener.Change<E>
public java.util.List<E> getPreviousContents()
public java.util.List<E> getRemoved()
getRemoved
in class javafx.collections.ListChangeListener.Change<E>
public int getRemovedSize()
getRemovedSize
in class javafx.collections.ListChangeListener.Change<E>
public int getTo()
getTo
in class javafx.collections.ListChangeListener.Change<E>
public boolean next()
next
in class javafx.collections.ListChangeListener.Change<E>
public void reset()
reset
in class javafx.collections.ListChangeListener.Change<E>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean wasAdded()
wasAdded
in class javafx.collections.ListChangeListener.Change<E>
public boolean wasPermutated()
wasPermutated
in class javafx.collections.ListChangeListener.Change<E>
public boolean wasRemoved()
wasRemoved
in class javafx.collections.ListChangeListener.Change<E>
public boolean wasReplaced()
wasReplaced
in class javafx.collections.ListChangeListener.Change<E>
public boolean wasUpdated()
wasUpdated
in class javafx.collections.ListChangeListener.Change<E>
Copyright (c) 2014 itemis AG and others. All rights reserved.