Package org.eclipse.gef.common.adapt
Interface IAdaptable.Bound<A extends IAdaptable>
-
- Type Parameters:
A- The type ofIAdaptablethisIAdaptable.Boundmay 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 respectiveIAdaptableit is registered at.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIAdaptable.Bound.Impl<T extends IAdaptable>Default implementation ofIAdaptable.Boundthat manages aReadOnlyObjectPropertyfor 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 theIAdaptablethisIAdaptable.Boundis bound to.AgetAdaptable()Returns theIAdaptablethisIAdaptable.Boundis currently bound to, ornullif thisIAdaptable.Boundis currently not bound to anIAdaptable.voidsetAdaptable(A adaptable)Called by theIAdaptablethisIAdaptable.Boundis registered at or unregistered from.
-
-
-
Method Detail
-
adaptableProperty
javafx.beans.property.ReadOnlyObjectProperty<A> adaptableProperty()
A read-only object property providing theIAdaptablethisIAdaptable.Boundis bound to.- Returns:
- A read-only object property.
-
getAdaptable
A getAdaptable()
Returns theIAdaptablethisIAdaptable.Boundis currently bound to, ornullif thisIAdaptable.Boundis currently not bound to anIAdaptable.- Returns:
- The
IAdaptablethisIAdaptable.Boundis currently bound to, ornullif thisIAdaptable.Boundis currently not bound to anIAdaptable.
-
setAdaptable
void setAdaptable(A adaptable)
Called by theIAdaptablethisIAdaptable.Boundis registered at or unregistered from. When registering anIAdaptable.Bound, theIAdaptablewill pass in a reference to itself, when unregistering anIAdaptable.Boundit will pass innull.- Parameters:
adaptable- TheIAdaptablethisIAdaptable.Boundis bound to ornullto unbind thisIAdaptable.Bound.
-
-