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 respective
IAdaptable it is registered at.-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyObjectProperty<A>A read-only object property providing theIAdaptablethisIAdaptable.Boundis bound to. -
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIAdaptable.Bound.Impl<T extends IAdaptable>Default implementation ofIAdaptable.Boundthat manages aReadOnlyObjectPropertyfor theIAdaptable. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyObjectProperty<A>A read-only object property providing theIAdaptablethisIAdaptable.Boundis bound to.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.
-
Property Details
-
adaptable
javafx.beans.property.ReadOnlyObjectProperty<A extends IAdaptable> adaptablePropertyA read-only object property providing theIAdaptablethisIAdaptable.Boundis bound to.- See Also:
-
-
Method Details
-
adaptableProperty
javafx.beans.property.ReadOnlyObjectProperty<A> adaptableProperty()A read-only object property providing theIAdaptablethisIAdaptable.Boundis bound to.- See Also:
-
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
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.
-