public abstract class ChooseByNameFilter<T>
extends java.lang.Object
Constructor and Description |
---|
ChooseByNameFilter(ChooseByNamePopup popup,
FilteringGotoByModel<T> model,
ChooseByNameFilterConfiguration<T> filterConfiguration,
Project project)
A constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
close the file type filter
|
protected ElementsChooser<T> |
createChooser(FilteringGotoByModel<T> model,
ChooseByNameFilterConfiguration<? super T> filterConfiguration)
Create a file type chooser
|
protected abstract java.util.Collection<T> |
getAllFilterValues() |
protected abstract javax.swing.Icon |
iconForFilterValue(T value) |
protected abstract java.lang.String |
textForFilterValue(T value) |
protected void |
updateModel(FilteringGotoByModel<T> gotoFileModel,
ElementsChooser<T> chooser,
boolean initial)
Update model basing on the chooser state
|
public ChooseByNameFilter(ChooseByNamePopup popup, FilteringGotoByModel<T> model, ChooseByNameFilterConfiguration<T> filterConfiguration, Project project)
popup
- a parent popupmodel
- a model for popupfilterConfiguration
- storage for selected filter valuesproject
- a context projectprotected ElementsChooser<T> createChooser(FilteringGotoByModel<T> model, ChooseByNameFilterConfiguration<? super T> filterConfiguration)
model
- a model to updateprotected abstract java.lang.String textForFilterValue(T value)
protected abstract javax.swing.Icon iconForFilterValue(T value)
protected abstract java.util.Collection<T> getAllFilterValues()
protected void updateModel(FilteringGotoByModel<T> gotoFileModel, ElementsChooser<T> chooser, boolean initial)
gotoFileModel
- a modelchooser
- a file type chooserpublic void close()