Class VisionSearchProvider
java.lang.Object
com.inductiveautomation.factorypmi.designer.search.VisionSearchProvider
- All Implemented Interfaces:
- SearchProvider
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.findreplace.SearchProviderSearchProvider.SelectedObjectsHandler
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionVisionSearchProvider(VisionDesignerImpl context, String id, String resourceType, FolderNode rootNode, VisionSearchProvider.CursorCreator cursorCreator) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns a list of "categories", or sub-selectable units, supported by this search provider.getId()Returns an ID for this search provider.getName()Returns the name of the search provider, which will be used in the gateway and a UI to uniquely identify the provider.booleanWhether or not the set of objects searched by this provider is selectable- for examples, which groups or windows are to be searched.voidIf the user closes a window that was opened, make sure we re-serialize it fresh next time its needed.voidCalled when the search dialog box is closed, so that the search provider can release any cached resourcesretrieveSearchableObjects(Collection<Object> categories, List<Object> searchObjects, TaskProgressListener progress) Returns an iterator that provides all of the objects described by the parameters.selectedObjectsToString(List<Object> objects) Formats the list of selected objects as a brief string.voidInstructs the SearchProvider to show a dialog in order to select the objects to search.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.designer.findreplace.SearchProvideraddAsyncReplaceListener, getExecutor
- 
Field Details- 
WINDOW_PROVIDER_ID- See Also:
 
- 
TEMPLATE_PROVIDER_ID- See Also:
 
 
- 
- 
Constructor Details
- 
Method Details- 
getNameDescription copied from interface:SearchProviderReturns the name of the search provider, which will be used in the gateway and a UI to uniquely identify the provider. It is expected to be in the current session's language.- Specified by:
- getNamein interface- SearchProvider
 
- 
getIdDescription copied from interface:SearchProviderReturns an ID for this search provider. Should be globally unique (e.g. a module ID) and static regardless of locale.- Specified by:
- getIdin interface- SearchProvider
 
- 
getCategoriesDescription copied from interface:SearchProviderReturns a list of "categories", or sub-selectable units, supported by this search provider. The actual objects will be passed back in to retrieveSearchableObjects when the search is executed.- Specified by:
- getCategoriesin interface- SearchProvider
 
- 
hasSelectableObjectspublic boolean hasSelectableObjects()Description copied from interface:SearchProviderWhether or not the set of objects searched by this provider is selectable- for examples, which groups or windows are to be searched.- Specified by:
- hasSelectableObjectsin interface- SearchProvider
 
- 
selectedObjectsToStringDescription copied from interface:SearchProviderFormats the list of selected objects as a brief string.- Specified by:
- selectedObjectsToStringin interface- SearchProvider
 
- 
selectObjectsDescription copied from interface:SearchProviderInstructs the SearchProvider to show a dialog in order to select the objects to search. The object are returned through the passed in handler, and will later be passed into executeSearch.- Specified by:
- selectObjectsin interface- SearchProvider
 
- 
retrieveSearchableObjectspublic Iterator<SearchObject> retrieveSearchableObjects(Collection<Object> categories, List<Object> searchObjects, TaskProgressListener progress) Description copied from interface:SearchProviderReturns an iterator that provides all of the objects described by the parameters. The iterator will generally stream the results, calculating the next object on each call to hasNext().The provided ProgressListener can be used to provide progress information as the Iterator is processed. Some providers may not be able to calculate progress, in which case they should call setIndeterminate(true), but the provider implementors are encouraged to provide anything they can, even if it's very coarse. - Specified by:
- retrieveSearchableObjectsin interface- SearchProvider
- Parameters:
- categories- indicates the user selection (if applicable) of which categories should be searched.
- searchObjects- the user selected objects (if applicable) to be searched.
- progress- a progress listener for this provider, which can be updated as the returned Iterator is used. If not supported, the provider should call setIndeterminate(true).
 
- 
notifyDesignableContainerClosedIf the user closes a window that was opened, make sure we re-serialize it fresh next time its needed.
- 
notifySearchClosedpublic void notifySearchClosed()Description copied from interface:SearchProviderCalled when the search dialog box is closed, so that the search provider can release any cached resources- Specified by:
- notifySearchClosedin interface- SearchProvider
 
 
-