Package org.eclipse.gef.common.adapt
Interface IAdaptable.Bound<A extends IAdaptable>
- Type Parameters:
A
- The type ofIAdaptable
thisIAdaptable.Bound
may be bound to.
- All Known Implementing Classes:
IAdaptable.Bound.Impl
- Enclosing interface:
- IAdaptable
public static interface IAdaptable.Bound<A extends IAdaptable>
To be implemented by an adapter to indicate that it intends to be bounded
to the respective
IAdaptable
it is registered at.-
Property Summary
TypePropertyDescriptionjavafx.beans.property.ReadOnlyObjectProperty<A>
A read-only object property providing theIAdaptable
thisIAdaptable.Bound
is bound to. -
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
IAdaptable.Bound.Impl<T extends IAdaptable>
Default implementation ofIAdaptable.Bound
that manages aReadOnlyObjectProperty
for theIAdaptable
. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyObjectProperty<A>
A read-only object property providing theIAdaptable
thisIAdaptable.Bound
is bound to.Returns theIAdaptable
thisIAdaptable.Bound
is currently bound to, ornull
if thisIAdaptable.Bound
is currently not bound to anIAdaptable
.void
setAdaptable
(A adaptable) Called by theIAdaptable
thisIAdaptable.Bound
is registered at or unregistered from.
-
Property Details
-
adaptable
javafx.beans.property.ReadOnlyObjectProperty<A extends IAdaptable> adaptablePropertyA read-only object property providing theIAdaptable
thisIAdaptable.Bound
is bound to.- See Also:
-
-
Method Details
-
adaptableProperty
javafx.beans.property.ReadOnlyObjectProperty<A> adaptableProperty()A read-only object property providing theIAdaptable
thisIAdaptable.Bound
is bound to.- See Also:
-
getAdaptable
A getAdaptable()Returns theIAdaptable
thisIAdaptable.Bound
is currently bound to, ornull
if thisIAdaptable.Bound
is currently not bound to anIAdaptable
.- Returns:
- The
IAdaptable
thisIAdaptable.Bound
is currently bound to, ornull
if thisIAdaptable.Bound
is currently not bound to anIAdaptable
.
-
setAdaptable
Called by theIAdaptable
thisIAdaptable.Bound
is registered at or unregistered from. When registering anIAdaptable.Bound
, theIAdaptable
will pass in a reference to itself, when unregistering anIAdaptable.Bound
it will pass innull
.- Parameters:
adaptable
- TheIAdaptable
thisIAdaptable.Bound
is bound to ornull
to unbind thisIAdaptable.Bound
.
-