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