gov.nih.nlm.mms.browser
Class ConceptListManager

java.lang.Object
  extended bygov.nih.nlm.mms.browser.ConceptListManager

public class ConceptListManager
extends Object

Manages the concept history.

Author:
Deborah Shapiro

Field Summary
protected  ConceptList concept_list
           
protected  FinderManager finder_manager
           
protected  ReportsManager reports_manager
           
protected  UserConfiguration user_configuration
           
protected  ObjectXMLSerializer xml_ser
           
 
Constructor Summary
ConceptListManager()
          Instantiates an ConceptListManager.
 
Method Summary
 void addConcept(Concept concept)
          Adds a Concept for display in the current view.
 void backward()
          Moves the concept list backwards by one.
 void clearConceptList()
          Resets all navigation components.
 void forward()
          Moves the concept list forwards by one.
 ConceptList getConceptList()
          Returns the ConceptList.
 Concept getCurrentConcept()
          Returns the Concept currently being viewed.
 boolean isBackHistoryEmpty()
          Indicates if the backwards stack is empty.
 boolean isForwardHistoryEmpty()
          Indicates if the forwards stack is empty.
 Concept readConcept(Concept concept)
          Reads and fully populates a Concept that otherwise has just a CUI value.
 void refresh()
          Refresh the current concept view if set.
 void setConceptList(ConceptList concept_list)
          Sets the ConceptList.
 void setConfiguration(UserConfiguration c)
          Method provides the filter with values from the user configuration file.
 void setReportsManager(ReportsManager reports_manager)
          Sets the ReportsManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user_configuration

protected UserConfiguration user_configuration

reports_manager

protected ReportsManager reports_manager

finder_manager

protected FinderManager finder_manager

concept_list

protected ConceptList concept_list

xml_ser

protected ObjectXMLSerializer xml_ser
Constructor Detail

ConceptListManager

public ConceptListManager()
Instantiates an ConceptListManager.

Method Detail

setConceptList

public void setConceptList(ConceptList concept_list)
Sets the ConceptList.

Parameters:
concept_list - the ConceptList

getConceptList

public ConceptList getConceptList()
Returns the ConceptList.

Returns:
the ConceptList

addConcept

public void addConcept(Concept concept)
Adds a Concept for display in the current view. Fully populates the Concept before displaying it. Manages the forward and backward aparatus. This must be called from a separate thread.

Parameters:
concept - the Concept to view

refresh

public void refresh()
Refresh the current concept view if set.


readConcept

public Concept readConcept(Concept concept)
Reads and fully populates a Concept that otherwise has just a CUI value.

Parameters:
concept - the Concept to read (with CUI field populated)
Returns:
the fully populated concept Concept

forward

public void forward()
Moves the concept list forwards by one.


backward

public void backward()
Moves the concept list backwards by one.


setConfiguration

public void setConfiguration(UserConfiguration c)
Method provides the filter with values from the user configuration file.

Parameters:
c - UserConfiguration

setReportsManager

public void setReportsManager(ReportsManager reports_manager)
Sets the ReportsManager.

Parameters:
reports_manager - ReportsManager

getCurrentConcept

public Concept getCurrentConcept()
Returns the Concept currently being viewed.

Returns:
Concept

isBackHistoryEmpty

public boolean isBackHistoryEmpty()
Indicates if the backwards stack is empty.

Returns:
boolean

isForwardHistoryEmpty

public boolean isForwardHistoryEmpty()
Indicates if the forwards stack is empty.

Returns:
boolean

clearConceptList

public void clearConceptList()
Resets all navigation components.



Copyright ©2005