|
||||||||||
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.RemoveByTermgroupFilter
Computes which content is removable based on source/term types and removes it.
Field Summary |
Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
default_configuration, init_cui, subset_content, user_configuration |
Constructor Summary | |
RemoveByTermgroupFilter()
Instantiates an empty RemoveByTermgroupFilter . |
Method Summary | |
protected void |
addRemovableTermgroup(SourceTermType tg)
Adds a SourceTermType to the list of removable termgroups. |
void |
applySelections(Concept concept)
Sets the suppressibility of atoms and removes suppressible content if advanced options indicate to do so. |
void |
clearConfirmDefaultRemovableTermgroups()
Clears the list of SourceTermType s that have been confirmed by the
user to be removable. |
protected void |
clearRemovableTermgroups()
Clears the list of removable SourceTermType s. |
boolean |
getAutomaticSelection()
This method indicates whether the automatic_selection option has been chosen. |
Color |
getColor()
Returns the Color that should be used to display the name. |
String |
getConfigurationDetails()
Returns configuration details for use in mmsys.log . |
List |
getConfirmDefaultRemovableTermgroups()
Returns a list of SourceTermType s that have been confirmed by the
user via a dialog box to be removable. |
List |
getDefaultRemovableTermgroups()
Returns an List containing all SourceTermType s to be
removed from the default termgroup list. |
JPanel |
getHelpPanel()
Returns a help JPanel . |
String |
getName()
Returns the filter name. |
JPanel |
getPanel()
Returns the GUI panel that will display the filter's screen as one of the tabs on the main GUI window. |
Properties |
getProperties()
Returns filter state. |
List |
getRemovableTermgroups()
Returns the List containing all removable SourceTermType s. |
SortableJTable |
getRemovableTermgroupsTable()
Returns the table that includes SourceTermType s with the removable
termgroups highlighted. |
int |
getRowForTermgroup(SourceTermType tg)
Maps a SourceTermType to a row number in the table. |
List |
getSourceTermTypes()
This method returns the List containing all SourceTermType s. |
List |
getSourceTermTypes(Source s)
This method returns the List containing all SourceTermType s
that share the same Source . |
String |
getTabDescription()
Returns the description. |
SourceTermType |
getTermgroupAtRow(int tg)
Maps a row number to the SourceTermType . |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
boolean |
isEfficientEnabled()
Indicates if Filter can use the efficient mode during the
"Initialize Cuis" phase of the subsetting process. |
protected void |
removeRemovableTermgroup(SourceTermType tg)
Removes a SourceTermType from the list of removable termgroups. |
boolean |
removeSelectedTermgroups()
This method indicates whether the selections represent source term types to be excluded or source term types to be kept. |
void |
resetToDefaults()
Resets state to defaults. |
void |
setConfiguration(ApplicationConfiguration c)
Sets the ApplicationConfiguration . |
void |
setPanelSelections()
Selects rows on the source/term type table for rows of termgroups that should be removed. |
void |
setProperties(Properties p)
Sets filter state. |
void |
setRemovableTermgroups(List stgs)
Sets the removable termgroups list with the one provided. |
void |
setRemoveSelectedTermgroups(boolean b)
This method sets whether or not the selections represent source term types to be excluded or source term types to be kept. |
void |
showOptions()
Shows an advanced options GUI to the user. |
void |
sourcesToRemoveChanged(SourcesToRemoveEvent e)
Resets the removability table when the user tabs between filters. |
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, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, 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 RemoveByTermgroupFilter()
RemoveByTermgroupFilter
.
Method Detail |
public JPanel getPanel()
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
public void resetToDefaults()
resetToDefaults
in interface Configurable
public void showOptions()
showOptions
in interface GUIConfigurable
showOptions
in class AbstractFilter
public boolean hasAdvancedOptions()
hasAdvancedOptions
in interface GUIConfigurable
hasAdvancedOptions
in class AbstractFilter
true
if so; false
otherwisepublic JPanel getHelpPanel()
JPanel
.
getHelpPanel
in interface GUIConfigurable
getHelpPanel
in class AbstractFilter
JPanel
public void setConfiguration(ApplicationConfiguration c)
ApplicationConfiguration
. Used for "default" selections.
setConfiguration
in interface Configurable
setConfiguration
in class AbstractFilter
c
- the ApplicationConfiguration
public Properties getProperties()
getProperties
in interface Configurable
Properties
public void setProperties(Properties p)
setProperties
in interface Configurable
p
- Properties
representing filter statepublic void applySelections(Concept concept)
applySelections
in interface ConceptContentSelector
concept
- the current Concept
public String getName()
getName
in interface GUIConfigurable
public boolean getAutomaticSelection()
boolean
true
false
public String getConfigurationDetails()
mmsys.log
.
getConfigurationDetails
in interface Configurable
mmsys.log
protected void clearRemovableTermgroups()
SourceTermType
s.
protected void addRemovableTermgroup(SourceTermType tg)
SourceTermType
to the list of removable termgroups.
tg
- the SourceTermType
protected void removeRemovableTermgroup(SourceTermType tg)
SourceTermType
from the list of removable termgroups.
tg
- SourceTermType
public List getDefaultRemovableTermgroups()
List
containing all SourceTermType
s to be
removed from the default termgroup list.
List
of removed termgroupspublic List getConfirmDefaultRemovableTermgroups()
SourceTermType
s that have been confirmed by the
user via a dialog box to be removable. Prevents user from being queried
twice about a termgroup's removability.
List
of removed termgroupspublic void clearConfirmDefaultRemovableTermgroups()
SourceTermType
s that have been confirmed by the
user to be removable.
public boolean removeSelectedTermgroups()
true
selected source term types will be excluded
false
selected source term types will be keptpublic void setRemoveSelectedTermgroups(boolean b)
b
- boolean
public List getSourceTermTypes()
List
containing all SourceTermType
s.
List
of SourceTermType
spublic List getSourceTermTypes(Source s)
List
containing all SourceTermType
s
that share the same Source
.
s
- Source
List
of RelType
spublic void setRemovableTermgroups(List stgs)
stgs
- the List
of SourceTermType
spublic List getRemovableTermgroups()
List
containing all removable SourceTermType
s.
List
of removable termgroupspublic SortableJTable getRemovableTermgroupsTable()
SourceTermType
s with the removable
termgroups highlighted.
SortableJTable
public void sourcesToRemoveChanged(SourcesToRemoveEvent e)
sourcesToRemoveChanged
in interface SourcesToRemoveListener
e
- SourcesToRemoveEvent
public int getRowForTermgroup(SourceTermType tg)
SourceTermType
to a row number in the table.
This is necessary because only SourceTermType
s from sources that
are not to be excluded will be visible in the table.
tg
- the SourceTermType
int
row number of termgroup in table -1 if termgroup
is to be excludedpublic SourceTermType getTermgroupAtRow(int tg)
SourceTermType
. Adjusts for the
SourceTermType
s that are not currently visible in the table
because their sources are to be excluded.
tg
- int
row in the table
SourceTermType
located at that row in the tablepublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |