perfsonar-dev - perfsonar: r2547 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Subject: perfsonar development work
List archive
perfsonar: r2547 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2547 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
- Date: Tue, 17 Jul 2007 10:33:14 -0400
Author: nina
Date: 2007-07-17 10:33:13 -0400 (Tue, 17 Jul 2007)
New Revision: 2547
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
Log:
Modified to have confirm/cancel functionality
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
2007-07-13 13:51:41 UTC (rev 2546)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
2007-07-17 14:33:13 UTC (rev 2547)
@@ -74,11 +74,19 @@
p = c[0];
p.setBorder(BorderFactory.createTitledBorder(c[0].toString()));
}
-
JOptionPane.showMessageDialog(frame,p,getValue(Action.NAME).toString(),JOptionPane.PLAIN_MESSAGE);
+ if
(JOptionPane.showConfirmDialog(frame,p,getValue(Action.NAME).toString(),JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE)
+ == JOptionPane.OK_OPTION)
+ confirm(c);
+ else
+ cancel(c);
+ }
+ protected void confirm(JComponent[] optionPanels) {
}
-
+ protected void cancel(JComponent[] optionPanels) {
+
+ }
public PerfsonarModel getModel() {
return model;
}
- perfsonar: r2547 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions, svnlog, 07/17/2007
Archive powered by MHonArc 2.6.16.