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
The
IPolicy
interface extends
IAdaptable.Bound
, i.e. it is bound to an
IAdaptable
, its so called getHost()
.-
Property Summary
Properties inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>
-
Method Summary
Modifier and TypeMethodDescriptioncommit()
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 Details
-
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
- 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.
-