E
- The element type of the source ObservableSet
.public static class SetListenerHelperEx.AtomicChange<E>
extends javafx.collections.SetChangeListener.Change<E>
SetChangeListener.Change
.Constructor and Description |
---|
AtomicChange(javafx.collections.ObservableSet<E> source,
E removedElement,
E addedElement)
Creates a new
SetListenerHelperEx.AtomicChange that
represents a change comprising a single elementary sub-change. |
AtomicChange(javafx.collections.ObservableSet<E> source,
javafx.collections.SetChangeListener.Change<? extends E> change)
Creates a new
SetListenerHelperEx.AtomicChange for the passed
in source, based on the data provided in the passed-in change. |
Modifier and Type | Method and Description |
---|---|
E |
getElementAdded() |
E |
getElementRemoved() |
java.lang.String |
toString() |
boolean |
wasAdded() |
boolean |
wasRemoved() |
public AtomicChange(javafx.collections.ObservableSet<E> source, E removedElement, E addedElement)
SetListenerHelperEx.AtomicChange
that
represents a change comprising a single elementary sub-change.source
- The source ObservableSet
from which the change
originated.removedElement
- The element that was removed by this change or
null
if no value was removed.addedElement
- The element that was added by this change or
null
if no value was added.public AtomicChange(javafx.collections.ObservableSet<E> source, javafx.collections.SetChangeListener.Change<? extends E> change)
SetListenerHelperEx.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
ObservableSet
to re-fire change events of their wrapped
ObservableSet
with themselves as source.
source
- The new source ObservableSet
.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 E getElementAdded()
getElementAdded
in class javafx.collections.SetChangeListener.Change<E>
public E getElementRemoved()
getElementRemoved
in class javafx.collections.SetChangeListener.Change<E>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean wasAdded()
wasAdded
in class javafx.collections.SetChangeListener.Change<E>
public boolean wasRemoved()
wasRemoved
in class javafx.collections.SetChangeListener.Change<E>
Copyright (c) 2014 itemis AG and others. All rights reserved.