Class ViewSearchProvider
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.findreplace.AbstractSearchProvider
- 
- com.inductiveautomation.perspective.designer.search.ViewSearchProvider
 
 
- 
- All Implemented Interfaces:
- SearchProvider
 
 public class ViewSearchProvider extends AbstractSearchProvider 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classViewSearchProvider.WhichViews- 
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.findreplace.SearchProviderSearchProvider.SelectedObjectsHandler
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringID
 - 
Constructor SummaryConstructors Constructor Description ViewSearchProvider(DesignerContext context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Object>getCategories()Returns a list of "categories", or sub-selectable units, supported by this search provider.java.lang.StringgetId()Returns an ID for this search provider.java.lang.StringgetName()Returns the name of the search provider, which will be used in the gateway and a UI to uniquely identify the provider.protected java.lang.StringgetSelectableObjectBaseKey()Returns a key that will be used withBundleUtilto get various descriptions of the selectable objects.booleanhasSelectableObjects()Whether or not the set of objects searched by this provider is selectable- for examples, which groups or windows are to be searched.java.util.Iterator<SearchObject>retrieveSearchableObjects(java.util.Collection<java.lang.Object> categories, java.util.List<java.lang.Object> selected, TaskProgressListener progress)Returns an iterator that provides all of the objects described by the parameters.java.lang.StringselectedObjectsToString(java.util.List<java.lang.Object> objects)Formats the list of selected objects as a brief string.voidselectObjects(SearchProvider.SelectedObjectsHandler handler)Instructs the SearchProvider to show a dialog in order to select the objects to search.- 
Methods inherited from class com.inductiveautomation.ignition.designer.findreplace.AbstractSearchProvidernotifySearchClosed, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.designer.findreplace.SearchProvideraddAsyncReplaceListener, getExecutor
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic static final java.lang.String ID - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ViewSearchProviderpublic ViewSearchProvider(DesignerContext context) 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Description 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.
 - 
getIdpublic java.lang.String getId() Description copied from interface:SearchProviderReturns an ID for this search provider. Should be globally unique (e.g. a module ID) and static regardless of locale.
 - 
getCategoriespublic java.util.List<java.lang.Object> getCategories() Description 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.
 - 
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.
 - 
getSelectableObjectBaseKeyprotected java.lang.String getSelectableObjectBaseKey() Description copied from class:AbstractSearchProviderReturns a key that will be used withBundleUtilto get various descriptions of the selectable objects. It is expected that the following keys exist:
 '{Key}.One' - "%d object"
 '{Key}.Many' - "%d objects"
 '{Key}.Default' - what will be searched if no objects are selected. For example, "All groups" or "Default provider"- Specified by:
- getSelectableObjectBaseKeyin class- AbstractSearchProvider
- Returns:
- a BundleUtilkey corresponding to a description for a selectable object.
 
 - 
selectedObjectsToStringpublic java.lang.String selectedObjectsToString(java.util.List<java.lang.Object> objects) Description copied from interface:SearchProviderFormats the list of selected objects as a brief string.- Specified by:
- selectedObjectsToStringin interface- SearchProvider
- Overrides:
- selectedObjectsToStringin class- AbstractSearchProvider
 
 - 
selectObjectspublic void selectObjects(SearchProvider.SelectedObjectsHandler handler) Description 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.
 - 
retrieveSearchableObjectspublic java.util.Iterator<SearchObject> retrieveSearchableObjects(java.util.Collection<java.lang.Object> categories, java.util.List<java.lang.Object> selected, 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. - Parameters:
- categories- indicates the user selection (if applicable) of which categories should be searched.
- selected- 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).
 
 
- 
 
-