gov.nih.nlm.mms.browser
Class AbstractFinder

java.lang.Object
  extended by gov.nih.nlm.mms.AbstractGUIConfigurable
      extended by gov.nih.nlm.mms.browser.AbstractFinder
All Implemented Interfaces:
Finder, Configurable, GUIConfigurable, Comparable
Direct Known Subclasses:
CodeSearchFinder, CuiSearchFinder, TreeBrowserFinder, WordSearchFinder

public abstract class AbstractFinder
extends AbstractGUIConfigurable
implements Comparable, Finder

Abstract implementation of the Finder interface. All methods in this class should be called from a separate thread.

Author:
Deborah Shapiro

Field Summary
protected  ConceptListManager clm
           
protected  ConceptDataSelector conceptDataSelector
           
protected  BrowsableInputStream fBrowsableInputStream
           
protected  String font_family
           
protected  int font_point_size
           
protected  boolean has_data_changed
          Indicates whether or not filter data has changed (and therefore needs to be saved).
protected  SearchOptions searchOptions
           
 
Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable
data_changed, default_configuration, listeners, user_configuration
 
Constructor Summary
AbstractFinder()
          Instantiates an AbstractFinder.
 
Method Summary
protected  BrowsableInputStream getBrowsableInputStream()
           
 ConceptDataSelector getConceptDataSelector()
          Get ConceptDataSelector
 JPanel getHelpPanel()
          Returns a JPanel that will be displayed when the user selects the corresponding menu item from the Help menu and will provide the user with detailed instructions on the tab's use.
 void refresh()
          Redraws the text portions of the Finder.
 void setBrowsableInputStream(BrowsableInputStream browsableInputStream)
          Sets the BrowsableInputStream.
 void setConceptDataSelector(ConceptDataSelector conceptDataSelector)
          Set ConceptDataSelector
 void setConceptListManager(ConceptListManager clm)
          Sets the ConceptListManager.
 void setFontFamily(String font_family)
          Sets the font family for this Finder.
 void setFontPointSize(int point_size)
          Sets the font point size for this Finder.
 void setPanelSelections()
          Updates the view to reflect the data model.
 void setSearchOptions(SearchOptions searchOptions)
          Set the SearchOptions
 void subsetDirectoryOpened(File source_dir)
          Handles opening of a source directory.
 
Methods inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable
addDataChangeListener, addValidationError, addValidationWarning, clearValidationErrors, clearValidationWarnings, compareTo, fireDataChanged, getColor, getConfigurationDetails, getGUIConfigurableForValidationFailure, getName, getPanel, getProperties, getTabDescription, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, resetToDefaults, setConfiguration, setConfiguration, setDataChanged, setProperties, 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, getName, getPanel, getTabDescription, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, showOptions, validate
 
Methods inherited from interface gov.nih.nlm.mms.Configurable
getConfigurationDetails, getProperties, resetToDefaults, setConfiguration, setConfiguration, setProperties
 

Field Detail

clm

protected ConceptListManager clm

fBrowsableInputStream

protected BrowsableInputStream fBrowsableInputStream

font_family

protected String font_family

font_point_size

protected int font_point_size

has_data_changed

protected boolean has_data_changed
Indicates whether or not filter data has changed (and therefore needs to be saved).


searchOptions

protected SearchOptions searchOptions

conceptDataSelector

protected ConceptDataSelector conceptDataSelector
Constructor Detail

AbstractFinder

public AbstractFinder()
Instantiates an AbstractFinder.

Method Detail

setConceptListManager

public void setConceptListManager(ConceptListManager clm)
Sets the ConceptListManager.

Specified by:
setConceptListManager in interface Finder
Parameters:
clm - ConceptListManager

getBrowsableInputStream

protected BrowsableInputStream getBrowsableInputStream()

setBrowsableInputStream

public void setBrowsableInputStream(BrowsableInputStream browsableInputStream)
Sets the BrowsableInputStream.

Specified by:
setBrowsableInputStream in interface Finder
Parameters:
browsableInputStream - BrowsableInputStream.

getHelpPanel

public JPanel getHelpPanel()
Returns a JPanel that will be displayed when the user selects the corresponding menu item from the Help menu and will provide the user with detailed instructions on the tab's use.

Specified by:
getHelpPanel in interface GUIConfigurable
Overrides:
getHelpPanel in class AbstractGUIConfigurable
Returns:
the JPanel to be used when showing user help

setPanelSelections

public void setPanelSelections()
Updates the view to reflect the data model.

Specified by:
setPanelSelections in interface GUIConfigurable
Overrides:
setPanelSelections in class AbstractGUIConfigurable

subsetDirectoryOpened

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

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

setFontPointSize

public void setFontPointSize(int point_size)
Sets the font point size for this Finder.

Specified by:
setFontPointSize in interface Finder
Parameters:
point_size - int

setFontFamily

public void setFontFamily(String font_family)
Sets the font family for this Finder.

Specified by:
setFontFamily in interface Finder
Parameters:
font_family - int

refresh

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

Specified by:
refresh in interface Finder

setSearchOptions

public void setSearchOptions(SearchOptions searchOptions)
Set the SearchOptions

Specified by:
setSearchOptions in interface Finder
Parameters:
searchOptions - the searchOptions to set

getConceptDataSelector

public ConceptDataSelector getConceptDataSelector()
Get ConceptDataSelector

Returns:
the conceptDataSelector

setConceptDataSelector

public void setConceptDataSelector(ConceptDataSelector conceptDataSelector)
Set ConceptDataSelector

Specified by:
setConceptDataSelector in interface Finder
Parameters:
conceptDataSelector - the conceptDataSelector to set


Copyright ©2005