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.ComponentgetComponent()The vaadin component displayed to the user.StringgetId()The id of the component.intgetOrder()The order of the item in which it should occur.StringgetTitle()The title displayed to the user.DefaultInfoPanelItemwithComponent(com.vaadin.ui.Component component)DefaultInfoPanelItemwithId(String id)DefaultInfoPanelItemwithOrder(int order)DefaultInfoPanelItemwithTitle(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:InfoPanelItemThe vaadin component displayed to the user.- Specified by:
getComponentin interfaceInfoPanelItem- Returns:
- a component
-
getTitle
public String getTitle()
Description copied from interface:InfoPanelItemThe title displayed to the user.- Specified by:
getTitlein interfaceInfoPanelItem- Returns:
- a short title string
-
getOrder
public int getOrder()
Description copied from interface:InfoPanelItemThe order of the item in which it should occur.- Specified by:
getOrderin interfaceInfoPanelItem- Returns:
- a number used to sort the contribution
-
getId
public String getId()
Description copied from interface:InfoPanelItemThe id of the component.- Specified by:
getIdin interfaceInfoPanelItem- Returns:
- the id of the component.
-
-