- 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 class QUntypedBindable
-
Constructor Summary
ConstructorsConstructorDescriptionQUntypedBindable
(QUntypedBindable other) SeeQUntypedBindable::
QUntypedBindable(QUntypedBindable) -
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()
Creates and returns a copy of this object.protected final QUntypedPropertyData
data()
SeeQUntypedBindable::
data final boolean
protected final io.qt.core.QBindableInterface
iface()
SeeQUntypedBindable::
iface final boolean
SeeQUntypedBindable::
isBindable()const final boolean
final boolean
isValid()
final QMetaType
metaType()
final void
observe
(QPropertyObserver observer) SeeQUntypedBindable::
observe(QPropertyObserver*)const 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) SeeQUntypedBindable::
data protected final void
setIface
(io.qt.core.QBindableInterface iface) SeeQUntypedBindable::
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
See
QUntypedBindable::
QUntypedBindable(QUntypedBindable)
-
-
Method Details
-
binding
-
hasBinding
-
isBindable
See
QUntypedBindable::
isBindable()const -
isReadOnly
-
isValid
-
makeBinding
-
metaType
-
observe
See
QUntypedBindable::
observe(QPropertyObserver*)const -
setBinding
-
takeBinding
-
setData
See
QUntypedBindable::
data -
data
See
QUntypedBindable::
data -
setIface
See
QUntypedBindable::
iface -
iface
See
QUntypedBindable::
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
Creates and returns a copy of this object.
See
QUntypedBindable::
QUntypedBindable(QUntypedBindable)
-