Class WallboardProvider
- java.lang.Object
-
- org.opennms.features.vaadin.dashboard.config.ui.WallboardProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWallboard(Wallboard wallboard)This method adds aWallboardto this provider.booleancontainsWallboard(String title)Checks whether this object containsWallboarddata concerning the given title.booleancontainsWallboard(Wallboard wallboard)Checks whether this object contains a givenWallboardinstance.com.vaadin.v7.data.util.BeanItemContainer<Wallboard>getBeanContainer()Method to return theBeanItemContainerassociated with this object.static WallboardProvidergetInstance()Method to return the instance of this singleton.WallboardgetWallboard(String title)Returns theWallboardfor the given title.voidload()This method loads the configuration data from disk.voidremoveWallboard(Wallboard wallboard)This method removes aWallboardfrom this provider.voidsave()This method saves the data represented by this object to disk.
-
-
-
Method Detail
-
getBeanContainer
public com.vaadin.v7.data.util.BeanItemContainer<Wallboard> getBeanContainer()
Method to return theBeanItemContainerassociated with this object.- Returns:
- the
BeanItemContainer
-
getInstance
public static WallboardProvider getInstance()
Method to return the instance of this singleton.- Returns:
- the singleton instance
-
save
public void save()
This method saves the data represented by this object to disk.
-
load
public void load()
This method loads the configuration data from disk.
-
containsWallboard
public boolean containsWallboard(String title)
Checks whether this object containsWallboarddata concerning the given title.- Parameters:
title- the title to search for- Returns:
- true, if a
Wallboardwith the given title exists, false otherwise
-
getWallboard
public Wallboard getWallboard(String title)
Returns theWallboardfor the given title.- Parameters:
title- the title to search for- Returns:
- the
Wallboardinstance if found, null otherwise
-
containsWallboard
public boolean containsWallboard(Wallboard wallboard)
Checks whether this object contains a givenWallboardinstance.
-
addWallboard
public void addWallboard(Wallboard wallboard)
This method adds aWallboardto this provider.- Parameters:
wallboard- theWallboardinstance to be added
-
-