- 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
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QPropertyNotifier
Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.binding()
clone()
protected final QUntypedPropertyData
data()
protected final QUntypedPropertyData
getData()
Kotlin property getter.protected final io.qt.core.QBindableInterface
getIface()
Kotlin property getter.final boolean
protected final io.qt.core.QBindableInterface
iface()
final boolean
final boolean
final boolean
isValid()
final QMetaType
metaType()
final void
observe
(QPropertyObserver observer) final QPropertyChangeHandler
Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.final boolean
setBinding
(QUntypedPropertyBinding binding) protected final void
setData
(QUntypedPropertyData data) protected final void
setIface
(io.qt.core.QBindableInterface iface) final QPropertyChangeHandler
Subscribes 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
-
getData
Kotlin property getter. In Java use
data()
instead. -
data
-
setIface
-
getIface
Kotlin property getter. In Java use
iface()
instead. -
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
QPropertyChangeHandler
instance 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
QPropertyNotifier
instance 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
-