[MOBY-guts] biomoby commit
Martin Senger
senger at pub.open-bio.org
Fri Nov 11 08:34:39 UTC 2005
senger
Fri Nov 11 03:34:39 EST 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard
In directory pub.open-bio.org:/tmp/cvs-serv8089/src/main/org/biomoby/service/dashboard
Modified Files:
NOTES PrimaryDataTable.java RegistrationDataTypeSubPanel.java
RegistrationNamespaceSubPanel.java
RegistrationServiceSubPanel.java
Log Message:
moby-live/Java/src/main/org/biomoby/service/dashboard NOTES,1.23,1.24 PrimaryDataTable.java,1.3,1.4 RegistrationDataTypeSubPanel.java,1.6,1.7 RegistrationNamespaceSubPanel.java,1.5,1.6 RegistrationServiceSubPanel.java,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/NOTES,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/NOTES 2005/11/10 14:32:42 1.23
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/NOTES 2005/11/11 08:34:39 1.24
@@ -28,6 +28,11 @@
* log warning if the 'notified' is not called from the event-dispatch
queue
+* confirmation before registering; separate "load from XML" and
+ "register" perhaps? - or having actuallt there an editor that allows
+ to change the XMl and then to click its button "register"
+
+
---
* how to squeeze too long combo boxes into smaller place ?
@@ -56,6 +61,7 @@
? select a part of an error message and highlight it in red?
? HELP (in a Dashboard Menu)
+ - contextual help ?
- starting panel/splash screen
- helps from panels
- About
@@ -145,3 +151,46 @@
what is entered in the text field; also it can have getText()?
- colors in JComboBox:
http://forum.java.sun.com/thread.jspa?threadID=670356&messageID=3920606
+---
+public static void main(String args[])
+> {
+> JComponent jc;
+> JFrame f = new JFrame();
+> JPanel background = new JPanel( ), content = new JPanel( );
+> content.setLayout( new BorderLayout( ) );
+> content.add( jc = new JButton("FourthButton"), BorderLayout.WEST );
+> // you can comment lines like jc.setOpaque(false), in order to not see
+> the background on the components ;)
+> jc.setOpaque( false );
+> content.add( jc = new JButton("SecondButton"), BorderLayout.NORTH );
+> jc.setOpaque( false );
+> content.add( jc = new JButton("ThirdButton"), BorderLayout.SOUTH );
+> jc.setOpaque( false );
+> content.add( jc = new JButton("FivethButton"), BorderLayout.EAST );
+> jc.setOpaque( false );
+> content.setOpaque( false );
+>
+> background.setLayout( new BorderLayout( ) );
+> background.add( new JLabel( new ImageIcon("background.gif") ),
+> BorderLayout.CENTER );
+>
+> f.getRootPane().setGlassPane( content );
+> f.getRootPane().getGlassPane().setVisible( true );
+> f.setContentPane( background );
+> f.setSize( 500, 300 );
+> f.setVisible( true );
+> }
+
+
+problms with registration panel:
+ - no auto update after reg/unreg srevice, and data type
+ - after reload old files stayed (21.sep in data types)
+ - datetime was in cache but cannot make it into tree, why?
+
+right-click - if nothing selected, it should take what is under te
+ mouse (selected first), otherwise it is annoying
+
+serach should be propagated to all (same-kinds) trees in all panels
+
+wrap automatically text in descriptions fields
+
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PrimaryDataTable.java,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/PrimaryDataTable.java 2005/11/07 17:14:46 1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PrimaryDataTable.java 2005/11/11 08:34:39 1.4
@@ -256,7 +256,7 @@
"Remove",
"Article name",
"Data Type",
- "In Set",
+ "Set",
"Namespaces"
};
columnClasses = new Class[] {
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistrationDataTypeSubPanel.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistrationDataTypeSubPanel.java 2005/11/10 14:32:42 1.6
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistrationDataTypeSubPanel.java 2005/11/11 08:34:39 1.7
@@ -207,6 +207,7 @@
dataType.toString());
registryModel.registerDataType (dataType);
console.setText ("\nRegistration successful!\n\n");
+ updateCache();
} else {
String xml = registryModel.getRegisterDataTypeXML (dataType);
console.setText ("\n" + xml + "\n");
@@ -214,6 +215,16 @@
}
/**************************************************************************
+ * This is separated here because the registration from XML is
+ * done in the super-class (RegistrationPanel), but the update
+ * must be done here, in sub-class.
+ **************************************************************************/
+ protected void updateCache()
+ throws MobyException {
+ registryModel.updateDataTypesCache();
+ }
+
+ /**************************************************************************
*
* Customized tree of data types - has different popup menus...
*
@@ -404,6 +415,7 @@
console.setText ("Data type to be unregistered: " + dataTypeName + "\n");
registryModel.unRegisterDataType (dataType);
console.setText ("\nUnregistration successful!\n\n");
+ updateCache();
} catch (MobyException e) {
dtUnregException = e;
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistrationNamespaceSubPanel.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/RegistrationNamespaceSubPanel.java 2005/11/10 14:32:42 1.5
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistrationNamespaceSubPanel.java 2005/11/11 08:34:39 1.6
@@ -182,6 +182,8 @@
namespace.toString());
registryModel.registerNamespace (namespace);
console.setText ("\nRegistration successful!\n\n");
+ updateCache();
+
} else {
String xml = registryModel.getRegisterNamespaceXML (namespace);
console.setText ("\n" + xml + "\n");
@@ -189,6 +191,16 @@
}
/**************************************************************************
+ * This is separated here because the registration from XML is
+ * done in the super-class (RegistrationPanel), but the update
+ * must be done here, in sub-class.
+ **************************************************************************/
+ protected void updateCache()
+ throws MobyException {
+ registryModel.updateNamespacesCache();
+ }
+
+ /**************************************************************************
*
* Customized tree of namespaces - has different popup menus etc...
*
@@ -303,6 +315,7 @@
console.setText ("Namespace to be unregistered: " + name + "\n");
registryModel.unRegisterNamespace (namespace);
console.setText ("\nUnregistration successful!\n\n");
+ updateCache();
} catch (MobyException e) {
exception = e;
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistrationServiceSubPanel.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/RegistrationServiceSubPanel.java 2005/11/10 14:32:42 1.5
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/RegistrationServiceSubPanel.java 2005/11/11 08:34:39 1.6
@@ -502,6 +502,7 @@
service.toString());
registryModel.registerService (service);
console.setText ("\nRegistration successful!\n\n");
+ updateCache();
} else {
String xml = registryModel.getRegisterServiceXML (service);
console.setText ("\n" + xml + "\n");
@@ -582,6 +583,7 @@
service.getName() + "\n");
registryModel.unRegisterService (service);
console.setText ("\nUnregistration successful!\n\n");
+ updateCache();
} catch (MobyException e) {
exception = e;
@@ -602,6 +604,16 @@
}
/**************************************************************************
+ * This is separated here because the registration from XML is
+ * done in the super-class (RegistrationPanel), but the update
+ * must be done here, in sub-class.
+ **************************************************************************/
+ protected void updateCache()
+ throws MobyException {
+ registryModel.updateServicesCache();
+ }
+
+ /**************************************************************************
*
* Customized tree of service types - use for service registration
*
More information about the MOBY-guts
mailing list