|
||||||||||
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.ContentViewFilter
Keeps only content in selected content views. Content view definitions are entirely data driven from the "default" property file.
Field Summary |
Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
default_configuration, init_cui, subset_content, user_configuration |
Constructor Summary | |
ContentViewFilter()
Instantiates an empty ContentViewFilter . |
Method Summary | |
void |
applySelections(Concept concept)
Apply the filter to the specified Concept . |
Color |
getColor()
Method indicates the Color that should be used to display
the name. |
String |
getConfigurationDetails()
Returns the statement that should appear in the subset log file regarding this Filter . |
GUIConfigurable |
getGUIConfigurableForValidationFailure()
Returns the GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning. |
JPanel |
getHelpPanel()
Method provides a JPanel that will be called from
the help menu to allow the user to reference a help window
that is particular to this filter. |
String |
getName()
Returns the name of the Filter . |
JPanel |
getPanel()
Returns a configuration panel. |
Properties |
getProperties()
Returns a Properties object with the configuration. |
String |
getTabDescription()
Return the description to appear above the main configuration panel in the {#link MetamorphoSysGUI}. |
String |
getValidateMessage()
Returns the validation message (if validation falied). |
String[] |
getValidationErrors()
Returns the messages indicating why validation failed. |
String[] |
getValidationWarnings()
Returns warnings that were indicated during validation. |
boolean |
isEfficientEnabled()
Indicates if Filter can use the efficient mode during
the "Initialize Cuis" phase of the subsetting process. |
void |
resetToDefaults()
There are no defaults because this filter has nothing to configure. |
void |
setConfiguration(ApplicationConfiguration c)
Gives the filter access to the default configuration object. |
void |
setPanelSelections()
Inactive method because there are no items to configure on this filter. |
void |
setProperties(Properties props)
Not an active method, because this filter doesn't have any filter specific properties. |
void |
sourcesToRemoveChanged(SourcesToRemoveEvent stre)
Listens for changes in the sources to remove list. |
boolean |
validate()
This method is the default method for filters that don't check for validity and it returns true indicating a valid filter. |
Methods inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
addDataChangeListener, applyFilter, beginInitializeCuiList, beginSubsetContent, compareTo, endInitializeCuiList, endSubsetContent, fireDataChanged, fireNotUndoableDataChanged, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setConfiguration, setCuiList, setDataChanged, showOptions |
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, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, showOptions |
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 ContentViewFilter()
ContentViewFilter
.
Method Detail |
public JPanel getPanel()
getPanel
in interface GUIConfigurable
JPanel
public JPanel getHelpPanel()
JPanel
that will be called from
the help menu to allow the user to reference a help window
that is particular to this filter.
getHelpPanel
in interface GUIConfigurable
getHelpPanel
in class AbstractFilter
JPanel
to be added to the Help menupublic String getTabDescription()
getTabDescription
in interface GUIConfigurable
String
public void resetToDefaults()
resetToDefaults
in interface Configurable
public void setConfiguration(ApplicationConfiguration c)
setConfiguration
in interface Configurable
setConfiguration
in class AbstractFilter
c
- ApplicationConfiguration
public Properties getProperties()
Properties
object with the configuration.
getProperties
in interface Configurable
Properties
object with the configuration.public void setProperties(Properties props)
setProperties
in interface Configurable
props
- Properties
public void applySelections(Concept concept)
Concept
. Atoms whose
Content View Fields don't provide a bit-wise AND with the selected
views, that is non-zero, are removed.
applySelections
in interface ConceptContentSelector
concept
- Concept
public void setPanelSelections()
setPanelSelections
in interface GUIConfigurable
public String getName()
Filter
.
getName
in interface GUIConfigurable
public String getConfigurationDetails()
Filter
.
getConfigurationDetails
in interface Configurable
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 acceptablepublic boolean validate()
validate
in interface GUIConfigurable
validate
in class AbstractFilter
true
filter is validpublic String getValidateMessage()
getValidateMessage
in class AbstractFilter
public String[] getValidationErrors()
validate()
returns false
.
getValidationErrors
in interface GUIConfigurable
getValidationErrors
in class AbstractFilter
public String[] getValidationWarnings()
getValidationWarnings
in interface GUIConfigurable
getValidationWarnings
in class AbstractFilter
public GUIConfigurable getGUIConfigurableForValidationFailure()
GUIConfigurable
whose tab should next be displayed
to allow the user to correct an error or warning.
getGUIConfigurableForValidationFailure
in interface GUIConfigurable
getGUIConfigurableForValidationFailure
in class AbstractFilter
public void sourcesToRemoveChanged(SourcesToRemoveEvent stre)
sourcesToRemoveChanged
in interface SourcesToRemoveListener
stre
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |