[MOBY-guts] biomoby commit
Martin Senger
senger at pub.open-bio.org
Mon Sep 19 08:08:33 UTC 2005
senger
Mon Sep 19 04:08:32 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard
In directory pub.open-bio.org:/tmp/cvs-serv29075/src/main/org/biomoby/service/dashboard
Modified Files:
NOTES RegistryPanel.java
Log Message:
caching also namespaces
moby-live/Java/src/main/org/biomoby/service/dashboard NOTES,1.3,1.4 RegistryPanel.java,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/NOTES,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/NOTES 2005/09/18 14:09:42 1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/NOTES 2005/09/19 08:08:32 1.4
@@ -1,9 +1,16 @@
TODO with views:
----------------
+* change onMethods() to be protected or even private...
+
+* add a progress bar to the status bar (on the right)
+ - add also a cancel buton there
+ - do not allow more than one progressbar-aware action in the same time
+ file:///c/Development/java-tutorial/uiswing/components/progress.html
+
? small icons to buttons
? use FileSystemView in file choosers
-* alltools2: - PrefsUtils may become just a common parent for both *WithHistory classes
- - combo box history is not updated if exit happened while focus is till in the text field
+? alltools2:
+ - combo box history is not updated if exit happened while focus is till in the text field
? configure dashboard from menu:
* configure dashbard (add/remove dynamically panels)
@@ -11,6 +18,20 @@
* running from run-dashboard does not work
+TODO for cache:
+---------------
+* add namespaces and service types
+* store services under names: authority-service_name
+* emit log events
+* poor-man update: keep what's there but add what is not there
+ (and perhaps delete what should not be thre) - but do not
+ check any age of existing
+* getInfo() method
+* corresponding changes with command-line clients for cache
+ implementations
+
+? start to work on/think of the RDF-based cache
+
Registry panel
--------------
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistryPanel.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistryPanel.java 2005/09/18 14:09:42 1.5
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistryPanel.java 2005/09/19 08:08:32 1.6
@@ -52,6 +52,9 @@
// names of user preferences keys
static final String USE_CACHE = "use-cache";
+ // associated model working behind the scenes
+ RegistryModel registryModel;
+
// components that are used from more methods
JFileChooserWithHistory cacheDir;
JLabel labelCacheDir;
@@ -70,6 +73,15 @@
// else if (prop.equalsIgnoreCase (PROP_DATA_IDENTITY)) setDataIdentity (newVal);
}
+ /*********************************************************************
+ * Default constructor
+ ********************************************************************/
+ public RegistryPanel() {
+ super();
+// registryModel = new RegistryModel (this);
+ registryModel = new RegistryModel();
+ }
+
/**************************************************************************
*
**************************************************************************/
@@ -153,7 +165,7 @@
/**************************************************************************
*
**************************************************************************/
- public void onUseCache (boolean enabled) {
+ protected void onUseCache (boolean enabled) {
cacheDir.setEnabled (enabled);
labelCacheDir.setEnabled (enabled);
setPrefValue (USE_CACHE, enabled);
@@ -331,4 +343,34 @@
}
+// public void actionPerformed(ActionEvent e) {
+// ...
+// if (icon == null) { //haven't viewed this photo before
+// loadImage(imagedir + pic.filename, current);
+// } else {
+// updatePhotograph(current, pic);
+// }
+// }
+// ...
+// //Load an image in a separate thread.
+// private void loadImage(final String imagePath, final int index) {
+// final SwingWorker worker = new SwingWorker() {
+// ImageIcon icon = null;
+
+// public Object construct() {
+// icon = new ImageIcon(getURL(imagePath));
+// return icon; //return value not used by this program
+// }
+
+// //Runs on the event-dispatching thread.
+// public void finished() {
+// Photo pic = (Photo)pictures.elementAt(index);
+// pic.setIcon(icon);
+// if (index == current)
+// updatePhotograph(index, pic);
+// }
+// };
+// worker.start();
+// }
+
}
More information about the MOBY-guts
mailing list