java.lang.Object
javafx.beans.binding.BooleanExpression
javafx.beans.property.ReadOnlyBooleanProperty
javafx.beans.property.BooleanProperty
javafx.beans.property.BooleanPropertyBase
- All Implemented Interfaces:
- Observable,- Property<Boolean>,- ReadOnlyProperty<Boolean>,- ObservableBooleanValue,- ObservableValue<Boolean>,- WritableBooleanValue,- WritableValue<Boolean>
- Direct Known Subclasses:
- SimpleBooleanProperty,- StyleableBooleanProperty
public abstract class BooleanPropertyBase extends BooleanProperty
The class 
BooleanPropertyBase is the base class for a property
 wrapping a boolean value.
 It provides all the functionality required for a property except for the
 ReadOnlyProperty.getBean() and ReadOnlyProperty.getName() methods, which must be implemented
 by extending classes.- Since:
- JavaFX 2.0
- See Also:
- BooleanProperty
- 
Constructor SummaryConstructors Constructor Description BooleanPropertyBase()The constructor of theBooleanPropertyBase.BooleanPropertyBase(boolean initialValue)The constructor of theBooleanPropertyBase.
- 
Method SummaryModifier and Type Method Description voidbind(ObservableValue<? extends Boolean> rawObservable)Create a unidirection binding for thisProperty.protected voidfireValueChangedEvent()Sends notifications to all attachedInvalidationListenersandChangeListeners.protected voidinvalidated()The methodinvalidated()can be overridden to receive invalidation notifications.StringtoString()Returns a string representation of thisBooleanPropertyBaseobject.Methods declared in class javafx.beans.property.BooleanPropertyasObject, booleanPropertyMethods declared in class javafx.beans.property.ReadOnlyBooleanPropertyreadOnlyBooleanPropertyMethods declared in class javafx.beans.binding.BooleanExpressionand, asString, booleanExpression, booleanExpression, isEqualTo, isNotEqualTo, not, orMethods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods declared in interface javafx.beans.ObservableaddListener, removeListenerMethods declared in interface javafx.beans.value.ObservableBooleanValuegetMethods declared in interface javafx.beans.value.ObservableValueaddListener, getValue, removeListenerMethods declared in interface javafx.beans.property.PropertybindBidirectional, isBound, unbind, unbindBidirectionalMethods declared in interface javafx.beans.property.ReadOnlyPropertygetBean, getNameMethods declared in interface javafx.beans.value.WritableBooleanValueget, set, setValueMethods declared in interface javafx.beans.value.WritableValuegetValue
- 
Constructor Details- 
BooleanPropertyBasepublic BooleanPropertyBase()The constructor of theBooleanPropertyBase.
- 
BooleanPropertyBasepublic BooleanPropertyBase(boolean initialValue)The constructor of theBooleanPropertyBase.- Parameters:
- initialValue- the initial value of the wrapped value
 
 
- 
- 
Method Details- 
fireValueChangedEventprotected void fireValueChangedEvent()Sends notifications to all attachedInvalidationListenersandChangeListeners. This method is called when the value is changed, either manually by callingWritableBooleanValue.set(boolean)or in case of a bound property, if the binding becomes invalid.
- 
invalidatedprotected void invalidated()The methodinvalidated()can be overridden to receive invalidation notifications. This is the preferred option inObjectsdefining the property, because it requires less memory. The default implementation is empty.
- 
bindCreate a unidirection binding for thisProperty.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: - Parameters:
- rawObservable- The observable this- Propertyshould be bound to.
 
- 
toStringReturns a string representation of thisBooleanPropertyBaseobject.- Overrides:
- toStringin class- BooleanProperty
- Returns:
- a string representation of this BooleanPropertyBaseobject.
 
 
-