gov.nih.nlm.mms.browser
Class AbstractConceptView

java.lang.Object
  extended by gov.nih.nlm.mms.AbstractGUIConfigurable
      extended by gov.nih.nlm.mms.browser.AbstractConceptView
All Implemented Interfaces:
ConceptView, FullyPrintable, Configurable, GUIConfigurable, Cloneable, Comparable
Direct Known Subclasses:
ExpandableConceptView, ExpandableRawView

public abstract class AbstractConceptView
extends AbstractGUIConfigurable
implements Comparable, ConceptView, FullyPrintable, Cloneable

This is an abstract implementation of the ConceptView interface. All methods in this class should be called from a separate thread.

Author:
Deborah Shapiro

Field Summary
protected  ConceptListManager clm
           
protected  BrowsableInputStream fBrowsableInputStream
           
protected  String font_family
           
protected  int font_point_size
           
protected  SearchOptions search_options
           
 
Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable
data_changed, default_configuration, listeners, user_configuration
 
Constructor Summary
AbstractConceptView()
           
 
Method Summary
 void find()
          Searches the text displayed in the JEditorPane for the given search_term.
protected  BrowsableInputStream getBrowsableInputStream()
           
 void refresh()
          Redraws the text portions of the Finder.
 void setBrowsableInputStream(BrowsableInputStream browsableInputStream)
          Sets the BrowsableInputStream.
 void setConceptListManager(ConceptListManager clm)
          Sets the ConceptListManager.
 void setFontFamily(String font_family)
          Sets the font family for this ConceptView.
 void setFontPointSize(int point_size)
          Sets the font point size for this ConceptView.
 void setSearchOptions(SearchOptions so)
          Sets the SearchOptions which provides the ability to highlight or hide content in a concept view based on criteria.
 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, getHelpPanel, getName, getPanel, getProperties, getTabDescription, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, resetToDefaults, setConfiguration, setConfiguration, setDataChanged, setPanelSelections, 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.browser.ConceptView
getContentType, getFinderHandler, requestFocus, setConcept
 
Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable
addDataChangeListener, getColor, getGUIConfigurableForValidationFailure, getHelpPanel, getName, getPanel, getTabDescription, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, setPanelSelections, showOptions, validate
 
Methods inherited from interface gov.nih.nlm.mms.Configurable
getConfigurationDetails, getProperties, resetToDefaults, setConfiguration, setConfiguration, setProperties
 
Methods inherited from interface gov.nih.nlm.mms.browser.FullyPrintable
getPrintable, print
 

Field Detail

clm

protected ConceptListManager clm

fBrowsableInputStream

protected BrowsableInputStream fBrowsableInputStream

font_point_size

protected int font_point_size

font_family

protected String font_family

search_options

protected SearchOptions search_options
Constructor Detail

AbstractConceptView

public AbstractConceptView()
Method Detail

subsetDirectoryOpened

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

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

setConceptListManager

public void setConceptListManager(ConceptListManager clm)
Sets the ConceptListManager.

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

getBrowsableInputStream

protected BrowsableInputStream getBrowsableInputStream()

setBrowsableInputStream

public void setBrowsableInputStream(BrowsableInputStream browsableInputStream)
Sets the BrowsableInputStream.

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

find

public void find()
Searches the text displayed in the JEditorPane for the given search_term. Starts the search at the given start position within the text.


setFontPointSize

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

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

setFontFamily

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

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

refresh

public void refresh()
Redraws the text portions of the Finder.

Specified by:
refresh in interface ConceptView

setSearchOptions

public void setSearchOptions(SearchOptions so)
Sets the SearchOptions which provides the ability to highlight or hide content in a concept view based on criteria.

Specified by:
setSearchOptions in interface ConceptView
Parameters:
br -


Copyright ©2005