LongPropertyBase is the base class for a property wrapping
a long value.
It provides all the functionality required for a property except for the
getBean() and getName() methods, which must be implemented
by extending classes.
LongProperty
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private abstract class |
| Modifier and Type | Field and Description |
|---|---|
| private ExpressionHelper | |
| private InvalidationListener | |
| private ObservableLongValue | |
| private boolean | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LongPropertyBase(long
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 Number> listener)
Implements javafx. Adds a |
| public void | bind(final ObservableValue<? extends Number> rawObservable)
Implements javafx. Create a unidirection binding for this |
| protected void | fireValueChangedEvent()
Sends notifications to all attached
|
| public long | get()
Implements javafx. Get the wrapped value. |
| protected 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 Number> listener)
Implements javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the |
| public void | |
| public String | Returns: a string representation of thisLongPropertyBase object.Overrides javafx. Returns a string representation of this |
| public void | unbind()
Implements javafx. Remove the unidirectional binding for this |
| helper | back to summary |
|---|---|
| private ExpressionHelper<Number> helper | |
| listener | back to summary |
|---|---|
| private InvalidationListener listener | |
| observable | back to summary |
|---|---|
| private ObservableLongValue observable | |
| valid | back to summary |
|---|---|
| private boolean valid | |
| value | back to summary |
|---|---|
| private long value | |
| LongPropertyBase | back to summary |
|---|---|
| public LongPropertyBase() The constructor of the | |
| LongPropertyBase | back to summary |
|---|---|
| public LongPropertyBase(long 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 Number> listener) Implements javafx. Doc from javafx. Adds a
Note that the same actual
The
| |
| bind | back to summary |
|---|---|
| public void bind(final ObservableValue<? extends Number> rawObservable) 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.
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public long get() Implements javafx. Doc from javafx. Get the wrapped value.
Unlike
| |
| invalidated | back to summary |
|---|---|
| protected void invalidated() The method | |
| 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() | |
| 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 Number> 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.
| |
| set | back to summary |
|---|---|
| public void set(long newValue) Implements javafx. Doc from javafx. Set the wrapped value.
Unlike
| |
| 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
| |
| 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<LongPropertyBase> wref | |
| Listener | back to summary |
|---|---|
| public Listener(LongPropertyBase 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
| |
| Modifier and Type | Field and Description |
|---|---|
| private ObservableValue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Overrides javafx. Implements javafx. A default implementation of |
| observable | back to summary |
|---|---|
| private ObservableValue<? extends Number> observable | |
| ValueWrapper | back to summary |
|---|---|
| public ValueWrapper(ObservableValue<? extends Number> observable) | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. A default implementation of
| |