gov.nih.nlm.mms.browser
Class ReportsManager

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

public class ReportsManager
extends Object
implements ChangeListener

Manages the various ConceptViews.

Author:
Deborah Shapiro

Constructor Summary
ReportsManager()
          Instantiates an ReportsManager.
 
Method Summary
 void addConceptView(ConceptView concept_view)
          Adds a ConceptView to the ReportsManager.
 void clear()
          Resets the graphical components of the ConceptViews.
 Component getComponentForTab(GUIConfigurable gui_configurable)
          Returns the GUI Component for the specified Filter.
 Set getConceptViews()
          Returns a Set of the ConceptViews.
 ConceptView getCurrentView()
          Returns the ConceptView that is currently being displayed on the JTabbedPane.
 JPanel getPanel()
          Returns a JPanel with a JTabbedPane displaying all of the ReportsManager's ConceptViews.
 void setConcept(Concept concept)
          Sets a Concept for display in the ReportsManager's chosen ContentView panel.
 void setConceptListManager(ConceptListManager clm)
          Sets the ConceptListManager.
 void setFontFamily(String font_family)
          Notifies all the ConceptViews of the font family to be used for text display.
 void setFontPointSize(int font_point_size)
          Notifies all the ConceptViews 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

ReportsManager

public ReportsManager()
Instantiates an ReportsManager.

Method Detail

getPanel

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

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.

addConceptView

public void addConceptView(ConceptView concept_view)
Adds a ConceptView to the ReportsManager. Provides another concept report format and style for the user.

Parameters:
concept_view - ConceptView

setConceptListManager

public void setConceptListManager(ConceptListManager clm)
Sets the ConceptListManager.

Parameters:
clm - ConceptListManager

setConcept

public void setConcept(Concept concept)
Sets a Concept for display in the ReportsManager's chosen ContentView panel.

Parameters:
concept - Concept to be displayed

getCurrentView

public ConceptView getCurrentView()
Returns the ConceptView that is currently being displayed on the JTabbedPane.

Returns:
ConceptView

clear

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


getConceptViews

public Set getConceptViews()
Returns a Set of the ConceptViews.

Returns:
concept views

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 ConceptViews of the font family to be used for text display. Prompts an update of the display.

Parameters:
font_family - String

setFontPointSize

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

Parameters:
font_point_size - int


Copyright ©2005