|
||||||||||
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
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 |
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
ListSelectionEvent s 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 ListSelectionEvent s |
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 |
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 GUIConfigurable
JPanel
that displays graphical interface
for the filterpublic void setPanelSelections()
setPanelSelections
in interface GUIConfigurable
public String getTabDescription()
getTabDescription
in interface GUIConfigurable
String
text of instructions for use of panelpublic void resetToDefaults()
resetToDefaults
in interface Configurable
public 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 GUIConfigurable
getHelpPanel
in class AbstractFilter
JPanel
to be called from the Options menupublic void setConfiguration(ApplicationConfiguration c)
setConfiguration
in interface Configurable
setConfiguration
in class AbstractFilter
c
- ApplicationConfiguration
default valuespublic Properties getProperties()
getProperties
in interface Configurable
Properties
only those directly related to the filterpublic void setProperties(Properties props)
setProperties
in interface Configurable
props
- Properties
all properties in the config filepublic void applySelections(Concept concept)
applySelections
in interface ConceptContentSelector
concept
- Concept
public String getName()
getName
in interface GUIConfigurable
String
public String getConfigurationDetails()
getConfigurationDetails
in interface Configurable
String
public void clearLanguagesToRemove()
public void addLanguageToRemove(Language language)
Language
to the data structure that holds
the list of languages to be excluded.
language
- Language
public void removeLanguageToRemove(Language language)
Language
from the data structure that
holds the list of languages to be excluded.
language
- Language
public boolean isLanguageToRemove(String language)
language
- String
boolean
public List getLanguagesToRemove()
List
containing all
languages to be excluded.
List
public boolean ignoreEvents()
boolean
to indicate whether or not
ListSelectionEvent
s are to be ignored.
ignoreEvents
in interface IgnorableListener
boolean
true
to be ignored
false
otherwisepublic void setIgnoreEvents(boolean b)
ListSelectionEvent
s
setIgnoreEvents
in interface IgnorableListener
b
- boolean
public void tableSortStarted(TableSortEvent e)
tableSortStarted
in interface TableSortListener
e
- TableSortEvent
public void tableSortFinished(TableSortEvent e)
tableSortFinished
in interface TableSortListener
e
- TableSortEvent
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
e
- ListSelectionEvent
public Color getColor()
Color
that should be used to display
the name.
getColor
in interface GUIConfigurable
getColor
in class AbstractFilter
Color
public 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 Filter
true
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 |