Class BrowsableLibrary<T extends Browsable,​C extends Category>

    • Constructor Detail

      • BrowsableLibrary

        public BrowsableLibrary()
    • Method Detail

      • getAllBrowsables

        public abstract java.util.List<T> getAllBrowsables()
        Gets all browsables. Implementation must handle exceptions. Function is called in a separate thread so use SwingUtilities.invokeLater to interact with the GUI.
      • getSearchBrowsables

        public abstract java.util.List<T> getSearchBrowsables​(java.lang.String filter)
        Gets all browsables using a string filter. Implementation must handle exceptions. Function is called in a separate thread so use SwingUtilities.invokeLater to interact with the GUI.
        Parameters:
        filter - a string to filter against
        Returns:
        list containing the results, or empty list
      • getCategories

        public abstract java.util.List<C> getCategories()
      • getBrowsables

        public abstract java.util.List<T> getBrowsables​(C category)
        Gets all browsables for a specific category. Implementation must handle exceptions. Function is called in a separate thread so use SwingUtilities.invokeLater to interact with the GUI.