Class DefaultInfoPanelItem
- java.lang.Object
-
- org.opennms.features.topology.api.info.item.DefaultInfoPanelItem
-
- All Implemented Interfaces:
Comparable<InfoPanelItem>
,InfoPanelItem
public class DefaultInfoPanelItem extends Object implements InfoPanelItem
Default Implementation of anInfoPanelItem
.
-
-
Constructor Summary
Constructors Constructor Description DefaultInfoPanelItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.ui.Component
getComponent()
The vaadin component displayed to the user.String
getId()
The id of the component.int
getOrder()
The order of the item in which it should occur.String
getTitle()
The title displayed to the user.DefaultInfoPanelItem
withComponent(com.vaadin.ui.Component component)
DefaultInfoPanelItem
withId(String id)
DefaultInfoPanelItem
withOrder(int order)
DefaultInfoPanelItem
withTitle(String title)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.features.topology.api.info.item.InfoPanelItem
compareTo
-
-
-
-
Method Detail
-
withComponent
public DefaultInfoPanelItem withComponent(com.vaadin.ui.Component component)
-
withOrder
public DefaultInfoPanelItem withOrder(int order)
-
withTitle
public DefaultInfoPanelItem withTitle(String title)
-
withId
public DefaultInfoPanelItem withId(String id)
-
getComponent
public com.vaadin.ui.Component getComponent()
Description copied from interface:InfoPanelItem
The vaadin component displayed to the user.- Specified by:
getComponent
in interfaceInfoPanelItem
- Returns:
- a component
-
getTitle
public String getTitle()
Description copied from interface:InfoPanelItem
The title displayed to the user.- Specified by:
getTitle
in interfaceInfoPanelItem
- Returns:
- a short title string
-
getOrder
public int getOrder()
Description copied from interface:InfoPanelItem
The order of the item in which it should occur.- Specified by:
getOrder
in interfaceInfoPanelItem
- Returns:
- a number used to sort the contribution
-
getId
public String getId()
Description copied from interface:InfoPanelItem
The id of the component.- Specified by:
getId
in interfaceInfoPanelItem
- Returns:
- the id of the component.
-
-