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 java.lang.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 boolean
contributeTo(T ref, GraphContainer graphContainer)
protected abstract InfoPanelItem
createInfoPanelItem(T ref, GraphContainer graphContainer)
protected abstract java.util.Optional<T>
findSingleSelectedItem(GraphContainer container)
java.util.Collection<? extends InfoPanelItem>
getContributions(GraphContainer container)
Returns all contributions for the current state of the given container.
-
-
-
Method Detail
-
getContributions
public java.util.Collection<? extends InfoPanelItem> getContributions(GraphContainer container)
Description copied from interface:InfoPanelItemProvider
Returns all contributions for the current state of the given container.- Specified by:
getContributions
in 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 java.util.Optional<T> findSingleSelectedItem(GraphContainer container)
-
-