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 respectiveIAdaptable
it is registered at.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IAdaptable.Bound.Impl<T extends IAdaptable>
Default implementation ofIAdaptable.Bound
that manages aReadOnlyObjectProperty
for theIAdaptable
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.beans.property.ReadOnlyObjectProperty<A>
adaptableProperty()
A read-only object property providing theIAdaptable
thisIAdaptable.Bound
is bound to.A
getAdaptable()
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.
-
-
-
Method Detail
-
adaptableProperty
javafx.beans.property.ReadOnlyObjectProperty<A> adaptableProperty()
A read-only object property providing theIAdaptable
thisIAdaptable.Bound
is bound to.- Returns:
- A read-only object property.
-
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
void setAdaptable(A adaptable)
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
.
-
-