|
|||||||||
| 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.PrecedenceFilter
public class PrecedenceFilter
This Filter allows the user to reorder the source/termgroup rows in the table to indicate the ranking of termgroups desired.
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
default_configuration, init_cui, subset_content, user_configuration, warnings |
| Constructor Summary | |
|---|---|
PrecedenceFilter()
Instantiates a PrecedenceFilter. |
|
| Method Summary | |
|---|---|
void |
applyChanges(Concept concept)
Manipulates data in the Concept, but does not remove any data
from the concept. |
void |
clearPrecedence()
This method clears the data structure that holds the precedence list. |
void |
cutDoneinCutMode(CutandPasteModeEvent e)
This method is called when a cut has appropriately been done while in cut mode. |
void |
cutDoneinPasteMode(CutandPasteModeEvent e)
This method is called when a cut has been attempted illegally while in paste mode. |
void |
focusGained(FocusEvent e)
Provides means to keep focus on the PrecedenceFilter
so as not to leave the filter when a cut has not yet been
pasted. |
void |
focusLost(FocusEvent e)
Provides means to keep focus on the PrecedenceFilter
so as not to leave the filter when a cut has not yet been
pasted. |
Color |
getColor()
Method indicates the Color that should be used to display
the name. |
String |
getConfigurationDetails()
Method returns a list of the precedence order for display in the configuration file. |
JPanel |
getHelpPanel()
Returns 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. |
String |
getName()
Returns the name. |
JPanel |
getPanel()
Provides the GUI panel that will display the filter's screen as one of the tabs on the main GUI window. |
List |
getPrecedence()
This method returns the ArrayList ranking
the SourceTermTypes according to precedence. |
List |
getPrecedenceSubset()
Gets the subset of rows from the precedence data that will not be excluded based on the exclusions chosen on the Sources to Exclude tab. |
Properties |
getProperties()
Returns all Properties specific to the filter. |
String |
getTabDescription()
Returns the description. |
String |
getValidateMessage()
This method returns the message that the user will see if this filter is invalid. |
String[] |
getValidationErrors()
Returns the messages indicating why validation failed. |
boolean |
isEfficientEnabled()
Indicates if Filter can use the efficient mode during
the "Initialize Cuis" phase of the subsetting process. |
void |
moveSourceTermTypes(int[] drag_row_index,
int drop_row_index)
This method makes updates to the precedence list based on changes made by the user with the drag & drop interface. |
void |
pasteDoneinCutMode(CutandPasteModeEvent e)
This method is called when a paste has been attempted illegally while in cut mode. |
void |
pasteDoneinPasteMode(CutandPasteModeEvent e)
This method is called when a paste has appropriately been done while in paste mode. |
void |
resetToDefaults()
Resets filter state to default. |
void |
setConfiguration(ApplicationConfiguration c)
Sets the ApplicationConfiguration. |
void |
setPanelSelections()
Applies state to panel selections. |
void |
setPrecedence(List prec_list)
Sets the List ranking
the SourceTermTypes according to precedence. |
void |
setProperties(Properties p)
Sets all Properties specific to the filter. |
void |
sourcesToRemoveChanged(SourcesToRemoveEvent e)
This method is called when there is a change to the selections on the sources to exclude tab. |
boolean |
validate()
This method indicates that this filter is only valid when any rows that have been cut have also been pasted. |
| Methods inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
|---|
addDataChangeListener, applyFilter, beginInitializeCuiList, beginSubsetContent, compareTo, endInitializeCuiList, endSubsetContent, fireDataChanged, fireNotUndoableDataChanged, getGUIConfigurableForValidationFailure, getValidationWarnings, 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, getGUIConfigurableForValidationFailure, getValidationWarnings, 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 PrecedenceFilter()
PrecedenceFilter.
| Method Detail |
|---|
public JPanel getPanel()
getPanel in interface GUIConfigurableJPanel that displays graphical interface for the filterpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic String getTabDescription()
getTabDescription in interface GUIConfigurablepublic 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 added to the Help menupublic void setConfiguration(ApplicationConfiguration c)
ApplicationConfiguration.
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - the ApplicationConfigurationpublic Properties getProperties()
Properties specific to the filter. Used for undo/redo
and saving state.
getProperties in interface ConfigurableProperties only those directly related to the filter.public void setProperties(Properties p)
Properties specific to the filter.
setProperties in interface Configurablep - the Propertiespublic void applyChanges(Concept concept)
Concept, but does not remove any data
from the concept.
applyChanges in interface ConceptManipulatorconcept - Conceptpublic String getName()
getName in interface GUIConfigurableStringpublic String getConfigurationDetails()
getConfigurationDetails in interface ConfigurableStringpublic void clearPrecedence()
public List getPrecedence()
ArrayList ranking
the SourceTermTypes according to precedence.
ArrayListpublic void setPrecedence(List prec_list)
List ranking
the SourceTermTypes according to precedence.
prec_list - the precedence List
public void moveSourceTermTypes(int[] drag_row_index,
int drop_row_index)
drag_row_index - int[]- indexes of all rows to be
dragged to new locationdrop_row_index - int - index of location where dragged
rows should be droppedpublic void cutDoneinCutMode(CutandPasteModeEvent e)
cutDoneinCutMode in interface CutandPasteModeListenere - CutandPasteModeEventpublic void cutDoneinPasteMode(CutandPasteModeEvent e)
cutDoneinPasteMode in interface CutandPasteModeListenere - CutandPasteModeEventpublic void pasteDoneinPasteMode(CutandPasteModeEvent e)
pasteDoneinPasteMode in interface CutandPasteModeListenere - CutandPasteModeEventpublic void pasteDoneinCutMode(CutandPasteModeEvent e)
pasteDoneinCutMode in interface CutandPasteModeListenere - CutandPasteModeEventpublic boolean validate()
validate in interface GUIConfigurablevalidate in class AbstractFiltertrue if filter is valid
false if cut has been done, but paste has
not been done.public String getValidateMessage()
getValidateMessage in class AbstractFilterString with error messagepublic String[] getValidationErrors()
validate() returns false.
getValidationErrors in interface GUIConfigurablegetValidationErrors in class AbstractFilterpublic void focusGained(FocusEvent e)
PrecedenceFilter
so as not to leave the filter when a cut has not yet been
pasted.
focusGained in interface FocusListenere - FocusEventpublic void focusLost(FocusEvent e)
PrecedenceFilter
so as not to leave the filter when a cut has not yet been
pasted.
focusLost in interface FocusListenere - FocusEventpublic void sourcesToRemoveChanged(SourcesToRemoveEvent e)
sourcesToRemoveChanged in interface SourcesToRemoveListenere - SourcesToRemoveEventpublic List getPrecedenceSubset()
List of SourceTermTypespublic 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 | ||||||||