java.lang.Object
io.qt.QtObject
io.qt.core.QUntypedBindable
io.qt.core.QLongBindable
- All Implemented Interfaces:
QtObjectInterface,Cloneable
QLongBindable is primitive-typed version of QBindable<Long>.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newlong-typed invalid bindable.QLongBindable(QLongProperty property) Creates a new bindable from provided property.QLongBindable(QObject object, QMetaProperty property) Creates a new bindable from provided meta property of given object.QLongBindable(QObject object, String property) Creates a new bindable from provided meta property of given object.QLongBindable(QProperty<@QtPrimitiveType Long> property) Creates a new bindable from provided property.QLongBindable(QUntypedBindable other) Creates a copy of the provided bindable.QLongBindable(QObject.QComputedLongProperty property) Creates a new bindable from provided 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. -
Method Summary
Modifier and TypeMethodDescriptionbinding()Returns the binding expression that is associated with the underlying property.Creates a binding to the underlying property.setBinding(QLongPropertyBinding binding) setBinding(QPropertyBinding<@QtPrimitiveType Long> binding) setBinding(LongSupplier functor) final voidsetValue(long 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 longvalue()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, subscribeMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
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 notlongit 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 notlonganIllegalArgumentExceptionis thrown.- Parameters:
property-
-
QLongBindable
Creates a new bindable from provided property. If the type of the property is notlonganIllegalArgumentExceptionis thrown.- Parameters:
property-
-
QLongBindable
Creates a new bindable from provided property. If the type of the property is notlonganIllegalArgumentExceptionis thrown.- Parameters:
property-
-
QLongBindable
Creates a new bindable from provided meta property of given object. If the type of the property is notlonganIllegalArgumentExceptionis thrown.- Parameters:
object-property-
-
QLongBindable
Creates a new bindable from provided meta property of given object. If the type of the property is notlonganIllegalArgumentExceptionis thrown.- Parameters:
object-property-
-
-
Method Details
-
makeBinding
Creates a binding to the underlying property.- Overrides:
makeBindingin classQUntypedBindable
-
binding
Returns the binding expression that is associated with the underlying property. A default constructedQLongPropertyBindingwill be returned if no such association exists.- Overrides:
bindingin 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.
- Overrides:
takeBindingin 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-
-