java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QUntypedBindable
io.qt.core.QBooleanBindable
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public final class QBooleanBindable extends QUntypedBindable
QBooleanBindable is primitive-typed version of QBindable<Boolean>.
- See Also:
QBindable
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description QBooleanBindable()
Creates a newboolean
-typed invalid bindable.QBooleanBindable(QBooleanProperty property)
Creates a new bindable from provided property.QBooleanBindable(QObject.QBooleanProperty property)
Creates a new bindable from provided property.QBooleanBindable(QObject.QComputedBooleanProperty property)
Creates a new bindable from provided property.QBooleanBindable(QObject.QComputedProperty<@QtPrimitiveType Boolean> property)
Creates a new bindable from provided property.QBooleanBindable(QObject.QProperty<@QtPrimitiveType Boolean> property)
Creates a new bindable from provided property.QBooleanBindable(QProperty<@QtPrimitiveType Boolean> property)
Creates a new bindable from provided property.QBooleanBindable(QUntypedBindable other)
Creates a copy of the provided bindable. -
Method Summary
Modifier and Type Method Description QBooleanPropertyBinding
binding()
Returns the binding expression that is associated with the underlying property.QBooleanPropertyBinding
makeBinding()
Creates a binding to the underlying property.QBooleanPropertyBinding
setBinding(QBooleanPropertyBinding binding)
QBooleanPropertyBinding
setBinding(QPropertyBinding<@QtPrimitiveType Boolean> binding)
QBooleanPropertyBinding
setBinding(BooleanSupplier functor)
void
setValue(boolean value)
Assigns newValue to the underlying property and removes the property's associated binding, if present.QBooleanPropertyBinding
takeBinding()
Disassociates the binding expression from this property and returns it.boolean
value()
Returns the value of the underlying property.Methods inherited from class io.qt.core.QUntypedBindable
clone, data, hasBinding, iface, isBindable, isReadOnly, isValid, observe, onValueChanged, setBinding, setData, setIface, subscribe
-
Constructor Details
-
QBooleanBindable
public QBooleanBindable()Creates a newboolean
-typed invalid bindable. -
QBooleanBindable
Creates a copy of the provided bindable. If the type of the other bindable is notboolean
it remains invalid.- Parameters:
other
-
-
QBooleanBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QBooleanBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QBooleanBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QBooleanBindable
Creates a new bindable from provided property. If the type of the property is notboolean
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QBooleanBindable
Creates a new bindable from provided property. If the type of the property is notboolean
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QBooleanBindable
Creates a new bindable from provided property. If the type of the property is notboolean
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
-
Method Details
-
makeBinding
Creates a binding to the underlying property.- Overrides:
makeBinding
in classQUntypedBindable
-
binding
Returns the binding expression that is associated with the underlying property. A default constructedQBooleanPropertyBinding
will be returned if no such association exists.- Overrides:
binding
in classQUntypedBindable
- Returns:
- binding
-
setBinding
-
setBinding
@QtUninvokable public QBooleanPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Boolean> binding) -
setBinding
-
takeBinding
Disassociates the binding expression from this property and returns it.
After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.
- Overrides:
takeBinding
in classQUntypedBindable
- Returns:
- the removed binding
-
value
Returns the value of the underlying property. This may evaluate a binding expression that is tied to the property, before returning the value.- Returns:
- value
-
setValue
Assigns newValue to the underlying property and removes the property's associated binding, if present.
- Parameters:
newValue
-
-