java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QUntypedBindable
io.qt.core.QDoubleBindable
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public final class QDoubleBindable extends QUntypedBindable
QDoubleBindable is primitive-typed version of QBindable<Double>.
- See Also:
QBindable
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description QDoubleBindable()
Creates a newdouble
-typed invalid bindable.QDoubleBindable(QDoubleProperty property)
Creates a new bindable from provided property.QDoubleBindable(QObject.QComputedDoubleProperty property)
Creates a new bindable from provided property.QDoubleBindable(QObject.QComputedProperty<@QtPrimitiveType Double> property)
Creates a new bindable from provided property.QDoubleBindable(QObject.QDoubleProperty property)
Creates a new bindable from provided property.QDoubleBindable(QObject.QProperty<@QtPrimitiveType Double> property)
Creates a new bindable from provided property.QDoubleBindable(QProperty<@QtPrimitiveType Double> property)
Creates a new bindable from provided property.QDoubleBindable(QUntypedBindable other)
Creates a copy of the provided bindable. -
Method Summary
Modifier and Type Method Description QDoublePropertyBinding
binding()
Returns the binding expression that is associated with the underlying property.QDoublePropertyBinding
makeBinding()
Creates a binding to the underlying property.QDoublePropertyBinding
setBinding(QDoublePropertyBinding binding)
QDoublePropertyBinding
setBinding(QPropertyBinding<@QtPrimitiveType Double> binding)
QDoublePropertyBinding
setBinding(DoubleSupplier functor)
void
setValue(double value)
Assigns newValue to the underlying property and removes the property's associated binding, if present.QDoublePropertyBinding
takeBinding()
Disassociates the binding expression from this property and returns it.double
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
-
QDoubleBindable
public QDoubleBindable()Creates a newdouble
-typed invalid bindable. -
QDoubleBindable
Creates a copy of the provided bindable. If the type of the other bindable is notdouble
it remains invalid.- Parameters:
other
-
-
QDoubleBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QDoubleBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QDoubleBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QDoubleBindable
Creates a new bindable from provided property. If the type of the property is notdouble
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QDoubleBindable
Creates a new bindable from provided property. If the type of the property is notdouble
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QDoubleBindable
Creates a new bindable from provided property. If the type of the property is notdouble
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 constructedQDoublePropertyBinding
will be returned if no such association exists.- Overrides:
binding
in classQUntypedBindable
- Returns:
- binding
-
setBinding
-
setBinding
@QtUninvokable public QDoublePropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Double> 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
-
-