gov.nih.nlm.mms.browser
Class CodeSearchFinder

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

public class CodeSearchFinder
extends AbstractFinder

Represents a Finder that directly looks up concepts by CODE values.

Author:
Deborah Shapiro

Nested Class Summary
 class CodeSearchFinder.BackwardAction
           
 class CodeSearchFinder.ForwardAction
           
 class CodeSearchFinder.NameComparator
           
 class CodeSearchFinder.PopupListener
           
 
Field Summary
 
Fields inherited from class gov.nih.nlm.mms.browser.AbstractFinder
clm, default_configuration, 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 word 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, getColor, getConfigurationDetails, getGUIConfigurableForValidationFailure, getHelpPanel, getTabDescription, getValidateMessage, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, 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
 

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 word 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.

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


Copyright ©2005