gov.nih.nlm.mms.browser
Class CodeSearchFinder

java.lang.Object
  extended by gov.nih.nlm.mms.browser.AbstractFinder
      extended by gov.nih.nlm.mms.browser.CodeSearchFinder
All Implemented Interfaces:
Finder, Configurable, GUIConfigurable, Comparable

public class CodeSearchFinder
extends AbstractFinder

Represents a Finder that directly looks up concepts by CODE values. All methods in this class should be called from a separate thread.

Author:
Deborah Shapiro

Nested Class Summary
 class CodeSearchFinder.BackwardAction
          Action used to display previous page when more than one page of results are produced.
 class CodeSearchFinder.ForwardAction
          Action used to display next page when more than one page of results are produced.
 class CodeSearchFinder.NameComparator
          Comparator used to sort the preferred strings to be used for display in the list of Concepts returned.
 class CodeSearchFinder.PopupListener
          Required to make right-click JPopupMenu functional.
 
Field Summary
 
Fields inherited from class gov.nih.nlm.mms.browser.AbstractFinder
clm, fBrowsableInputStream, font_family, font_point_size, has_data_changed, user_configuration
 
Constructor Summary
CodeSearchFinder()
          Instantiates a CodeSearchFinder.
 
Method Summary
 String getName()
          Returns the name.
 JPanel getPanel()
          Returns a JPanel containing configuration options.
 Properties getProperties()
          Method returns all properties specific to the ConceptView.
 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 code text field.
 void refresh()
          Redraws the text portions of the Finder.
 void resetToDefaults()
          Resets the configuration back to default values.
 void setProperties(Properties p)
          Sets the view properties.
 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
addDataChangeListener, compareTo, getBrowsableInputStream, getColor, getConfigurationDetails, getGUIConfigurableForValidationFailure, getHelpPanel, getTabDescription, getValidateMessage, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setBrowsableInputStream, 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
 

Constructor Detail

CodeSearchFinder

public CodeSearchFinder()
Instantiates a CodeSearchFinder.

Method Detail

getPanel

public JPanel getPanel()
Returns a JPanel containing configuration options.

Returns:
a JPanel containing configuration options

subsetDirectoryOpened

public void subsetDirectoryOpened(File source_dir)
Handles opening of a source directory.

Specified by:
subsetDirectoryOpened in interface Finder
Overrides:
subsetDirectoryOpened in class AbstractFinder
Parameters:
source_dir - the source directory

getProperties

public Properties getProperties()
Method returns all properties specific to the ConceptView.

Specified by:
getProperties in interface Configurable
Overrides:
getProperties in class AbstractFinder
Returns:
Properties only those directly related to the concept view.

setProperties

public void setProperties(Properties p)
Sets the view properties.

Specified by:
setProperties in interface Configurable
Overrides:
setProperties in class AbstractFinder
Parameters:
p - Properties

resetToDefaults

public void resetToDefaults()
Resets the configuration back to default values. When used with a GUI this method should change the data model behind the GUI and allow setPanelSelections to actually update the GUI.


highlightText

public void highlightText()
Highlights the text displayed in the code text field.


getName

public String getName()
Returns the name.

Returns:
the name

showOptions

public void showOptions()
Presents an advanced options GUI to the user.


hasAdvancedOptions

public boolean hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options.

Returns:
true if so; false otherwise

refresh

public void refresh()
Redraws the text portions of the Finder. Should be called from a new Thread().

Specified by:
refresh in interface Finder
Overrides:
refresh in class AbstractFinder


Copyright ©2005