You can associate an object interactor with a table cell, which
is identified by a representation object and an attribute, by
using either CSS or the API. The following CSS extract shows how
to customize a specific object interactor to the cell that
represents the
name
attribute:
Table {
interactor: true;
}
object."ilog.tgo.model.IltNetworkElement/name" {
interactor: @+objInteractor;
}
Subobject#objInteractor {
class: 'ilog.cpl.interactor.IlpDefaultObjectInteractor';
}
The same configuration can be achieved
through the API, as follows:
IlpTable table = // ...
IltNetworkElement ne = //...
IlpAttribute attribute = IltNetworkElement.NameAttribute;
IlpTableController tableController = table.getController();
// Create an object interactor
IlpObjectInteractor objectInteractor = new IlpDefaultObjectInteractor();
tableController.setObjectInteractor( ne, attribute, objectInteractor);
Actions related to mouse and keyboard events can be customized in
the same way as for the view interactor. A pop-up menu factory
can also be defined in the same way as for the view interactor.
Refer to
Interacting with the table view.