BooleanPropertyBase is the base class for a property
wrapping a boolean value.
It provides all the functionality required for a property except for the
getBean() and getName() methods, which must be implemented
by extending classes.
BooleanProperty
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private ExpressionHelper | |
| private InvalidationListener | |
| private ObservableBooleanValue | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BooleanPropertyBase(boolean
the initial value of the wrapped value initialValue)The constructor of the |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(InvalidationListener
The listener to register listener)Implements javafx. Adds an |
| public void | addListener(ChangeListener<? super Boolean>
The listener to register listener)Implements javafx. Adds a |
| public void | bind(final ObservableValue<? extends Boolean>
The observable this rawObservable)Property should be bound to.Implements javafx. Create a unidirection binding for this |
| protected void | fireValueChangedEvent()
Sends notifications to all attached
|
| public boolean | 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
The listener to remove 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 Boolean>
The listener to remove listener)Implements javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the |
| public void | set(boolean
The new value newValue)Implements javafx. Set the wrapped value. |
| public String | Returns: a string representation of thisBooleanPropertyBase 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<Boolean> helper | |
| listener | back to summary |
|---|---|
| private InvalidationListener listener | |
| observable | back to summary |
|---|---|
| private ObservableBooleanValue observable | |
| valid | back to summary |
|---|---|
| private boolean valid | |
| value | back to summary |
|---|---|
| private boolean value | |
| BooleanPropertyBase | back to summary |
|---|---|
| public BooleanPropertyBase() The constructor of the | |
| BooleanPropertyBase | back to summary |
|---|---|
| public BooleanPropertyBase(boolean 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 Boolean> listener) Implements javafx. Doc from javafx. Adds a
Note that the same actual
The
| |
| bind | back to summary |
|---|---|
| public void bind(final ObservableValue<? extends Boolean> 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. Note:
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public boolean 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 Boolean> 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(boolean 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
The observable)Observable that became invalidImplements javafx. This method needs to be provided by an implementation of
|
| public boolean | wasGarbageCollected()
Implements javafx. Returns |
| wref | back to summary |
|---|---|
| private final WeakReference<BooleanPropertyBase> wref | |
| Listener | back to summary |
|---|---|
| public Listener(BooleanPropertyBase 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 |
|---|---|
| protected boolean | computeValue()
Implements abstract javafx. Calculates the current value of this binding. |
| public void | dispose()
Overrides javafx. Implements javafx. A default implementation of |
| observable | back to summary |
|---|---|
| private ObservableValue<? extends Boolean> observable | |
| ValueWrapper | back to summary |
|---|---|
| public ValueWrapper(ObservableValue<? extends Boolean> observable) | |
| computeValue | back to summary |
|---|---|
| protected boolean computeValue() Implements abstract javafx. Doc from javafx. Calculates the current value of this binding.
Classes extending
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. A default implementation of
| |