|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.browser.AbstractFinder
gov.nih.nlm.mms.browser.WordSearchFinder
Finds Concept
s via word searches.
Nested Class Summary | |
class |
WordSearchFinder.BackwardAction
|
class |
WordSearchFinder.ForwardAction
|
class |
WordSearchFinder.PopupListener
|
Field Summary | |
static String |
normalized_mode
|
static String |
regular_mode
|
Fields inherited from class gov.nih.nlm.mms.browser.AbstractFinder |
clm, font_family, font_point_size, has_data_changed, user_configuration |
Constructor Summary | |
WordSearchFinder()
Instantiates a WordSearchFinder . |
Method Summary | |
void |
addDataChangeListener(DataChangeListener dcl)
Adds a DataChangeListener that responds to configuration changes. |
Comparator |
getComparator()
Returns the Comparator that will be used for sorting the word
search results. |
Language |
getLanguage()
Returns the Language of the index that will be searched. |
String |
getLvgConfigFile()
|
String |
getName()
Returns the name. |
JPanel |
getPanel()
Returns a JPanel containing configuration options. |
Properties |
getProperties()
Method returns all properties specific to the Finder . |
String |
getSearchMode()
|
double |
getThreshold()
Returns the rank threshold. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
void |
highlightText()
Highlights the text displayed in the word text field. |
void |
refresh()
Redraws the text portions of the Finder . |
void |
removeDataChangeListener(DataChangeListener dcl)
Removes the specified DataChangeListener . |
void |
resetToDefaults()
Resets the configuration back to default values. |
void |
setComparator(Comparator comparator)
Sets the Comparator thtat will be used for sorting the word search
results. |
void |
setLanguage(Language lat)
Sets the Language of the index that will be searched. |
void |
setLvgConfigFile(String lvg_config_file)
|
void |
setProperties(Properties p)
Sets the finder properties. |
void |
setSearchMode(String search_mode)
|
void |
setThreshold(double threshold)
Sets the rank threshold. |
void |
showOptions()
Presents an advanced options GUI to the user. |
void |
subsetDirectoryOpened(File source_dir)
Handles opening of a source directory. |
Methods inherited from class gov.nih.nlm.mms.browser.AbstractFinder |
compareTo, getColor, getConfigurationDetails, getGUIConfigurableForValidationFailure, getHelpPanel, getTabDescription, getValidateMessage, getValidationErrors, getValidationWarnings, hasDataChanged, resetDataChanged, setConceptListManager, setConfiguration, setConfiguration, setDataChanged, setFontFamily, setFontPointSize, setPanelSelections, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String regular_mode
public static String normalized_mode
Constructor Detail |
public WordSearchFinder()
WordSearchFinder
.
Method Detail |
public JPanel getPanel()
JPanel
containing configuration options.
JPanel
containing configuration optionspublic Properties getProperties()
Finder
.
getProperties
in interface Configurable
getProperties
in class AbstractFinder
Properties
only those directly related to the finder.public void setProperties(Properties p)
setProperties
in interface Configurable
setProperties
in class AbstractFinder
p
- Properties
public double getThreshold()
public void setThreshold(double threshold)
threshold
- the rank thresholdpublic void subsetDirectoryOpened(File source_dir)
subsetDirectoryOpened
in interface Finder
subsetDirectoryOpened
in class AbstractFinder
source_dir
- the source directorypublic Language getLanguage()
Language
of the index that will be searched. The
default is "ENG".
Language
public Comparator getComparator()
Comparator
that will be used for sorting the word
search results.
Comparator
public String getSearchMode()
public void setSearchMode(String search_mode)
public String getLvgConfigFile()
public void setLvgConfigFile(String lvg_config_file)
public void setComparator(Comparator comparator)
Comparator
thtat will be used for sorting the word search
results.
comparator
- Comparator
public void setLanguage(Language lat)
Language
of the index that will be searched.
lat
- Language
public void resetToDefaults()
setPanelSelections
to actually update the GUI.
public void highlightText()
public void addDataChangeListener(DataChangeListener dcl)
DataChangeListener
that responds to configuration changes.
Allows main GUI to record all changes to this gui in the undo/redo
mechanism.
addDataChangeListener
in interface GUIConfigurable
addDataChangeListener
in class AbstractFinder
dcl
- the DataChangeListener
to addpublic void removeDataChangeListener(DataChangeListener dcl)
DataChangeListener
.
removeDataChangeListener
in interface GUIConfigurable
removeDataChangeListener
in class AbstractFinder
dcl
- the DataChangeListener
to removepublic String getName()
public void showOptions()
public boolean hasAdvancedOptions()
true
if so; false
otherwisepublic void refresh()
Finder
.
refresh
in interface Finder
refresh
in class AbstractFinder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |