java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QUntypedBindable
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QBindable
,QBooleanBindable
,QByteBindable
,QCharBindable
,QDoubleBindable
,QFloatBindable
,QIntBindable
,QLongBindable
,QShortBindable
public class QUntypedBindable extends QtObject implements Cloneable
Java wrapper for Qt class QUntypedBindable
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QUntypedBindable()
protected
QUntypedBindable(QUntypedPropertyData d, io.qt.core.QBindableInterface i)
protected
QUntypedBindable(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QUntypedPropertyBinding
binding()
QUntypedBindable
clone()
protected QUntypedPropertyData
data()
boolean
hasBinding()
protected io.qt.core.QBindableInterface
iface()
boolean
isBindable()
boolean
isValid()
QUntypedPropertyBinding
makeBinding()
void
observe(QPropertyObserver observer)
QPropertyChangeHandler
onValueChanged(Runnable f)
Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.boolean
setBinding(QUntypedPropertyBinding binding)
protected void
setData(QUntypedPropertyData data)
protected void
setIface(io.qt.core.QBindableInterface iface)
QPropertyChangeHandler
subscribe(Runnable f)
Subscribes the given functor f as a callback that is called immediately and whenever the value of the bindable changes in the future.
-
Constructor Details
-
QUntypedBindable
public QUntypedBindable() -
QUntypedBindable
-
QUntypedBindable
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
binding
-
hasBinding
-
isBindable
-
isValid
-
makeBinding
-
observe
-
setBinding
-
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
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:
QPropertyChangeHandler
-
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:
QPropertyChangeHandler
,onValueChanged(Runnable)
-
clone
-