Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3250 - branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl

Subject: perfsonar development work

List archive

perfsonar: r3250 - branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3250 - branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl
  • Date: Thu, 17 Jan 2008 14:56:08 -0500

Author: nina
Date: 2008-01-17 14:56:08 -0500 (Thu, 17 Jan 2008)
New Revision: 3250

Modified:

branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLMainComponent.java

branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLPerfsonarTab.java
Log:
Some cosmetics interface improvements (textboxes size)

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLMainComponent.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLMainComponent.java
2008-01-17 18:44:36 UTC (rev 3249)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLMainComponent.java
2008-01-17 19:56:08 UTC (rev 3250)
@@ -1,30 +1,30 @@
package org.perfsonar.perfsonarui.bwctl;

-import java.net.URL;
-
import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
-import java.awt.GridBagConstraints;
-
+import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
+import java.net.URL;

import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.ButtonModel;
import javax.swing.JLabel;
-import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

-import org.perfsonar.perfsonarui.ui.PluginMainPanel;
+import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.plugins.MAEndpoint;
import org.perfsonar.perfsonarui.plugins.MAEndpointList;
-import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
+import org.perfsonar.perfsonarui.ui.PluginMainPanel;

/**
* BWCTL visualization for perfSonarUI
@@ -96,6 +96,7 @@
setLayout(new GridBagLayout());
constraints = new GridBagConstraints();
constraints.fill = GridBagConstraints.BOTH;
+ constraints.insets = new Insets(2,2,2,2);

leftRightDivider = new JSeparator(SwingConstants.VERTICAL);
constraints.gridx = 2;
@@ -106,6 +107,7 @@

sourceAddress = new JTextField(getEndpointHost(
model.getEndpointList()));
+
constraints.gridx = 4;
constraints.gridy = 0;
add(sourceAddress, constraints);
@@ -116,6 +118,7 @@
add(sourceAddressLabel, constraints);

destinationAddress = new JTextField("10.0.0.2");
+
constraints.gridx = 4;
constraints.gridy = 1;
add(destinationAddress, constraints);
@@ -287,12 +290,33 @@
constraints.gridwidth = 1;

result = new JTextArea("Result");
- result.setBorder(BorderFactory.createTitledBorder("Result"));
+ result.setBorder(BorderFactory.createEtchedBorder());
constraints.gridx = 0;
constraints.gridy = 11;
constraints.gridwidth = 5;
constraints.fill = GridBagConstraints.BOTH;
- add(result, constraints);
+ //result.setAutoscrolls(true);
+
+ JScrollPane sp = new JScrollPane(result);
+ sp.setBorder(BorderFactory.createTitledBorder("Result"));
+ result.setWrapStyleWord(true);
+ sp.setPreferredSize(new Dimension(200,200));
+ add(sp, constraints);
+
+ Dimension d = new Dimension(128,20);
+ sourceAddress.setMinimumSize(d);
+ sourceAddress.setPreferredSize(d);
+ destinationAddress.setMinimumSize(d);
+ destinationAddress.setPreferredSize(d);
+ duration.setMinimumSize(d);
+ duration.setPreferredSize(d);
+ interval.setMinimumSize(d);
+ interval.setPreferredSize(d);
+
+ d = new Dimension(300,300);
+
+ setMinimumSize(d);
+ setPreferredSize(d);
}

public String getAddressType()

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLPerfsonarTab.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLPerfsonarTab.java
2008-01-17 18:44:36 UTC (rev 3249)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl/BWCTLPerfsonarTab.java
2008-01-17 19:56:08 UTC (rev 3250)
@@ -2,21 +2,20 @@

import java.awt.Component;
import java.awt.event.ActionEvent;
-
import java.util.ArrayList;
import java.util.List;

-import org.perfsonar.perfsonarui.ui.PerfsonarModel;
import org.perfsonar.perfsonarui.IPerfsonarSchema;
+import org.perfsonar.perfsonarui.PSException;
import org.perfsonar.perfsonarui.PerfsonarSchema;
import org.perfsonar.perfsonarui.SmartMARequest;
-import org.perfsonar.perfsonarui.ui.PerfsonarModel;
+import org.perfsonar.perfsonarui.UnsupportedTypeException;
+import org.perfsonar.perfsonarui.plugins.IPerfsonarRequest;
import org.perfsonar.perfsonarui.plugins.MAEndpoint;
import org.perfsonar.perfsonarui.plugins.MAEndpointList;
-import org.perfsonar.perfsonarui.plugins.IPerfsonarRequest;
-import org.perfsonar.perfsonarui.ui.actions.PerfsonarRequestAction;
+import org.perfsonar.perfsonarui.ui.PerfsonarModel;
import org.perfsonar.perfsonarui.ui.actions.PSUIAction;
-import org.perfsonar.perfsonarui.ui.actions.SetupDataRequestAction;
+import org.perfsonar.perfsonarui.ui.actions.PerfsonarRequestAction;
import org.perfsonar.perfsonarui.ui.actions.ShowEndpointsAction;

/**
@@ -66,13 +65,13 @@
}

return new SmartMARequest() {
- public IPerfsonarRequest createMARequest(MAEndpoint
endpoint) {
+ public IPerfsonarRequest createMARequest(MAEndpoint
endpoint) throws PSException {
String schema;

schema = endpoint.getSchema().getSchema();
if (schema.equals(BWCTLRequest.REQUEST_TYPE))
return new BWCTLRequest(pane);
- else return null;
+ throw new UnsupportedTypeException(endpoint);
}
};
}
@@ -106,7 +105,7 @@
ArrayList<IPerfsonarSchema> supported;

supported = new ArrayList<IPerfsonarSchema>();
- supported.add(new PerfsonarSchema("bwctl"));
+ supported.add(PerfsonarSchema.getInstance("bwctl"));
return supported;
}




  • perfsonar: r3250 - branches/perfsonarui/src/org/perfsonar/perfsonarui/bwctl, svnlog, 01/17/2008

Archive powered by MHonArc 2.6.16.

Top of Page