- 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
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description BrowsableLibrary()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.util.List<T>
getAllBrowsables()
Gets all browsables.abstract java.util.List<T>
getBrowsables(C category)
Gets all browsables for a specific category.abstract java.util.List<C>
getCategories()
abstract java.util.List<T>
getSearchBrowsables(java.lang.String filter)
Gets all browsables using a string filter.-
Methods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
-
-
-
-
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()
-
-