public abstract class ChooseByNameFilterConfiguration<T> extends java.lang.Object implements PersistentStateComponent<ChooseByNameFilterConfiguration.Items>
| Modifier and Type | Class and Description |
|---|---|
static class |
ChooseByNameFilterConfiguration.Items
A state for this configuration
|
| Constructor and Description |
|---|
ChooseByNameFilterConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ChooseByNameFilterConfiguration.Items |
getState() |
boolean |
isFileTypeVisible(T type)
Check if file type should be filtered out
|
void |
loadState(ChooseByNameFilterConfiguration.Items state)
This method is called when new component state is loaded.
|
protected abstract java.lang.String |
nameForElement(T type) |
void |
setVisible(T type,
boolean value)
Set filtering state for file type
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic ChooseByNameFilterConfiguration.Items getState()
getState in interface PersistentStateComponent<ChooseByNameFilterConfiguration.Items>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(ChooseByNameFilterConfiguration.Items state)
State object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<ChooseByNameFilterConfiguration.Items>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public void setVisible(T type, boolean value)
type - a type of the file to updatevalue - if false, a file type will be filtered outprotected abstract java.lang.String nameForElement(T type)
public boolean isFileTypeVisible(T type)
type - a file type to check