|| | |||Browse by category|
How do I set a select interactor to a network?
There are several ways to set a select interactor to a network.
- Using the configuration file
You can configure the toolbar to contain the select interactor button,through CSS in the following way:
//Adjusting bean properties of interactor...
Then you can also set the select interactor as the default view interactor in the network, as follows:
- Using the predefined interactors
Some interactors are recognized by their name. You can use the method
setDefaultViewInteractorNamewith the string
"Select"as parameter, in the following way:
- Using the class
This alternative can be useful when you want to customize your select interactor, that is, when you need to work with an instance of the class
To add an
IltSelectInteractorthrough the API, you must create an instance of the class
IlpViewsViewInteractorwith the select interactor as parameter in the constructor of this class. Then, you can set this view interactor to the network.
The following code extract illustrates this alternative:
IltSelectInteractor selInteractor = new IltSelectInteractor();
IlpViewsViewInteractor graphicViewsInteractor =