gov.nih.nlm.mms.browser
Class FinderManager

java.lang.Object
  extended bygov.nih.nlm.mms.browser.FinderManager
All Implemented Interfaces:
ChangeListener, EventListener

public class FinderManager
extends Object
implements ChangeListener

Manages the Finders.

Author:
Deborah Shapiro

Constructor Summary
FinderManager()
          Instantiates an FinderManager.
 
Method Summary
 void addFinder(Finder finder)
          Adds a Finder to the FinderManager.
 void clear()
          Resets the graphical components of the Finders.
 Component getComponentForTab(GUIConfigurable gui_configurable)
          Returns the GUI Component for the specified Filter.
 Finder getCurrentFinder()
          Returns the Finder that is currently being displayed on the JTabbedPane.
 Set getFinders()
          Returns the Set of Finders.
 JPanel getPanel()
          Returns a JPanel with a JTabbedPane displaying all of the FinderManager's Finders.
 void setConceptListManager(ConceptListManager clm)
          Sets the ConceptListManager for the RRFBrowserGUI.
 void setFontFamily(String font_family)
          Notifies all the Finders of the font family to be used for text display.
 void setFontPointSize(int font_point_size)
          Notifies all the Finders of the font point size to be used for text display.
 void stateChanged(ChangeEvent e)
          Responds to a user switching tabs in the tabbed pane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinderManager

public FinderManager()
Instantiates an FinderManager.

Method Detail

addFinder

public void addFinder(Finder finder)
Adds a Finder to the FinderManager. Provides another search technique to the user.

Parameters:
finder - Finder

getPanel

public JPanel getPanel()
Returns a JPanel with a JTabbedPane displaying all of the FinderManager's Finders.

Returns:
JPanel

getComponentForTab

public Component getComponentForTab(GUIConfigurable gui_configurable)
Returns the GUI Component for the specified Filter. The application maintains a private hash map that allows this mapping to take place. If the map does not contain an entry for the filter, a panel is built, added to the map and returned.

Parameters:
gui_configurable - the specified GUIConfigurable
Returns:
the GUI Component for the specified Filter.

getCurrentFinder

public Finder getCurrentFinder()
Returns the Finder that is currently being displayed on the JTabbedPane.

Returns:
Finder

setConceptListManager

public void setConceptListManager(ConceptListManager clm)
Sets the ConceptListManager for the RRFBrowserGUI.

Parameters:
clm - ConceptListManager

clear

public void clear()
Resets the graphical components of the Finders.


getFinders

public Set getFinders()
Returns the Set of Finders.

Returns:
Set

stateChanged

public void stateChanged(ChangeEvent e)
Responds to a user switching tabs in the tabbed pane. Resets the current view.

Specified by:
stateChanged in interface ChangeListener
Parameters:
e - a ChangeEvent

setFontFamily

public void setFontFamily(String font_family)
Notifies all the Finders of the font family to be used for text display.

Parameters:
font_family - String

setFontPointSize

public void setFontPointSize(int font_point_size)
Notifies all the Finders of the font point size to be used for text display.

Parameters:
font_point_size - int


Copyright ©2005