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>>
The IPolicy interface extends IAdaptable.Bound, i.e. it is bound to an IAdaptable, its so called getHost().
  • Method Details

    • commit

      Returns an ITransactionalOperation that performs all manipulations applied by the policy since the previous init() call.
      Returns:
      An ITransactionalOperation that performs all manipulations applied by the policy since the last init() call.
    • getHost

      default IVisualPart<? extends javafx.scene.Node> getHost()
      Returns the host of this IPolicy, i.e. the IVisualPart this IPolicy is attached to.
      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 an IllegalStateException, 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 preceding init() call.