java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QUntypedBindable
io.qt.core.QLongBindable
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public final class QLongBindable extends QUntypedBindable
QLongBindable is primitive-typed version of QBindable<Long>.
- See Also:
QBindable
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description QLongBindable()
Creates a newlong
-typed invalid bindable.QLongBindable(QLongProperty property)
Creates a new bindable from provided property.QLongBindable(QObject.QComputedLongProperty property)
Creates a new bindable from provided property.QLongBindable(QObject.QComputedProperty<@QtPrimitiveType Long> property)
Creates a new bindable from provided property.QLongBindable(QObject.QLongProperty property)
Creates a new bindable from provided property.QLongBindable(QObject.QProperty<@QtPrimitiveType Long> property)
Creates a new bindable from provided property.QLongBindable(QProperty<@QtPrimitiveType Long> property)
Creates a new bindable from provided property.QLongBindable(QUntypedBindable other)
Creates a copy of the provided bindable. -
Method Summary
Modifier and Type Method Description QLongPropertyBinding
binding()
Returns the binding expression that is associated with the underlying property.QLongPropertyBinding
makeBinding()
Creates a binding to the underlying property.QLongPropertyBinding
setBinding(QLongPropertyBinding binding)
QLongPropertyBinding
setBinding(QPropertyBinding<@QtPrimitiveType Long> binding)
QLongPropertyBinding
setBinding(LongSupplier functor)
void
setValue(long value)
Assigns newValue to the underlying property and removes the property's associated binding, if present.QLongPropertyBinding
takeBinding()
Disassociates the binding expression from this property and returns it.long
value()
Returns the value of the underlying property.Methods inherited from class io.qt.core.QUntypedBindable
clone, data, hasBinding, iface, isBindable, isValid, observe, onValueChanged, setBinding, setData, setIface, subscribe
-
Constructor Details
-
QLongBindable
public QLongBindable()Creates a newlong
-typed invalid bindable. -
QLongBindable
Creates a copy of the provided bindable. If the type of the other bindable is notlong
it remains invalid.- Parameters:
other
-
-
QLongBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QLongBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QLongBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QLongBindable
Creates a new bindable from provided property. If the type of the property is notlong
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QLongBindable
Creates a new bindable from provided property. If the type of the property is notlong
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QLongBindable
Creates a new bindable from provided property. If the type of the property is notlong
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 constructedQLongPropertyBinding
will be returned if no such association exists.- Overrides:
binding
in classQUntypedBindable
- Returns:
- binding
-
setBinding
-
setBinding
@QtUninvokable public QLongPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Long> 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.
- 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
-
-