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