perfsonar-dev - [GEANT/SA2/ps-java-services] r5509 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5509 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5509 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels
- Date: Fri, 26 Feb 2010 10:52:39 GMT
Author: bren.nikolova
Date: 2010-02-26 10:52:39 +0000 (Fri, 26 Feb 2010)
New Revision: 5509
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/RequestOptionsPanel.java
Log:
The "eduGAIN Metadata service" text box is now in "insert" mode
A field mask is added
The window and field sizes are fixed
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/RequestOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/RequestOptionsPanel.java
2010-02-25 13:28:06 UTC (rev 5508)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/RequestOptionsPanel.java
2010-02-26 10:52:39 UTC (rev 5509)
@@ -31,6 +31,7 @@
import java.beans.PropertyChangeListener;
import java.security.cert.X509Certificate;
import java.text.NumberFormat;
+import java.text.ParseException;
import javax.swing.AbstractAction;
import javax.swing.Action;
@@ -49,6 +50,7 @@
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
+import javax.swing.text.MaskFormatter;
import org.jdesktop.layout.GroupLayout;
import org.jdesktop.layout.GroupLayout.SequentialGroup;
@@ -132,7 +134,7 @@
JSeparator separator1 = new JSeparator();
JSeparator separator2 = new JSeparator();
- //setPreferredSize(new Dimension(400,400));
+ setPreferredSize(new Dimension(550,300));
org.jdesktop.layout.GroupLayout glayout = new
org.jdesktop.layout.GroupLayout(
this);
setLayout(glayout);
@@ -236,7 +238,7 @@
SpinnerModel model = new
SpinnerNumberModel(psModel.getRequest().getMaxDataEntries(), 1, 100, 1);
field_maxItems = new JSpinner(model);
field_maxItems.setToolTipText("Max number of queries in an
aggregated request");
- field_maxItems.setMaximumSize(new
Dimension(Integer.MAX_VALUE,24));
+ field_maxItems.setMaximumSize(new Dimension(200,24));
field_maxItems.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
JSpinner spinner = (JSpinner)e.getSource();
@@ -249,10 +251,20 @@
aa_enable.setSelected(getPsModel().getRequest().isAAEnabled());
aa_enable.setToolTipText("Authentication enabled if checked.");
- mds_url = new
JFormattedTextField(getPsModel().getRequest().getMDS());
+ try {
+ MaskFormatter mf = new
MaskFormatter("********************************************************************************************************");
+ mf.setOverwriteMode(true);
+ mds_url = new JFormattedTextField(mf);
+ } catch (ParseException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+
+ mds_url.setMaximumSize(new Dimension(200,24));
+ mds_url.setText(getPsModel().getRequest().getMDS());
mds_url.addPropertyChangeListener("value", new
PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
-
getPsModel().getRequest().setMDS(mds_url.getText());
+
getPsModel().getRequest().setMDS(mds_url.getText().trim());
}
});
- [GEANT/SA2/ps-java-services] r5509 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels, svn-noreply, 02/26/2010
Archive powered by MHonArc 2.6.16.