Class BrowsableLibrary<T extends Browsable,C extends Category>

java.lang.Object
com.inductiveautomation.ignition.common.util.AbstractChangeable
com.inductiveautomation.ignition.designer.thumbnailbrowser.BrowsableLibrary<T,C>
All Implemented Interfaces:
Changeable

public abstract class BrowsableLibrary<T extends Browsable,C extends Category> extends AbstractChangeable
A BrowsableLibrary is the model for a browsable gallery
  • Constructor Details

    • BrowsableLibrary

      public BrowsableLibrary()
  • Method Details

    • getAllBrowsables

      public abstract 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 List<T> getSearchBrowsables(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 List<C> getCategories()
    • getBrowsables

      public abstract 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.