phenote.gui
Class OntologyUpdate
java.lang.Object
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.
|
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
OntologyUpdate
public OntologyUpdate()
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)