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 void
addWallboard(Wallboard wallboard)
This method adds aWallboard
to this provider.boolean
containsWallboard(String title)
Checks whether this object containsWallboard
data concerning the given title.boolean
containsWallboard(Wallboard wallboard)
Checks whether this object contains a givenWallboard
instance.com.vaadin.v7.data.util.BeanItemContainer<Wallboard>
getBeanContainer()
Method to return theBeanItemContainer
associated with this object.static WallboardProvider
getInstance()
Method to return the instance of this singleton.Wallboard
getWallboard(String title)
Returns theWallboard
for the given title.void
load()
This method loads the configuration data from disk.void
removeWallboard(Wallboard wallboard)
This method removes aWallboard
from this provider.void
save()
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 theBeanItemContainer
associated 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 containsWallboard
data concerning the given title.- Parameters:
title
- the title to search for- Returns:
- true, if a
Wallboard
with the given title exists, false otherwise
-
getWallboard
public Wallboard getWallboard(String title)
Returns theWallboard
for the given title.- Parameters:
title
- the title to search for- Returns:
- the
Wallboard
instance if found, null otherwise
-
containsWallboard
public boolean containsWallboard(Wallboard wallboard)
Checks whether this object contains a givenWallboard
instance.
-
addWallboard
public void addWallboard(Wallboard wallboard)
This method adds aWallboard
to this provider.- Parameters:
wallboard
- theWallboard
instance to be added
-
-