org.LexGrid.LexBIG.gui.displayResults
Class ConceptTreeView

java.lang.Object
  extended by org.LexGrid.LexBIG.gui.displayResults.ConceptTreeView

public class ConceptTreeView
extends java.lang.Object

ConceptTreeView provides a UI to display concepts, in particular, ResolvedConceptReference and the associations between them, in a tree view. A specified concept can be colored for emphasis.

Author:
Jason Leisch

Constructor Summary
ConceptTreeView(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.widgets.Composite parent)
           
 
Method Summary
 void addAssociations(org.eclipse.swt.widgets.TreeItem parent, AssociationList associations)
           
 void addConcepts(ResolvedConceptReference[] concepts)
           
 void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
           
 void addTreeItem(org.eclipse.swt.widgets.TreeItem parent, java.lang.Object key, java.lang.String text)
           
 void addTreeItem(org.eclipse.swt.widgets.Tree parent, java.lang.Object key, java.lang.String text)
           
 void clear()
           
 void expand(org.eclipse.swt.widgets.TreeItem treeItem)
           
 org.eclipse.swt.widgets.TreeItem getKeyedTreeItem(java.lang.Object key)
           
 org.eclipse.swt.widgets.Tree getTree()
           
 void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
           
 void setCodesShown(boolean codesShown)
          Set whether to show the concept codes with the node names.
 void updateTreeForConceptSelection(ResolvedConceptReference rcr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConceptTreeView

public ConceptTreeView(org.eclipse.swt.widgets.Shell shell,
                       org.eclipse.swt.widgets.Composite parent)
Method Detail

addSelectionListener

public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)

removeSelectionListener

public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)

getTree

public org.eclipse.swt.widgets.Tree getTree()

setCodesShown

public void setCodesShown(boolean codesShown)
Set whether to show the concept codes with the node names.

Parameters:
codesShown -

updateTreeForConceptSelection

public void updateTreeForConceptSelection(ResolvedConceptReference rcr)

clear

public void clear()

addTreeItem

public void addTreeItem(org.eclipse.swt.widgets.Tree parent,
                        java.lang.Object key,
                        java.lang.String text)

addTreeItem

public void addTreeItem(org.eclipse.swt.widgets.TreeItem parent,
                        java.lang.Object key,
                        java.lang.String text)

getKeyedTreeItem

public org.eclipse.swt.widgets.TreeItem getKeyedTreeItem(java.lang.Object key)

addAssociations

public void addAssociations(org.eclipse.swt.widgets.TreeItem parent,
                            AssociationList associations)

expand

public void expand(org.eclipse.swt.widgets.TreeItem treeItem)

addConcepts

public void addConcepts(ResolvedConceptReference[] concepts)

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.