Search:
|
Browse by category:
|
| | | |
|
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()
Also listed in | |
Visualizations -> JViews -> Diagrammer | |
Visualizations -> JViews -> Enterprise | |
Visualizations -> JViews -> Maps | |
Visualizations -> JViews -> Maps for Defense |
Prev | Next | |
Making a graphic object transparent, that is, control the alpha... | Running JViews servlets in a UNIX headless environment |