gov.nih.nlm.mms.browser
Class CodeSearchFinder

java.lang.Object
  extended by gov.nih.nlm.mms.AbstractGUIConfigurable
      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.PopupListener
          Required to make right-click JPopupMenu functional.
 
Field Summary
 
Fields inherited from class gov.nih.nlm.mms.browser.AbstractFinder
clm, conceptDataSelector, fBrowsableInputStream, font_family, font_point_size, has_data_changed, searchOptions
 
Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable
data_changed, default_configuration, listeners, 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 subsetDirectoryOpened(File source_dir)
          Handles opening of a source directory.
 
Methods inherited from class gov.nih.nlm.mms.browser.AbstractFinder
getBrowsableInputStream, getConceptDataSelector, getHelpPanel, setBrowsableInputStream, setConceptDataSelector, setConceptListManager, setFontFamily, setFontPointSize, setPanelSelections, setSearchOptions
 
Methods inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable
addDataChangeListener, addValidationError, addValidationWarning, clearValidationErrors, clearValidationWarnings, compareTo, fireDataChanged, getColor, getConfigurationDetails, getGUIConfigurableForValidationFailure, getTabDescription, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setConfiguration, setConfiguration, setDataChanged, showOptions, validate
 
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.GUIConfigurable
addDataChangeListener, getColor, getGUIConfigurableForValidationFailure, getTabDescription, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, showOptions, validate
 
Methods inherited from interface gov.nih.nlm.mms.Configurable
getConfigurationDetails, setConfiguration, setConfiguration
 

Constructor Detail

CodeSearchFinder

public CodeSearchFinder()
Instantiates a CodeSearchFinder.

Method Detail

getPanel

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

Specified by:
getPanel in interface GUIConfigurable
Overrides:
getPanel in class AbstractGUIConfigurable
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 AbstractGUIConfigurable
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 AbstractGUIConfigurable
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.

Specified by:
resetToDefaults in interface Configurable
Overrides:
resetToDefaults in class AbstractGUIConfigurable

highlightText

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


getName

public String getName()
Returns the name.

Specified by:
getName in interface GUIConfigurable
Overrides:
getName in class AbstractGUIConfigurable
Returns:
the name

hasAdvancedOptions

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

Specified by:
hasAdvancedOptions in interface GUIConfigurable
Overrides:
hasAdvancedOptions in class AbstractGUIConfigurable
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