- All Implemented Interfaces:
QtObjectInterface,Cloneable
- Direct Known Subclasses:
QBindable,QBooleanBindable,QByteBindable,QCharBindable,QDoubleBindable,QFloatBindable,QIntBindable,QLongBindable,QShortBindable
Uniform interface over bindable properties like QProperty\<T\> and QObjectBindableProperty of any type T
Java wrapper for Qt's class QUntypedBindable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QPropertyNotifierRegisters the given functor f as a callback that shall be called whenever the value of the bindable changes.binding()clone()protected final QUntypedPropertyDatadata()final booleanprotected final io.qt.core.QBindableInterfaceiface()final booleanfinal booleanfinal booleanisValid()final QMetaTypemetaType()final voidobserve(QPropertyObserver observer) final QPropertyChangeHandlerRegisters the given functor f as a callback that shall be called whenever the value of the bindable changes.final booleansetBinding(QUntypedPropertyBinding binding) protected final voidsetData(QUntypedPropertyData data) protected final voidsetIface(io.qt.core.QBindableInterface iface) final QPropertyChangeHandlerSubscribes the given functor f as a callback that is called immediately and whenever the value of the bindable changes in the future.Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QUntypedBindable
public QUntypedBindable() -
QUntypedBindable
Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
binding
-
hasBinding
-
isBindable
-
isReadOnly
-
isValid
-
makeBinding
-
metaType
-
observe
-
setBinding
-
takeBinding
-
setData
-
data
-
setIface
-
iface
-
onValueChanged
Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.
The returned property change handler object keeps track of the registration. As long as the change handler is alive i.e. as long as a reference to the
QPropertyChangeHandlerinstance exists, the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.- Parameters:
f-- Returns:
- property change handler
- See Also:
-
subscribe
Subscribes the given functor f as a callback that is called immediately and whenever the value of the bindable changes in the future.- Parameters:
f-- Returns:
- property change handler
- See Also:
-
addNotifier
Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.
The returned property notifier object keeps track of the registration. As long as the notifier is alive i.e. as long as a reference to the
QPropertyNotifierinstance exists, the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.- Parameters:
f-- Returns:
- property notifier
- See Also:
-
clone
-