Class SingleSelectedInfoPanelItemProvider<T extends Ref>
- java.lang.Object
-
- org.opennms.features.topology.api.info.SingleSelectedInfoPanelItemProvider<T>
-
- All Implemented Interfaces:
InfoPanelItemProvider
- Direct Known Subclasses:
EdgeInfoPanelItemProvider,VertexInfoPanelItemProvider
public abstract class SingleSelectedInfoPanelItemProvider<T extends Ref> extends Object implements InfoPanelItemProvider
-
-
Constructor Summary
Constructors Constructor Description SingleSelectedInfoPanelItemProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleancontributeTo(T ref, GraphContainer graphContainer)protected abstract InfoPanelItemcreateInfoPanelItem(T ref, GraphContainer graphContainer)protected abstract Optional<T>findSingleSelectedItem(GraphContainer container)Collection<? extends InfoPanelItem>getContributions(GraphContainer container)Returns all contributions for the current state of the given container.
-
-
-
Method Detail
-
getContributions
public Collection<? extends InfoPanelItem> getContributions(GraphContainer container)
Description copied from interface:InfoPanelItemProviderReturns all contributions for the current state of the given container.- Specified by:
getContributionsin interfaceInfoPanelItemProvider- Parameters:
container- the container used to decide which contributions to show- Returns:
- a bunch of contributions, if any. Should NEVER return null
-
contributeTo
protected abstract boolean contributeTo(T ref, GraphContainer graphContainer)
-
createInfoPanelItem
protected abstract InfoPanelItem createInfoPanelItem(T ref, GraphContainer graphContainer)
-
findSingleSelectedItem
protected abstract Optional<T> findSingleSelectedItem(GraphContainer container)
-
-