|
|||||||||
| 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
public class 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, warnings |
| 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, getWarnings, 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, getWarnings |
| 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 GUIConfigurableJPanelpublic 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 GUIConfigurablegetHelpPanel in class AbstractFilterJPanel to be added to the Help menupublic String getTabDescription()
getTabDescription in interface GUIConfigurableStringpublic void resetToDefaults()
resetToDefaults in interface Configurablepublic void setConfiguration(ApplicationConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - ApplicationConfigurationpublic Properties getProperties()
Properties object with the configuration.
getProperties in interface ConfigurableProperties object with the configuration.public void setProperties(Properties props)
setProperties in interface Configurableprops - Propertiespublic 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 ConceptContentSelectorconcept - Conceptpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic String getName()
Filter.
getName in interface GUIConfigurablepublic String getConfigurationDetails()
Filter.
getConfigurationDetails in interface Configurablepublic 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 acceptablepublic boolean validate()
validate in interface GUIConfigurablevalidate in class AbstractFiltertrue filter is validpublic String getValidateMessage()
getValidateMessage in class AbstractFilterpublic String[] getValidationErrors()
validate() returns false.
getValidationErrors in interface GUIConfigurablegetValidationErrors in class AbstractFilterpublic String[] getValidationWarnings()
getValidationWarnings in interface GUIConfigurablegetValidationWarnings in class AbstractFilterpublic GUIConfigurable getGUIConfigurableForValidationFailure()
GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning.
getGUIConfigurableForValidationFailure in interface GUIConfigurablegetGUIConfigurableForValidationFailure in class AbstractFilterpublic void sourcesToRemoveChanged(SourcesToRemoveEvent stre)
sourcesToRemoveChanged in interface SourcesToRemoveListenerstre - the event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||