E
- The element type of the source ObservableList
.public static class ListListenerHelperEx.AtomicChange<E> extends ListChangeListener.Change<E>
ListChangeListener.Change
.Constructor and Description |
---|
AtomicChange(ObservableList<E> source,
List<E> previousContents,
List<ListListenerHelperEx.ElementarySubChange<E>> elementarySubChanges)
Creates a new
ListListenerHelperEx.AtomicChange that
represents a change comprising multiple elementary sub-changesO. |
AtomicChange(ObservableList<E> source,
List<E> previousContents,
ListListenerHelperEx.ElementarySubChange<E> elementarySubChange)
Creates a new
ListListenerHelperEx.AtomicChange that
represents a change comprising a single elementary sub-change. |
AtomicChange(ObservableList<E> source,
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() |
List<E> |
getAddedSubList() |
int |
getFrom() |
int[] |
getPermutation() |
int |
getPermutation(int i) |
List<E> |
getPreviousContents()
Returns the previous contents of the observable list before the
change was applied.
|
List<E> |
getRemoved() |
int |
getRemovedSize() |
int |
getTo() |
boolean |
next() |
void |
reset() |
String |
toString() |
boolean |
wasAdded() |
boolean |
wasPermutated() |
boolean |
wasRemoved() |
boolean |
wasReplaced() |
boolean |
wasUpdated() |
getList
public AtomicChange(ObservableList<E> source, 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(ObservableList<E> source, List<E> previousContents, 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(ObservableList<E> source, 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 ListChangeListener.Change<E>
public List<E> getAddedSubList()
getAddedSubList
in class ListChangeListener.Change<E>
public int getFrom()
getFrom
in class ListChangeListener.Change<E>
public int[] getPermutation()
getPermutation
in class ListChangeListener.Change<E>
public int getPermutation(int i)
getPermutation
in class ListChangeListener.Change<E>
public List<E> getPreviousContents()
public List<E> getRemoved()
getRemoved
in class ListChangeListener.Change<E>
public int getRemovedSize()
getRemovedSize
in class ListChangeListener.Change<E>
public int getTo()
getTo
in class ListChangeListener.Change<E>
public boolean next()
next
in class ListChangeListener.Change<E>
public void reset()
reset
in class ListChangeListener.Change<E>
public boolean wasAdded()
wasAdded
in class ListChangeListener.Change<E>
public boolean wasPermutated()
wasPermutated
in class ListChangeListener.Change<E>
public boolean wasRemoved()
wasRemoved
in class ListChangeListener.Change<E>
public boolean wasReplaced()
wasReplaced
in class ListChangeListener.Change<E>
public boolean wasUpdated()
wasUpdated
in class ListChangeListener.Change<E>
Copyright (c) 2014 itemis AG and others. All rights reserved.