Filtering techniques available with JViews TGO

Article ID: 2131
Last updated: 28 May, 2018
Article ID: 2131
Last updated: 28 May, 2018
Revision: 3
Views: 777
Posted: 09 Dec, 2004
by Dean J.
Updated: 28 May, 2018
by Gargani A.

Question

What are the different filtering techniques available with JViews TGO?

Answer

1. Filtering at the Adapter Level

The idea is to set a filter to an adapter so that only the business objects that meet the criteria specified in the filter are transformed into representation objects. 

Modifying the filter associated with an adapter to which a number of representation objects have already been added causes a (possibly large) number of representation objects to be created or destroyed. 

The main advantage of setting a filter to the adapter is that it significantly improves memory consumption, since it avoids creating a great number of unnecessary representation objects. 

This filtering mechanism is available through the following API: 

IlpEquipmentAdapter.setFilter(IlpFilter filter)
IlpTableAdapter.setFilter(IlpFilter filter)
IlpTreeAdapter.setFilter(IlpFilter filter)


More resources:

  • Documentation:
    • Programmers documentation > Graphic components > Network component > Network component services > Filtering
    • Programmers documentation > Graphic components > Equipment component > Equipment component services > Filtering
    • Programmers documentation > Graphic components > Table component > Table component services > Filtering rows
    • Programmers documentation > Graphic components > Tree component > Tree component services > Filtering the tree nodes
  • Samples:

2. Filtering at the Controller Level

  1. Although the filtering functionality at the controller level seems to overlap with the filtering functionality at the adapter level, the memory consumption side effects are not the same. 

    Changing a filter attached to a controller simply alters the internal state of the graphic component so that the business objects in question are not displayed. It does not lead to the creation or destruction of the representation objects. 

    This filtering mechanism is available only for the IlpTable through the following API: 

    IlpTableController.setFilter(IlpFilter filter)
This article was:   Helpful | Not helpful
Report an issue
Article ID: 2131
Last updated: 28 May, 2018
Revision: 3
Views: 777
Posted: 09 Dec, 2004 by Dean J.
Updated: 28 May, 2018 by Gargani A.
Attached files

Also listed in


Others in this category