List elements
ListPropertyBase is the base class for a property
wrapping an javafx.collections.ObservableList .
It provides all the functionality required for a property except for the
getBean() and getName() methods, which must be implemented
by extending classes.
javafx.collections.ObservableList , ListProperty
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private ListPropertyBase | |
| private ListExpressionHelper | |
| private final ListChangeListener | |
| private InvalidationListener | |
| private ObservableValue | |
| private ListPropertyBase | |
| private boolean | |
| private ObservableList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ListPropertyBase(ObservableList<E>
the initial value of the wrapped value initialValue)The constructor of the |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(InvalidationListener listener)
Implements javafx. Adds an |
| public void | addListener(ChangeListener<? super ObservableList<E>> listener)
Implements javafx. Adds a |
| public void | addListener(ListChangeListener<? super E> listener)
Implements javafx. Add a listener to this observable list. |
| public void | bind(final ObservableValue<? extends ObservableList<E>> newObservable)
Implements javafx. Create a unidirection binding for this |
| public ReadOnlyBooleanProperty | emptyProperty()
Implements abstract javafx. A boolean property that is |
| protected void | fireValueChangedEvent()
Sends notifications to all attached
|
| protected void | fireValueChangedEvent(ListChangeListener.
the change that needs to be propagated changeSends notifications to all attached
|
| public ObservableList | get()
Implements javafx. Get the wrapped value. |
| protected void | |
| private void | |
| public boolean | isBound()
Implements javafx. Can be used to check, if a |
| private void | |
| public void | removeListener(InvalidationListener listener)
Implements javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the |
| public void | removeListener(ChangeListener<? super ObservableList<E>> listener)
Implements javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the |
| public void | removeListener(ListChangeListener<? super E> listener)
Implements javafx. Tries to remove a listener from this observable list. |
| public void | set(ObservableList<E> newValue)
Implements javafx. Set the wrapped value. |
| public ReadOnlyIntegerProperty | sizeProperty()
Implements abstract javafx. An integer property that represents the size of the list. |
| public String | Returns: a string representation of thisListPropertyBase object.Overrides javafx. Returns a string representation of this |
| public void | unbind()
Implements javafx. Remove the unidirectional binding for this |
| empty0 | back to summary |
|---|---|
| private ListPropertyBase<E>. | |
| helper | back to summary |
|---|---|
| private ListExpressionHelper<E> helper | |
| listChangeListener | back to summary |
|---|---|
| private final ListChangeListener<E> listChangeListener | |
| listener | back to summary |
|---|---|
| private InvalidationListener listener | |
| observable | back to summary |
|---|---|
| private ObservableValue<? extends ObservableList<E>> observable | |
| size0 | back to summary |
|---|---|
| private ListPropertyBase<E>. | |
| valid | back to summary |
|---|---|
| private boolean valid | |
| value | back to summary |
|---|---|
| private ObservableList<E> value | |
| ListPropertyBase | back to summary |
|---|---|
| public ListPropertyBase() The Constructor of | |
| ListPropertyBase | back to summary |
|---|---|
| public ListPropertyBase(ObservableList<E> initialValue) The constructor of the
| |
| addListener | back to summary |
|---|---|
| public void addListener(InvalidationListener listener) Implements javafx. Doc from javafx. Adds an
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public void addListener(ChangeListener<? super ObservableList<E>> listener) Implements javafx. Doc from javafx. Adds a
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public void addListener(ListChangeListener<? super E> listener) Implements javafx. Doc from javafx. Add a listener to this observable list.
| |
| bind | back to summary |
|---|---|
| public void bind(final ObservableValue<? extends ObservableList<E>> newObservable) Implements javafx. Doc from javafx. Create a unidirection binding for this Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.
| |
| emptyProperty | back to summary |
|---|---|
| public ReadOnlyBooleanProperty emptyProperty() Implements abstract javafx. Doc from javafx. A boolean property that is
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Sends notifications to all attached
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent(ListChangeListener. Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public ObservableList Implements javafx. Doc from javafx. Get the wrapped value. This must be identical to
the value returned from
This method exists only to align WritableObjectValue API with
| |
| invalidated | back to summary |
|---|---|
| protected void invalidated() The method | |
| invalidateProperties | back to summary |
|---|---|
| private void invalidateProperties() | |
| isBound | back to summary |
|---|---|
| public boolean isBound() Implements javafx. Doc from javafx. Can be used to check, if a
| |
| markInvalid | back to summary |
|---|---|
| private void markInvalid(ObservableList<E> oldValue) | |
| removeListener | back to summary |
|---|---|
| public void removeListener(InvalidationListener listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(ChangeListener<? super ObservableList<E>> listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(ListChangeListener<? super E> listener) Implements javafx. Doc from javafx. Tries to remove a listener from this observable list. If the listener is not attached to this list, nothing happens.
| |
| set | back to summary |
|---|---|
| public void set(ObservableList<E> newValue) Implements javafx. Doc from javafx. Set the wrapped value.
Should be equivalent to
| |
| sizeProperty | back to summary |
|---|---|
| public ReadOnlyIntegerProperty sizeProperty() Implements abstract javafx. Doc from javafx. An integer property that represents the size of the list.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |
| unbind | back to summary |
|---|---|
| public void unbind() Implements javafx. Doc from javafx. Remove the unidirectional binding for this
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | fireValueChangedEvent()
Overrides javafx. Sends notifications to all attached
|
| public boolean | get()
Implements javafx. Returns the current value of this |
| public Object | getBean()
Implements javafx. Returns the |
| public String | getName()
Implements javafx. Returns the name of this property. |
| EmptyProperty | back to summary |
|---|---|
| private EmptyProperty() | |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Overrides javafx. Doc from javafx. Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public boolean get() Implements javafx. Doc from javafx. Returns the current value of this
| |
| getBean | back to summary |
|---|---|
| public Object getBean() Implements javafx. Doc from javafx. Returns the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javafx. Doc from javafx. Returns the name of this property. If the property does not have a name,
this method returns an empty
| |
| Modifier and Type | Field and Description |
|---|---|
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | invalidated(Observable observable)
Implements javafx. This method needs to be provided by an implementation of
|
| public boolean | wasGarbageCollected()
Implements javafx. Returns |
| wref | back to summary |
|---|---|
| private final WeakReference<ListPropertyBase<E>> wref | |
| Listener | back to summary |
|---|---|
| public Listener(ListPropertyBase<E> ref) | |
| invalidated | back to summary |
|---|---|
| public void invalidated(Observable observable) Implements javafx. Doc from javafx. This method needs to be provided by an implementation of
In general, it is considered bad practice to modify the observed value in this method.
| |
| wasGarbageCollected | back to summary |
|---|---|
| public boolean wasGarbageCollected() Implements javafx. Doc from javafx. Returns
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | fireValueChangedEvent()
Overrides javafx. Sends notifications to all attached
|
| public int | get()
Implements javafx. Returns the current value of this |
| public Object | getBean()
Implements javafx. Returns the |
| public String | getName()
Implements javafx. Returns the name of this property. |
| SizeProperty | back to summary |
|---|---|
| private SizeProperty() | |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Overrides javafx. Doc from javafx. Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public int get() Implements javafx. Doc from javafx. Returns the current value of this
| |
| getBean | back to summary |
|---|---|
| public Object getBean() Implements javafx. Doc from javafx. Returns the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javafx. Doc from javafx. Returns the name of this property. If the property does not have a name,
this method returns an empty
| |