Package org.eclipse.gef.mvc.fx.policies
Interface IPolicy
-
- All Superinterfaces:
IAdaptable.Bound<IVisualPart<? extends javafx.scene.Node>>
- All Known Implementing Classes:
AbstractPolicy
,BendConnectionPolicy
,ContentPolicy
,CreationPolicy
,DeletionPolicy
,FocusTraversalPolicy
,ResizePolicy
,TransformPolicy
,ViewportPolicy
public interface IPolicy extends IAdaptable.Bound<IVisualPart<? extends javafx.scene.Node>>
TheIPolicy
interface extendsIAdaptable.Bound
, i.e. it is bound to anIAdaptable
, its so calledgetHost()
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ITransactionalOperation
commit()
Returns anITransactionalOperation
that performs all manipulations applied by the policy since the previousinit()
call.default IVisualPart<? extends javafx.scene.Node>
getHost()
void
init()
Initializes the policy, so that the policy's "work" methods can be used.void
rollback()
Puts back this policy into an uninitialized state, reverting any changes that have been applied via the policy's work methods since the precedinginit()
call.-
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
-
-
-
Method Detail
-
commit
ITransactionalOperation commit()
Returns anITransactionalOperation
that performs all manipulations applied by the policy since the previousinit()
call.- Returns:
- An
ITransactionalOperation
that performs all manipulations applied by the policy since the lastinit()
call.
-
getHost
default IVisualPart<? extends javafx.scene.Node> getHost()
- Returns:
- The host of this
IPolicy
.
-
init
void init()
Initializes the policy, so that the policy's "work" methods can be used. Calling a "work" method while the policy is not initialized will result in anIllegalStateException
, as well as re-initializing before committing or rolling back.
-
rollback
void rollback()
Puts back this policy into an uninitialized state, reverting any changes that have been applied via the policy's work methods since the precedinginit()
call.
-
-