|
||||||||||
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
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 |
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 SourceTermType s 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. |
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 |
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 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 |
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 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 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 added to the Help menupublic void setConfiguration(ApplicationConfiguration c)
ApplicationConfiguration
.
setConfiguration
in interface Configurable
setConfiguration
in class AbstractFilter
c
- the ApplicationConfiguration
public Properties getProperties()
Properties
specific to the filter. Used for undo/redo
and saving state.
getProperties
in interface Configurable
Properties
only those directly related to the filter.public void setProperties(Properties p)
Properties
specific to the filter.
setProperties
in interface Configurable
p
- the Properties
public void applyChanges(Concept concept)
Concept
, but does not remove any data
from the concept.
applyChanges
in interface ConceptManipulator
concept
- Concept
public String getName()
getName
in interface GUIConfigurable
String
public String getConfigurationDetails()
getConfigurationDetails
in interface Configurable
String
public void clearPrecedence()
public List getPrecedence()
ArrayList
ranking
the SourceTermType
s according to precedence.
ArrayList
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 CutandPasteModeListener
e
- CutandPasteModeEvent
public void cutDoneinPasteMode(CutandPasteModeEvent e)
cutDoneinPasteMode
in interface CutandPasteModeListener
e
- CutandPasteModeEvent
public void pasteDoneinPasteMode(CutandPasteModeEvent e)
pasteDoneinPasteMode
in interface CutandPasteModeListener
e
- CutandPasteModeEvent
public void pasteDoneinCutMode(CutandPasteModeEvent e)
pasteDoneinCutMode
in interface CutandPasteModeListener
e
- CutandPasteModeEvent
public boolean validate()
validate
in interface GUIConfigurable
validate
in class AbstractFilter
true
if filter is valid
false
if cut has been done, but paste has
not been done.public String getValidateMessage()
getValidateMessage
in class AbstractFilter
String
with error messagepublic void focusGained(FocusEvent e)
PrecedenceFilter
so as not to leave the filter when a cut has not yet been
pasted.
focusGained
in interface FocusListener
e
- FocusEvent
public void focusLost(FocusEvent e)
PrecedenceFilter
so as not to leave the filter when a cut has not yet been
pasted.
focusLost
in interface FocusListener
e
- FocusEvent
public void sourcesToRemoveChanged(SourcesToRemoveEvent e)
sourcesToRemoveChanged
in interface SourcesToRemoveListener
e
- SourcesToRemoveEvent
public List getPrecedenceSubset()
List
of SourceTermType
spublic 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 |