phenote.gui
Class OntologyUpdate

java.lang.Object
  extended by phenote.gui.OntologyUpdate

public class OntologyUpdate
extends java.lang.Object

Author:
Nicole Washington This class is for presenting a gui to the user given a list of ontologies that has updates available. The user will select some or all of the items, which will be fetched from their respective repository locations (as contained in the config file). Progress bars will refresh to indicate the progress. Any errors in download or other messages will be presented for the user. Extensions to this (in the future) might include the ability for the user to view differences between their old version of the ontology and the new one, or other smart updates.
Note that some of the methods were helped by code from http://www.devx.com/getHelpOn/10MinuteSolution/20425
Right now this is called from the main Phenote class, but i think it should possibly be reordered and called from the ontologyDataAdapter.

Nested Class Summary
(package private)  class OntologyUpdate.JTableButtonMouseListener
           
(package private)  class OntologyUpdate.JTableButtonRenderer
           
(package private)  class OntologyUpdate.JTableProgressBarRenderer
           
(package private)  class OntologyUpdate.OntologyUpdateTableModel
           
 
Field Summary
(package private)  javax.swing.JScrollPane messageScrollPane
           
(package private)  int numUpdates
           
(package private)  java.util.List<java.lang.String> ontsToUpdate
           
(package private)  javax.swing.JProgressBar progressBar
           
(package private)  java.lang.StringBuffer sb
           
 
Constructor Summary
OntologyUpdate()
           
 
Method Summary
 boolean checkForUpdates(phenote.config.xml.OntologyFileDocument.OntologyFile ontology)
           
 int getColumnByName(java.lang.String name)
          helper function for getting column index by name
static java.lang.Object queryForOntologyUpdate()
           
 void setProgress(int progress, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageScrollPane

javax.swing.JScrollPane messageScrollPane

sb

java.lang.StringBuffer sb

ontsToUpdate

java.util.List<java.lang.String> ontsToUpdate

numUpdates

int numUpdates

progressBar

javax.swing.JProgressBar progressBar
Constructor Detail

OntologyUpdate

public OntologyUpdate()
Method Detail

queryForOntologyUpdate

public static java.lang.Object queryForOntologyUpdate()

checkForUpdates

public boolean checkForUpdates(phenote.config.xml.OntologyFileDocument.OntologyFile ontology)

getColumnByName

public int getColumnByName(java.lang.String name)
helper function for getting column index by name


setProgress

public void setProgress(int progress,
                        java.lang.String message)