|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.filters.AbstractFilter
gov.nih.nlm.mms.filters.LanguagesToRemoveFilter
public class LanguagesToRemoveFilter
This Filter removes all CUI components with a given language
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
default_configuration, init_cui, subset_content, user_configuration, warnings |
| Constructor Summary | |
|---|---|
LanguagesToRemoveFilter()
Every filter is required to have a no-arg constructor. |
|
| Method Summary | |
|---|---|
void |
addLanguageToRemove(Language language)
This method adds a Language to the data structure that holds
the list of languages to be excluded. |
void |
applySelections(Concept concept)
Method determines if a given CUI component will be removed from the release. |
void |
clearLanguagesToRemove()
This method clears the data structure that holds the list of languages to be excluded. |
Color |
getColor()
Method indicates the Color that should be used to display
the name. |
String |
getConfigurationDetails()
Method returns a list of the languages that were excluded for display in the configuration file. |
JPanel |
getHelpPanel()
Method provides a JPanel that will be added to the main GUI
help menu to allow the user to consult a help window
that is particular to this filter. |
List |
getLanguagesToRemove()
This method returns the List containing all
languages to be excluded. |
String |
getName()
Returns the name. |
JPanel |
getPanel()
Method provides the GUI panel that will display the filter's screen as one of the tabs on the main GUI window. |
Properties |
getProperties()
Method returns all properties specific to the filter. |
String |
getTabDescription()
Method provides the description of the filter's screen and includes instructions on use. |
boolean |
ignoreEvents()
Method returns boolean to indicate whether or not
ListSelectionEvents are to be ignored. |
boolean |
isEfficientEnabled()
Indicates if Filter can use the efficient mode during
the "Initialize Cuis" phase of the subsetting process. |
boolean |
isLanguageToRemove(String language)
This method returns true if terms with the specified language should be excluded. |
void |
removeLanguageToRemove(Language language)
This method removes a Language from the data structure that
holds the list of languages to be excluded. |
void |
resetToDefaults()
Provides functionality for a "Reset To Defaults" Menu item. |
void |
setConfiguration(ApplicationConfiguration c)
Method provides the filter with values from the default properties file. |
void |
setIgnoreEvents(boolean b)
Method that turns off responses to the ListSelectionEvents |
void |
setPanelSelections()
This method is responsible for selecting the rows of the table based on the properties for this filter. |
void |
setProperties(Properties props)
Method provides the filter with all properties specific to the filter. |
void |
tableSortFinished(TableSortEvent e)
Handle finish of table sorting. |
void |
tableSortStarted(TableSortEvent e)
Handle start of table sorting. |
void |
valueChanged(ListSelectionEvent e)
Sets the list of languages to be excluded when selection changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nih.nlm.mms.filters.Filter |
|---|
applyFilter, getWarnings |
| Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable |
|---|
addDataChangeListener, getGUIConfigurableForValidationFailure, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, showOptions, validate |
| Methods inherited from interface gov.nih.nlm.mms.Configurable |
|---|
setConfiguration |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface gov.nih.nlm.mms.SubsetListener |
|---|
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList |
| Constructor Detail |
|---|
public LanguagesToRemoveFilter()
| Method Detail |
|---|
public JPanel getPanel()
setConfiguration(ApplicationConfiguration) and
setProperties(Properties). There is no data
change as a result of calling this method.
getPanel in interface GUIConfigurableJPanel that displays graphical interface
for the filterpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic String getTabDescription()
getTabDescription in interface GUIConfigurableString text of instructions for use of panelpublic void resetToDefaults()
resetToDefaults in interface Configurablepublic JPanel getHelpPanel()
JPanel that will be added to the main GUI
help menu to allow the user to consult a help window
that is particular to this filter.
getHelpPanel in interface GUIConfigurablegetHelpPanel in class AbstractFilterJPanel to be called from the Options menupublic void setConfiguration(ApplicationConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - ApplicationConfiguration default valuespublic Properties getProperties()
getProperties in interface ConfigurableProperties only those directly related to the filterpublic void setProperties(Properties props)
setProperties in interface Configurableprops - Properties all properties in the config filepublic void applySelections(Concept concept)
applySelections in interface ConceptContentSelectorconcept - Conceptpublic String getName()
getName in interface GUIConfigurableStringpublic String getConfigurationDetails()
getConfigurationDetails in interface ConfigurableStringpublic void clearLanguagesToRemove()
public void addLanguageToRemove(Language language)
Language to the data structure that holds
the list of languages to be excluded.
language - Languagepublic void removeLanguageToRemove(Language language)
Language from the data structure that
holds the list of languages to be excluded.
language - Languagepublic boolean isLanguageToRemove(String language)
language - String
booleanpublic List getLanguagesToRemove()
List containing all
languages to be excluded.
Listpublic boolean ignoreEvents()
boolean to indicate whether or not
ListSelectionEvents are to be ignored.
ignoreEvents in interface IgnorableListenerboolean true to be ignored
false otherwisepublic void setIgnoreEvents(boolean b)
ListSelectionEvents
setIgnoreEvents in interface IgnorableListenerb - booleanpublic void tableSortStarted(TableSortEvent e)
tableSortStarted in interface TableSortListenere - TableSortEventpublic void tableSortFinished(TableSortEvent e)
tableSortFinished in interface TableSortListenere - TableSortEventpublic void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenere - ListSelectionEventpublic Color getColor()
Color that should be used to display
the name.
getColor in interface GUIConfigurablegetColor in class AbstractFilterColorpublic boolean isEfficientEnabled()
Filter can use the efficient mode during
the "Initialize Cuis" phase of the subsetting process.
The efficient mode reads only MRCONSO and MRSTY during the
"Initialize Cuis" phase.
isEfficientEnabled in interface Filtertrue if efficient mode is acceptable
false if efficient mode is not acceptable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||