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 ofIAdaptable
which 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.Bound
that manages aReadOnlyObjectProperty
for 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 theIAdaptable
thisIAdaptable.Bound
is bound to.T
getAdaptable()
Returns theIAdaptable
thisIAdaptable.Bound
is currently bound to, ornull
if thisIAdaptable.Bound
is currently not bound to anIAdaptable
.void
setAdaptable(T adaptable)
Called by theIAdaptable
thisIAdaptable.Bound
is registered at or unregistered from.
-
-
-
Method Detail
-
adaptableProperty
public javafx.beans.property.ReadOnlyObjectProperty<T> adaptableProperty()
Description copied from interface:IAdaptable.Bound
A read-only object property providing theIAdaptable
thisIAdaptable.Bound
is bound to.- Specified by:
adaptableProperty
in interfaceIAdaptable.Bound<T extends IAdaptable>
- Returns:
- A read-only object property.
-
getAdaptable
public T getAdaptable()
Description copied from interface:IAdaptable.Bound
Returns theIAdaptable
thisIAdaptable.Bound
is currently bound to, ornull
if thisIAdaptable.Bound
is currently not bound to anIAdaptable
.- Specified by:
getAdaptable
in interfaceIAdaptable.Bound<T extends IAdaptable>
- Returns:
- The
IAdaptable
thisIAdaptable.Bound
is currently bound to, ornull
if thisIAdaptable.Bound
is currently not bound to anIAdaptable
.
-
setAdaptable
public void setAdaptable(T adaptable)
Description copied from interface:IAdaptable.Bound
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
.- Specified by:
setAdaptable
in interfaceIAdaptable.Bound<T extends IAdaptable>
- Parameters:
adaptable
- TheIAdaptable
thisIAdaptable.Bound
is bound to ornull
to unbind thisIAdaptable.Bound
.
-
-