java.lang.Object
io.qt.QtObject
io.qt.core.QUntypedBindable
io.qt.core.QBooleanBindable
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
QBooleanBindable is primitive-typed version of QBindable<Boolean>.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a newboolean
-typed invalid bindable.QBooleanBindable
(QBooleanProperty property) Creates a new bindable from provided property.QBooleanBindable
(QObject object, QMetaProperty property) Creates a new bindable from provided meta property of given object.QBooleanBindable
(QObject object, String property) Creates a new bindable from provided meta property of given object.QBooleanBindable
(QProperty<@QtPrimitiveType Boolean> property) Creates a new bindable from provided property.QBooleanBindable
(QUntypedBindable other) Creates a copy of the provided bindable.QBooleanBindable
(QObject.QBooleanProperty property) Creates a new bindable from provided property.Creates a new bindable from provided property.Creates a new bindable from provided property.QBooleanBindable
(QObject.QProperty<@QtPrimitiveType Boolean> property) Creates a new bindable from provided property. -
Method Summary
Modifier and TypeMethodDescriptionbinding()
Returns the binding expression that is associated with the underlying property.Creates a binding to the underlying property.setBinding
(QBooleanPropertyBinding binding) setBinding
(QPropertyBinding<@QtPrimitiveType Boolean> binding) setBinding
(BooleanSupplier functor) final void
setValue
(boolean value) Assigns value to the underlying property and removes the property's associated binding, if present.Disassociates the binding expression from this property and returns it.final boolean
value()
Returns the value of the underlying property.Methods inherited from class io.qt.core.QUntypedBindable
addNotifier, clone, data, hasBinding, iface, isBindable, isReadOnly, isValid, metaType, observe, onValueChanged, setBinding, setData, setIface, subscribe
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
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
-
-
QBooleanBindable
Creates a new bindable from provided meta property of given object. If the type of the property is notboolean
anIllegalArgumentException
is thrown.- Parameters:
object
-property
-
-
QBooleanBindable
Creates a new bindable from provided meta property of given object. If the type of the property is notboolean
anIllegalArgumentException
is thrown.- Parameters:
object
-property
-
-
-
Method Details
-
makeBinding
Creates a binding to the underlying property.- Overrides:
makeBinding
in classQUntypedBindable
- Returns:
-
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 value to the underlying property and removes the property's associated binding, if present.
- Parameters:
value
-
-