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