Making an interactor permanent

Article ID: 2217
Last updated: 29 May, 2018
Article ID: 2217
Last updated: 29 May, 2018
Revision: 3
Views: 639
Posted: 11 Jul, 2002
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How do I make an interactor permanent?

Answer

Manager view interactors are activated in a view by being pushed onto a stack of interactors for that view. The top interactor on the stack is the active one. The others are just waiting.

In JViews, some types of interactors (like IlvSelectInteractor) are permanent. They remain on the interactor stack for a view until they are explicitly popped off.
However, most types of interactors are transient. They will automatically pop off the stack after they have been used one time.

You may encounter the need to make a transient interactor permanent. For those interactor classes that implement IlvPermanentInteractorInterface, you can simply call the setPermanent() method to make the interactor sticky:

  interactorInstance.setPermanent(true);
  viewInstance.pushInteractor(interactorInstance);

The IlvPermanentInteractorInterface also provides a method for testing the current state of the interactor:

  IlvPermanentInteractorInterface.isPermanent()

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2217
Last updated: 29 May, 2018
Revision: 3
Views: 639
Posted: 11 Jul, 2002 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category