E
- The element type of the wrapped ObservableList
.public class ReadOnlyListWrapperEx<E> extends ReadOnlyListWrapper<E>
ReadOnlyListWrapper
to fix the following JavaFX
issues:
empty, size
Constructor and Description |
---|
ReadOnlyListWrapperEx()
Creates a new unnamed
ReadOnlyListWrapperEx . |
ReadOnlyListWrapperEx(Object bean,
String name)
Creates a new named
ReadOnlyListWrapperEx related to the given
bean. |
ReadOnlyListWrapperEx(Object bean,
String name,
ObservableList<E> initialValue)
Creates a new named
ReadOnlyListWrapperEx , related to the given
bean and provided with the initial value. |
ReadOnlyListWrapperEx(ObservableList<E> initialValue)
Creates a new unnamed
ReadOnlyListWrapperEx with the given
initial value. |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ChangeListener<? super ObservableList<E>> listener) |
void |
addListener(InvalidationListener listener) |
void |
addListener(ListChangeListener<? super E> listener) |
protected void |
fireValueChangedEvent() |
protected void |
fireValueChangedEvent(ListChangeListener.Change<? extends E> change) |
ReadOnlyListProperty<E> |
getReadOnlyProperty() |
int |
hashCode() |
void |
removeListener(ChangeListener<? super ObservableList<E>> listener) |
void |
removeListener(InvalidationListener listener) |
void |
removeListener(ListChangeListener<? super E> listener) |
getBean, getName
bind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbind
bindBidirectional, setValue, unbindBidirectional
bindContent, bindContentBidirectional, equals, unbindContent, unbindContentBidirectional
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue
getValue
addAll, filtered, remove, removeAll, retainAll, setAll, setAll, sorted, sorted
add, add, addAll, addAll, clear, contains, containsAll, equals, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public ReadOnlyListWrapperEx()
ReadOnlyListWrapperEx
.public ReadOnlyListWrapperEx(Object bean, String name)
ReadOnlyListWrapperEx
related to the given
bean.bean
- The bean to relate the to be created
ReadOnlyListWrapperEx
to.name
- The name for the to be created ReadOnlyListWrapperEx
.public ReadOnlyListWrapperEx(Object bean, String name, ObservableList<E> initialValue)
ReadOnlyListWrapperEx
, related to the given
bean and provided with the initial value.bean
- The bean to relate the to be created
ReadOnlyListWrapperEx
to.name
- The name for the to be created ReadOnlyListWrapperEx
.initialValue
- The initial value of the to be created
ReadOnlyListWrapperEx
.public ReadOnlyListWrapperEx(ObservableList<E> initialValue)
ReadOnlyListWrapperEx
with the given
initial value.initialValue
- The initial value of the to be created
ReadOnlyListWrapperEx
.public void addListener(ChangeListener<? super ObservableList<E>> listener)
addListener
in interface ObservableValue<ObservableList<E>>
addListener
in class ListPropertyBase<E>
public void addListener(InvalidationListener listener)
addListener
in interface Observable
addListener
in class ListPropertyBase<E>
public void addListener(ListChangeListener<? super E> listener)
addListener
in interface ObservableList<E>
addListener
in class ListPropertyBase<E>
protected void fireValueChangedEvent()
fireValueChangedEvent
in class ReadOnlyListWrapper<E>
protected void fireValueChangedEvent(ListChangeListener.Change<? extends E> change)
fireValueChangedEvent
in class ReadOnlyListWrapper<E>
public ReadOnlyListProperty<E> getReadOnlyProperty()
getReadOnlyProperty
in class ReadOnlyListWrapper<E>
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in interface List<E>
hashCode
in class ReadOnlyListProperty<E>
public void removeListener(ChangeListener<? super ObservableList<E>> listener)
removeListener
in interface ObservableValue<ObservableList<E>>
removeListener
in class ListPropertyBase<E>
public void removeListener(InvalidationListener listener)
removeListener
in interface Observable
removeListener
in class ListPropertyBase<E>
public void removeListener(ListChangeListener<? super E> listener)
removeListener
in interface ObservableList<E>
removeListener
in class ListPropertyBase<E>
Copyright (c) 2014 itemis AG and others. All rights reserved.