Class WallboardProvider


  • public class WallboardProvider
    extends java.lang.Object
    This class is used for loading, holding and saving of Wallboard definitions.
    • Method Detail

      • getBeanContainer

        public com.vaadin.v7.data.util.BeanItemContainer<Wallboard> getBeanContainer()
        Method to return the BeanItemContainer 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​(java.lang.String title)
        Checks whether this object contains Wallboard 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​(java.lang.String title)
        Returns the Wallboard 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 given Wallboard instance.
        Parameters:
        wallboard - the Wallboard instance to search for
        Returns:
        true, if the Wallboard exists, false otherwise
      • addWallboard

        public void addWallboard​(Wallboard wallboard)
        This method adds a Wallboard to this provider.
        Parameters:
        wallboard - the Wallboard instance to be added
      • removeWallboard

        public void removeWallboard​(Wallboard wallboard)
        This method removes a Wallboard from this provider.
        Parameters:
        wallboard - the Wallboard instance to be removed