Package org.eclipse.gef.common.adapt
Class IAdaptable.Bound.Impl<T extends IAdaptable>
- java.lang.Object
-
- org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<T>
-
- Type Parameters:
T- The type ofIAdaptablewhich this class is bound to.
- All Implemented Interfaces:
IAdaptable.Bound<T>
- Enclosing interface:
- IAdaptable.Bound<A extends IAdaptable>
public static class IAdaptable.Bound.Impl<T extends IAdaptable> extends java.lang.Object implements IAdaptable.Bound<T>
Default implementation ofIAdaptable.Boundthat manages aReadOnlyObjectPropertyfor theIAdaptable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>
-
-
Constructor Summary
Constructors Constructor Description Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ReadOnlyObjectProperty<T>adaptableProperty()A read-only object property providing theIAdaptablethisIAdaptable.Boundis bound to.TgetAdaptable()Returns theIAdaptablethisIAdaptable.Boundis currently bound to, ornullif thisIAdaptable.Boundis currently not bound to anIAdaptable.voidsetAdaptable(T adaptable)Called by theIAdaptablethisIAdaptable.Boundis registered at or unregistered from.
-
-
-
Method Detail
-
adaptableProperty
public javafx.beans.property.ReadOnlyObjectProperty<T> adaptableProperty()
Description copied from interface:IAdaptable.BoundA read-only object property providing theIAdaptablethisIAdaptable.Boundis bound to.- Specified by:
adaptablePropertyin interfaceIAdaptable.Bound<T extends IAdaptable>- Returns:
- A read-only object property.
-
getAdaptable
public T getAdaptable()
Description copied from interface:IAdaptable.BoundReturns theIAdaptablethisIAdaptable.Boundis currently bound to, ornullif thisIAdaptable.Boundis currently not bound to anIAdaptable.- Specified by:
getAdaptablein interfaceIAdaptable.Bound<T extends IAdaptable>- Returns:
- The
IAdaptablethisIAdaptable.Boundis currently bound to, ornullif thisIAdaptable.Boundis currently not bound to anIAdaptable.
-
setAdaptable
public void setAdaptable(T adaptable)
Description copied from interface:IAdaptable.BoundCalled 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.- Specified by:
setAdaptablein interfaceIAdaptable.Bound<T extends IAdaptable>- Parameters:
adaptable- TheIAdaptablethisIAdaptable.Boundis bound to ornullto unbind thisIAdaptable.Bound.
-
-