Show only a selection of object hierarchies in the network

Article ID: 2152
Last updated: 30 May, 2018
Article ID: 2152
Last updated: 30 May, 2018
Revision: 3
Views: 1039
Posted: 24 Jul, 2003
by Dean J.
Updated: 30 May, 2018
by Gargani A.

Question

How do I show only a selection of object hierarchies in the network?

Answer

This is possible by using IlpAbstractHierarchyAdapter.setOrigins(List newOrigins, boolean showOrigin).

By passing a list of object identifiers as the newOrigins, only the objects under the hierarchy of these new origins will be displayed in the graphic component. If you wish the new origins themselves to be displayed, pass true to the showOrigin parameter.

This feature is available for the IlpNetworkIlpTree and IlpEquipment graphic components.

For example:

IlpNetwork graphicalComponent = ...;
Object identifier = businessObject.getIdentifier();
List originList = new ArrayList();
originList.add(identifier);
IlpAbstractHierarchyAdapter adapter = graphicalComponent.getAdapter();

//In this case we are not showing the new origins themselves...
adapter.setOrigins(originList, false);

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2152
Last updated: 30 May, 2018
Revision: 3
Views: 1039
Posted: 24 Jul, 2003 by Dean J.
Updated: 30 May, 2018 by Gargani A.
Also listed in


Others in this category