java.lang.Object
io.qt.QtObject
io.qt.core.QUntypedBindable
io.qt.core.QByteBindable
- All Implemented Interfaces:
QtObjectInterface,Cloneable
QByteBindable is primitive-typed version of QBindable<Byte>.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newbyte-typed invalid bindable.QByteBindable(QByteProperty property) Creates a new bindable from provided property.QByteBindable(QObject.QByteProperty property) Creates a new bindable from provided property.QByteBindable(QObject.QComputedByteProperty property) Creates a new bindable from provided property.Creates a new bindable from provided property.QByteBindable(QObject.QProperty<@QtPrimitiveType Byte> property) Creates a new bindable from provided property.QByteBindable(QProperty<@QtPrimitiveType Byte> property) Creates a new bindable from provided property.QByteBindable(QUntypedBindable other) Creates a copy of the provided bindable. -
Method Summary
Modifier and TypeMethodDescriptionbinding()Returns the binding expression that is associated with the underlying property.Creates a binding to the underlying property.setBinding(QBytePropertyBinding binding) setBinding(QPropertyBinding<@QtPrimitiveType Byte> binding) setBinding(QtUtilities.ByteSupplier functor) final voidsetValue(byte value) Assigns newValue to the underlying property and removes the property's associated binding, if present.Disassociates the binding expression from this property and returns it.final bytevalue()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
-
QByteBindable
public QByteBindable()Creates a newbyte-typed invalid bindable. -
QByteBindable
Creates a copy of the provided bindable. If the type of the other bindable is notbyteit remains invalid.- Parameters:
other-
-
QByteBindable
Creates a new bindable from provided property.- Parameters:
property-
-
QByteBindable
Creates a new bindable from provided property.- Parameters:
property-
-
QByteBindable
Creates a new bindable from provided property.- Parameters:
property-
-
QByteBindable
Creates a new bindable from provided property. If the type of the property is notbyteanIllegalArgumentExceptionis thrown.- Parameters:
property-
-
QByteBindable
Creates a new bindable from provided property. If the type of the property is notbyteanIllegalArgumentExceptionis thrown.- Parameters:
property-
-
QByteBindable
Creates a new bindable from provided property. If the type of the property is notbyteanIllegalArgumentExceptionis thrown.- Parameters:
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 constructedQBytePropertyBindingwill be returned if no such association exists.- Overrides:
bindingin classQUntypedBindable- Returns:
- binding
-
setBinding
-
setBinding
@QtUninvokable public QBytePropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Byte> 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 newValue to the underlying property and removes the property's associated binding, if present.
- Parameters:
newValue-
-