perfsonar-dev - perfsonar: r2580 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels
Subject: perfsonar development work
List archive
perfsonar: r2580 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2580 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels
- Date: Fri, 27 Jul 2007 10:59:39 -0400
Author: gijs
Date: 2007-07-27 10:59:38 -0400 (Fri, 27 Jul 2007)
New Revision: 2580
Added:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/SetupDataRequest-rawFlows.xml
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAModel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAResponse.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAUserData.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/QueryResultPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
Log:
There is some request code working now.
Also I reformatted all code (again). last time... Just playing with eclipse
formatter.
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAModel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAModel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAModel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -1,6 +1,6 @@
/*
- $Id$
+$Id$
$Copyright$
*/
@@ -16,6 +16,12 @@
import org.perfsonar.perfsonarui.IPerfsonarSchema;
import org.perfsonar.perfsonarui.PerfsonarSchema;
import org.perfsonar.perfsonarui.SmartMARequest;
+import org.perfsonar.perfsonarui.flowsa.panels.MainOptionsPanel;
+import org.perfsonar.perfsonarui.flowsa.panels.MomentOptionsPanel;
+import org.perfsonar.perfsonarui.flowsa.panels.QueryResultPanel;
+import org.perfsonar.perfsonarui.flowsa.panels.RawOptionsPanel;
+import org.perfsonar.perfsonarui.flowsa.panels.RouterOptionsPanel;
+import org.perfsonar.perfsonarui.flowsa.panels.TopOptionsPanel;
import org.perfsonar.perfsonarui.plugins.IPerfsonarRequest;
import org.perfsonar.perfsonarui.plugins.MAEndpoint;
import org.perfsonar.perfsonarui.plugins.MAEndpointList;
@@ -25,20 +31,14 @@
import org.perfsonar.perfsonarui.ui.actions.PerfsonarRequestAction;
import org.perfsonar.perfsonarui.ui.actions.SetOptionsAction;
import org.perfsonar.perfsonarui.ui.panels.UserDataDetailsPane;
-import org.perfsonar.perfsonarui.flowsa.panels.MainOptionsPanel;
-import org.perfsonar.perfsonarui.flowsa.panels.MomentOptionsPanel;
-import org.perfsonar.perfsonarui.flowsa.panels.QueryResultPanel;
-import org.perfsonar.perfsonarui.flowsa.panels.RawOptionsPanel;
-import org.perfsonar.perfsonarui.flowsa.panels.RouterOptionsPanel;
-import org.perfsonar.perfsonarui.flowsa.panels.TopOptionsPanel;
public class FlowSAModel extends PerfsonarModel {
- private MainOptionsPanel mainOptionsPanel;
- private MomentOptionsPanel momentOptionsPanel;
- private RouterOptionsPanel routerOptionsPanel;
- private RawOptionsPanel rawOptionsPanel;
- private TopOptionsPanel topOptionsPanel;
+ private final MainOptionsPanel mainOptionsPanel;
+ private final MomentOptionsPanel momentOptionsPanel;
+ private final RouterOptionsPanel routerOptionsPanel;
+ private final RawOptionsPanel rawOptionsPanel;
+ private final TopOptionsPanel topOptionsPanel;
public FlowSAModel() {
this(null);
@@ -50,20 +50,20 @@
// reset status
for (int i = 0; i < endpointList.size(); i++) {
- ((MAEndpoint)
endpointList.get(i)).setStatusExplanation("");
- ((MAEndpoint) endpointList.get(i)).setStatus("");
+ (endpointList.get(i)).setStatusExplanation("");
+ (endpointList.get(i)).setStatus("");
}
// find first selected
for (int i = 0; i < endpointList.size(); i++)
- if (((MAEndpoint) endpointList.get(i)).isEnabled()) {
+ if ((endpointList.get(i)).isEnabled()) {
enabledEndpoint = i;
break;
}
// if no selected; select first
if (enabledEndpoint == -1) {
- ((MAEndpoint) endpointList.get(0)).setEnabled(true);
+ (endpointList.get(0)).setEnabled(true);
enabledEndpoint = 0;
}
@@ -77,25 +77,38 @@
}
@Override
+ public JComponent[] createDetailsComponent(Component parentComponent)
{
+ String[][] s = new String[][] { { FlowSAUserData.QUERYTYPE,
"Query Type" }, { FlowSAUserData.ROUTERS, "Routers" },
+ { FlowSAUserData.STARTMOMENT, "Start Moment"
}, { FlowSAUserData.ENDMOMENT, "End Moment" },
+ { FlowSAUserData.RAWFILTER, "Raw Filter rule"
}, { FlowSAUserData.RAWAGGREGATION, "Raw Aggregation rule" },
+ { FlowSAUserData.RAWFIELDS, "Raw fields" }, {
FlowSAUserData.TOPELEMENTS, "Top fields" },
+ { FlowSAUserData.TOPORDERBY, "Top Order by"
}, { FlowSAUserData.TOPNUMBER, "Top Numbers" },
+ { FlowSAUserData.TOPTRANSGROUP, "Top Group
Transport ports" } };
+ UserDataDetailsPane userDataPanel = new
UserDataDetailsPane("Settings", getUserData(), s, true, false);
+ return new JComponent[] { userDataPanel };
+ }
+
+ @Override
public MAEndpointList createEndpoints() {
MAEndpointList endpoints = new MAEndpointList(false);
MAEndpoint endpoint = new MAEndpoint(
-
"SURFnet,http://sonar1.amsterdam.surfnet.nl:8080/services/flowsama,flowsa,\"\",flowsa,flowsa");
+ //
"SURFnet,http://sonar1.amsterdam.surfnet.nl:8080/services/flowsama,flowsa,\"\",flowsa,flowsa");
+
"SURFnet,http://localhost:8080/flowsa-ma-0.0.1/services/FlowsaMeasurementArchiveService,\"\",flowsa,flowsa");
endpoints.add(endpoint);
return endpoints;
}
- @Override
- public JComponent[] createOptionsComponent(Component parentComponent)
{
- return new JComponent[] { mainOptionsPanel,
momentOptionsPanel,
- routerOptionsPanel, rawOptionsPanel,
topOptionsPanel };
+ public PluginMainPanel createMainComponent(Component parentComponent)
{
+ return new QueryResultPanel(parentComponent, this,
getUserData());
}
@Override
- public FlowSAUserData createUserData() {
- return new FlowSAUserData();
+ protected PerfsonarRequestAction createMetadataRequestAction() {
+ // TODO Auto-generated method stub
+ return null;
}
+ @Override
public PSUIAction createOptionsAction() {
return new SetOptionsAction(this) {
@@ -103,55 +116,29 @@
@Override
protected void confirm(JComponent[] optionPanels) {
-
getUserData().setQuery(FlowSAUserData.QUERYTYPE,
-
mainOptionsPanel.getQueryType());
-
getUserData().setQuery(FlowSAUserData.STARTMOMENT,
-
momentOptionsPanel.getStartMoment());
-
getUserData().setQuery(FlowSAUserData.ENDMOMENT,
-
momentOptionsPanel.getEndMoment());
- getUserData().setQuery(FlowSAUserData.ROUTERS,
-
routerOptionsPanel.getRouters());
-
getUserData().setQuery(FlowSAUserData.RAWFILTER,
- rawOptionsPanel.getFilter());
-
getUserData().setQuery(FlowSAUserData.RAWAGGREGATION,
-
rawOptionsPanel.getAggregation());
-
getUserData().setQuery(FlowSAUserData.RAWFIELDS,
- rawOptionsPanel.getFields());
-
getUserData().setQuery(FlowSAUserData.TOPELEMENTS,
- topOptionsPanel.getElement());
-
getUserData().setQuery(FlowSAUserData.TOPORDERBY,
- topOptionsPanel.getOrderBy());
-
getUserData().setQuery(FlowSAUserData.TOPNUMBER,
- topOptionsPanel.getNumber());
-
getUserData().setQuery(FlowSAUserData.TOPTRANSGROUP,
-
topOptionsPanel.getTransGroup());
+
getUserData().setQuery(FlowSAUserData.QUERYTYPE,
mainOptionsPanel.getQueryType());
+
getUserData().setQuery(FlowSAUserData.STARTMOMENT,
momentOptionsPanel.getStartMoment());
+
getUserData().setQuery(FlowSAUserData.ENDMOMENT,
momentOptionsPanel.getEndMoment());
+
getUserData().setQuery(FlowSAUserData.ROUTERS,
routerOptionsPanel.getRouters());
+
getUserData().setQuery(FlowSAUserData.RAWFILTER, rawOptionsPanel.getFilter());
+
getUserData().setQuery(FlowSAUserData.RAWAGGREGATION,
rawOptionsPanel.getAggregation());
+
getUserData().setQuery(FlowSAUserData.RAWFIELDS, rawOptionsPanel.getFields());
+
getUserData().setQuery(FlowSAUserData.TOPELEMENTS,
topOptionsPanel.getElement());
+
getUserData().setQuery(FlowSAUserData.TOPORDERBY,
topOptionsPanel.getOrderBy());
+
getUserData().setQuery(FlowSAUserData.TOPNUMBER, topOptionsPanel.getNumber());
+
getUserData().setQuery(FlowSAUserData.TOPTRANSGROUP,
topOptionsPanel.getTransGroup());
}
};
}
@Override
- public JComponent[] createDetailsComponent(Component parentComponent)
{
- String[][] s = new String[][] {
- { FlowSAUserData.QUERYTYPE, "Query Type" },
- { FlowSAUserData.ROUTERS, "Routers" },
- { FlowSAUserData.STARTMOMENT, "Start Moment"
},
- { FlowSAUserData.ENDMOMENT, "End Moment" },
- { FlowSAUserData.RAWFILTER, "Raw Filter rule"
},
- { FlowSAUserData.RAWAGGREGATION, "Raw
Aggregation rule" },
- { FlowSAUserData.RAWFIELDS, "Raw fields" },
- { FlowSAUserData.TOPELEMENTS, "Top fields" },
- { FlowSAUserData.TOPORDERBY, "Top Order by" },
- { FlowSAUserData.TOPNUMBER, "Top Numbers" },
- { FlowSAUserData.TOPTRANSGROUP, "Top Group
Transport ports" } };
- UserDataDetailsPane userDataPanel = new
UserDataDetailsPane("Settings",
- getUserData(), s, true, false);
- return new JComponent[] { userDataPanel };
+ public JComponent[] createOptionsComponent(Component parentComponent)
{
+ return new JComponent[] { mainOptionsPanel,
momentOptionsPanel, routerOptionsPanel, rawOptionsPanel,
+ topOptionsPanel };
}
@Override
protected SmartMARequest createSmartRequest() {
- if (request != null)
- return request;
return new SmartMARequest() {
@Override
public IPerfsonarRequest createMARequest(MAEndpoint
endpoint) {
@@ -160,14 +147,9 @@
};
}
- public PluginMainPanel createMainComponent(Component parentComponent)
{
- return new QueryResultPanel(parentComponent, this,
- (FlowSAUserData) getUserData());
- }
-
@Override
- public String toString() {
- return "FlowSA";
+ public FlowSAUserData createUserData() {
+ return new FlowSAUserData();
}
public int getOrder() {
@@ -175,11 +157,6 @@
}
@Override
- public FlowSAUserData getUserData() {
- return (FlowSAUserData) userData;
- }
-
- @Override
public List<IPerfsonarSchema> getSupportedRequests() {
ArrayList<IPerfsonarSchema> supported = new
ArrayList<IPerfsonarSchema>();
supported.add(new PerfsonarSchema("flowsa"));
@@ -187,9 +164,13 @@
}
@Override
- protected PerfsonarRequestAction createMetadataRequestAction() {
- // TODO Auto-generated method stub
- return null;
+ public FlowSAUserData getUserData() {
+ return (FlowSAUserData) userData;
}
+ @Override
+ public String toString() {
+ return "FlowSA";
+ }
+
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequest.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -19,6 +19,8 @@
import org.perfsonar.perfsonarui.plugins.MAEndpoint;
import org.perfsonar.perfsonarui.plugins.MetaDataList;
import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
import com.sun.org.apache.xml.internal.serialize.OutputFormat;
import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
@@ -30,17 +32,31 @@
}
@Override
- public Document createRequest(IUserData data, String messageType)
- throws Exception {
- String inputFile =
"org/perfsonar/perfsonarui/flowsa/rawquery.xml";
+ public Document createRequest(IUserData data, String messageType)
throws Exception {
+ String inputFile =
"org/perfsonar/perfsonarui/flowsa/SetupDataRequest-rawFlows.xml";
Document request = null;
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
- DocumentBuilder builder = factory.newDocumentBuilder();
- InputStream stream = this.getClass().getClassLoader()
- .getResourceAsStream(inputFile);
+ DocumentBuilder builder = null;
+ builder = factory.newDocumentBuilder();
+ InputStream stream =
this.getClass().getClassLoader().getResourceAsStream(inputFile);
request = builder.parse(stream);
+ NodeList paraNodes =
request.getElementsByTagName("nmwg:parameter");
+
+ // change start and end moment
+ for (int j = 0; j < paraNodes.getLength(); j++) {
+ Element timeNode = (Element) paraNodes.item(j);
+ String nameAttr = timeNode.getAttribute("name");
+ if (nameAttr.equals("startTime")) {
+ Element startNode = (Element)
timeNode.getElementsByTagName("nmtm:time").item(0);
+ startNode.setAttribute("value",
data.getStartTime());
+ } else if (nameAttr.equals("endTime")) {
+ Element endNode = (Element)
timeNode.getElementsByTagName("nmtm:time").item(0);
+ endNode.setAttribute("value",
data.getEndTime());
+ }
+ }
+
StringWriter sw = new StringWriter();
OutputFormat format = new OutputFormat(request);
format.setLineWidth(65);
@@ -49,37 +65,34 @@
XMLSerializer output = new XMLSerializer(sw, format);
output.serialize(request);
- logger.debug(sw.toString());
+ logger.debug("request: " + request);
return request;
}
@Override
- public Document createRequest(MAEndpoint endpoint, MetaDataList query,
- String messageType) throws Exception {
- System.out.println("request.createRequest2");
+ public Document createRequest(MAEndpoint endpoint, MetaDataList
query, String messageType) throws Exception {
+ // TODO Auto-generated method stub
return null;
}
@Override
public String getMessageNamespace() {
- System.out.println("request.getMessageNamespace");
+ // TODO Auto-generated method stub
return null;
}
public String[] getNamespaces() {
- System.out.println("request.getNamespaces");
+ // TODO Auto-generated method stub
return null;
}
public String getRequestType() {
- System.out.println("request.getRequestType");
+ // TODO Auto-generated method stub
return null;
}
- public void process(IUserData data, Document response,
- IPerfsonarResponse listener) throws Exception {
- System.out.println("request.process");
-
+ public void process(IUserData data, Document response,
IPerfsonarResponse listener) throws Exception {
+ logger.debug(response);
}
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSARequestAction.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -23,22 +23,20 @@
super(request, userData);
}
- public FlowSARequestAction(SmartMARequest request, FlowSAUserData
userData,
- MAEndpointList endpointList) {
+ public FlowSARequestAction(SmartMARequest request, FlowSAUserData
userData, MAEndpointList endpointList) {
super(request, userData);
}
@Override
public void done() {
- System.out.println("requestAction.done");
-
+ logger.debug("requestAction.done");
+
}
@Override
public void run(ActionEvent arg0) {
- System.out.println("requestAction.run");
-
+ logger.debug("requestAction.run");
+
}
-
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAResponse.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAResponse.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAResponse.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -3,11 +3,10 @@
$Id$
$Copyright$
-*/
+ */
package org.perfsonar.perfsonarui.flowsa;
-
import org.perfsonar.perfsonarui.AbstractPerfsonarResponse;
import org.perfsonar.perfsonarui.AbstractUserData;
import org.perfsonar.perfsonarui.PerfsonarResponseEvent;
@@ -15,28 +14,25 @@
import org.perfsonar.perfsonarui.plugins.IUserData;
import org.w3c.dom.Document;
-
-
public class FlowSAResponse extends AbstractPerfsonarResponse {
protected IUserData userData;
+
public FlowSAResponse(IUserData userData) {
super();
this.userData = userData;
}
-
- @Override
- public void process(IPerfsonarRequest request, IUserData uData,
Document response) throws Exception {
- System.out.println("response.process");
- }
-
@Override
public synchronized void callException(PerfsonarResponseEvent e) {
- System.out.println("response.callException");
+ logger.debug("response.callException");
userData.setResponse(AbstractUserData.DOCUMENT_RESPONSE,
e.getException().toString());
- logger.error(e.getException());
+ logger.error(e.getException());
}
-}
+ @Override
+ public void process(IPerfsonarRequest request, IUserData uData,
Document response) throws Exception {
+ logger.debug("response.process");
+ }
+}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAUserData.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAUserData.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAUserData.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -10,8 +10,6 @@
import java.util.Calendar;
import org.perfsonar.perfsonarui.AbstractUserData;
-import org.perfsonar.perfsonarui.plugins.IUserData;
-import org.perfsonar.perfsonarui.plugins.MAEndpoint;
public class FlowSAUserData extends AbstractUserData {
@@ -29,7 +27,6 @@
public final static String TOPNUMBER = "Top Numbers";
public final static String TOPTRANSGROUP = "Top Group Transport
ports";
-
public FlowSAUserData() {
super();
Added:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/SetupDataRequest-rawFlows.xml
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MainOptionsPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -33,53 +33,34 @@
QueryTypeBox = new javax.swing.JComboBox();
QueryTypeLabel = new javax.swing.JLabel();
- QueryTypeBox.setModel(new javax.swing.DefaultComboBoxModel(
- new String[] { "Raw", "Top", "Statistical"
}));
+ QueryTypeBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Raw", "Top", "Statistical"
}));
QueryTypeLabel.setText("query type:");
- org.jdesktop.layout.GroupLayout jPanel1Layout = new
org.jdesktop.layout.GroupLayout(
- jPanel1);
+ org.jdesktop.layout.GroupLayout jPanel1Layout = new
org.jdesktop.layout.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
-
jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
+
jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
org.jdesktop.layout.GroupLayout.TRAILING,
+
jPanel1Layout.createSequentialGroup().addContainerGap().add(QueryTypeLabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .add(QueryTypeBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(79,
+ 79, 79)));
+
jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
jPanel1Layout.createSequentialGroup().addContainerGap().add(
-
QueryTypeLabel).addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).add(QueryTypeBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(79,
- 79, 79)));
-
jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
jPanel1Layout.createSequentialGroup().addContainerGap().add(
-
jPanel1Layout.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE).add(
- QueryTypeBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(QueryTypeLabel)).addContainerGap(59,
+
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(QueryTypeBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(QueryTypeLabel)).addContainerGap(59,
Short.MAX_VALUE)));
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(jPanel1,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).addContainerGap()));
- layout.setVerticalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(jPanel1,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).addContainerGap()));
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(jPanel1,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE).addContainerGap()));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(jPanel1,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE).addContainerGap()));
}
}
\ No newline at end of file
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/MomentOptionsPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -3,7 +3,7 @@
$Id$
$Copyright$
-*/
+ */
package org.perfsonar.perfsonarui.flowsa.panels;
@@ -11,8 +11,7 @@
import java.awt.event.ActionListener;
import java.util.Calendar;
-public class MomentOptionsPanel extends javax.swing.JPanel implements
- ActionListener {
+public class MomentOptionsPanel extends javax.swing.JPanel implements
ActionListener {
private static final long serialVersionUID = 1L;
@@ -86,8 +85,7 @@
this.updateMoments();
}
-
-
+
private void addWidgets() {
StartMomentPanel = new javax.swing.JPanel();
momentStartYearComboBox = new javax.swing.JComboBox();
@@ -119,35 +117,24 @@
presetLoadButton = new javax.swing.JButton();
presetSelectComboBox = new javax.swing.JComboBox();
- StartMomentPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Start moment"));
+
StartMomentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Start
moment"));
momentStartYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
new String[] { "2007", "2006", "2005", "2004"
}));
- momentStartMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "January", "February",
"March", "April", "May",
- "June", "July", "August",
"September", "Oktober",
- "November", "December" }));
+ momentStartMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "January", "February",
+ "March", "April", "May", "June", "July",
"August", "September", "Oktober", "November", "December" }));
- momentStartDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31" }));
+ momentStartDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6",
+ "7", "8", "9", "10", "11", "12", "13", "14",
"15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25",
+ "26", "27", "28", "29", "30", "31" }));
- momentStartHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "00", "01", "02", "03", "04",
"05", "06", "07",
- "08", "09", "10", "11", "14",
"15", "16", "17", "20",
- "22", "23" }));
+ momentStartHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "01", "02", "03", "04",
+ "05", "06", "07", "08", "09", "10", "11",
"14", "15", "16", "17", "20", "22", "23" }));
- momentStartSecondComboBox
- .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
- "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31", "32",
"33", "34", "36", "37",
- "38", "39", "40", "42", "43",
"46", "47", "48", "51",
- "52", "53", "54", "55", "56",
"57", "58", "59" }));
+ momentStartSecondComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "1", "2", "3", "4",
+ "5", "6", "7", "8", "9", "10", "11", "12",
"13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23",
+ "24", "25", "26", "27", "28", "29", "30",
"31", "32", "33", "34", "36", "37", "38", "39", "40", "42", "43",
+ "46", "47", "48", "51", "52", "53", "54",
"55", "56", "57", "58", "59" }));
momentStartYearLabel.setText("year");
@@ -163,186 +150,73 @@
momentStartUnixField.setText("1178193663");
- org.jdesktop.layout.GroupLayout StartMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(
- StartMomentPanel);
+ org.jdesktop.layout.GroupLayout StartMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(StartMomentPanel);
StartMomentPanel.setLayout(StartMomentPanelLayout);
- StartMomentPanelLayout
- .setHorizontalGroup(StartMomentPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.TRAILING)
-
.add(
-
momentStartDayLabel)
-
.add(
-
momentStartMonthLabel)
-
.add(
-
momentStartYearLabel)
-
.add(
-
momentStartHourLabel)
-
.add(
-
momentStartSecondLabel)
-
.add(
-
momentStartUnixLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
momentStartYearComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartHourComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartDayComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartMonthComboBox,
-
0, 88,
-
Short.MAX_VALUE)
-
.add(
-
momentStartSecondComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
momentStartUnixField,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
88,
-
Short.MAX_VALUE))
-
.addContainerGap()));
- StartMomentPanelLayout
- .setVerticalGroup(StartMomentPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentStartYearComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartYearLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentStartMonthComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartMonthLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentStartDayComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartDayLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentStartHourComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartHourLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentStartSecondComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartSecondLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentStartUnixField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentStartUnixLabel))
-
.addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
+
StartMomentPanelLayout.setHorizontalGroup(StartMomentPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
StartMomentPanelLayout.createSequentialGroup().addContainerGap().add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING).add(
+
momentStartDayLabel).add(momentStartMonthLabel).add(momentStartYearLabel).add(momentStartHourLabel)
+
.add(momentStartSecondLabel).add(momentStartUnixLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
momentStartYearComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartHourComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartDayComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartMonthComboBox, 0, 88,
Short.MAX_VALUE).add(momentStartSecondComboBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(org.jdesktop.layout.GroupLayout.TRAILING,
+
momentStartUnixField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 88,
Short.MAX_VALUE))
+ .addContainerGap()));
+
StartMomentPanelLayout.setVerticalGroup(StartMomentPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
StartMomentPanelLayout.createSequentialGroup().add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentStartYearComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartYearLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentStartMonthComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartMonthLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentStartDayComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartDayLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentStartHourComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartHourLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentStartSecondComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartSecondLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
StartMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentStartUnixField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentStartUnixLabel)).addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)));
- endMomentPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("End moment"));
- momentEndYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "2007", "2006", "2005", "2004"
}));
+
endMomentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("End
moment"));
+ momentEndYearComboBox
+ .setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "2007", "2006", "2005",
"2004" }));
- momentEndMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "January", "February",
"March", "April", "May",
- "June", "July", "August",
"September", "Oktober",
- "November", "December" }));
+ momentEndMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "January", "February",
"March",
+ "April", "May", "June", "July", "August",
"September", "Oktober", "November", "December" }));
- momentEndDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31" }));
+ momentEndDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6",
+ "7", "8", "9", "10", "11", "12", "13", "14",
"15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25",
+ "26", "27", "28", "29", "30", "31" }));
- momentEndHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "00", "01", "02", "03", "04",
"05", "06", "07",
- "08", "09", "10", "11", "14",
"15", "16", "17", "20",
- "22", "23" }));
+ momentEndHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "01", "02", "03", "04",
+ "05", "06", "07", "08", "09", "10", "11",
"14", "15", "16", "17", "20", "22", "23" }));
- momentEndSecondComboBox
- .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
- "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31", "32",
"33", "34", "36", "37",
- "38", "39", "40", "42", "43",
"46", "47", "48", "51",
- "52", "53", "54", "55", "56",
"57", "58", "59" }));
+ momentEndSecondComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "1", "2", "3", "4", "5",
+ "6", "7", "8", "9", "10", "11", "12", "13",
"14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24",
+ "25", "26", "27", "28", "29", "30", "31",
"32", "33", "34", "36", "37", "38", "39", "40", "42", "43", "46",
+ "47", "48", "51", "52", "53", "54", "55",
"56", "57", "58", "59" }));
momentEndYearLabel.setText("year");
@@ -358,269 +232,110 @@
momentEndUnixField.setText("1178193664");
- org.jdesktop.layout.GroupLayout endMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(
- endMomentPanel);
+ org.jdesktop.layout.GroupLayout endMomentPanelLayout = new
org.jdesktop.layout.GroupLayout(endMomentPanel);
endMomentPanel.setLayout(endMomentPanelLayout);
- endMomentPanelLayout
- .setHorizontalGroup(endMomentPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.TRAILING)
-
.add(momentEndYearLabel)
-
.add(momentEndUnixLabel)
-
.add(
-
momentEndMonthLabel)
-
.add(momentEndDayLabel)
-
.add(momentEndHourLabel)
-
.add(
-
momentEndSecondLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
momentEndYearComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentEndHourComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentEndDayComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentEndMonthComboBox,
-
0, 88,
-
Short.MAX_VALUE)
-
.add(
-
momentEndSecondComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
momentEndUnixField,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
88,
-
Short.MAX_VALUE))
-
.addContainerGap()));
- endMomentPanelLayout
- .setVerticalGroup(endMomentPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentEndYearComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(momentEndYearLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentEndMonthComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentEndMonthLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentEndDayComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(momentEndDayLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentEndHourComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(momentEndHourLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentEndSecondComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
momentEndSecondLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
endMomentPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
momentEndUnixField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(momentEndUnixLabel))
-
.addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
+
endMomentPanelLayout.setHorizontalGroup(endMomentPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
endMomentPanelLayout.createSequentialGroup().addContainerGap().add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING).add(momentEndYearLabel)
+
.add(momentEndUnixLabel).add(momentEndMonthLabel).add(momentEndDayLabel).add(momentEndHourLabel).add(
+
momentEndSecondLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
momentEndYearComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndHourComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndDayComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndMonthComboBox, 0, 88, Short.MAX_VALUE).add(momentEndSecondComboBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(org.jdesktop.layout.GroupLayout.TRAILING,
+
momentEndUnixField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 88,
Short.MAX_VALUE))
+ .addContainerGap()));
+
endMomentPanelLayout.setVerticalGroup(endMomentPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
endMomentPanelLayout.createSequentialGroup().add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentEndYearComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndYearLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentEndMonthComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndMonthLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentEndDayComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndDayLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentEndHourComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndHourLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
momentEndSecondComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
momentEndSecondLabel)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
endMomentPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(momentEndUnixField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(momentEndUnixLabel)).addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
- presetPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder(javax.swing.BorderFactory
-
.createTitledBorder(javax.swing.BorderFactory
-
.createTitledBorder("Presets"))));
+
presetPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory
+
.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Presets"))));
presetLoadButton.setText("load");
presetSelectComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "last 1 minute", "last 2
minutes",
- "last 5 minutes", "last 10
minutes", "last 30 minutes",
+ new String[] { "last 1 minute", "last 2
minutes", "last 5 minutes", "last 10 minutes", "last 30 minutes",
"last 60 minutes", "last 120
minutes" }));
- org.jdesktop.layout.GroupLayout presetPanelLayout = new
org.jdesktop.layout.GroupLayout(
- presetPanel);
+ org.jdesktop.layout.GroupLayout presetPanelLayout = new
org.jdesktop.layout.GroupLayout(presetPanel);
presetPanel.setLayout(presetPanelLayout);
- presetPanelLayout
- .setHorizontalGroup(presetPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
presetPanelLayout
-
.createSequentialGroup()
-
.addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.add(
-
presetPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
presetSelectComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
119,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
presetPanelLayout
-
.createSequentialGroup()
-
.add(
-
presetLoadButton,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
98,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap()))));
- presetPanelLayout
- .setVerticalGroup(presetPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
presetPanelLayout
-
.createSequentialGroup()
-
.add(
-
presetSelectComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).add(
-
presetLoadButton)));
+
presetPanelLayout.setHorizontalGroup(presetPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
presetPanelLayout.createSequentialGroup().addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).add(
+
presetPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+
.add(org.jdesktop.layout.GroupLayout.TRAILING, presetSelectComboBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 119,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
+
presetPanelLayout.createSequentialGroup().add(presetLoadButton,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 98,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap()))));
+
presetPanelLayout.setVerticalGroup(presetPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+ .add(
+
presetPanelLayout.createSequentialGroup().add(presetSelectComboBox,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+
.add(presetLoadButton)));
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
//
this.setBorder(javax.swing.BorderFactory.createTitledBorder("Start
// moment"));
- layout.setHorizontalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().add(StartMomentPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED).add(
-
endMomentPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().add(StartMomentPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(endMomentPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED).add(
- presetPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
- layout
- .setVerticalGroup(layout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
- layout
-
.createSequentialGroup()
-
.add(
-
layout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
endMomentPanel,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
StartMomentPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
presetPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addContainerGap()));
+
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(presetPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+ layout.createSequentialGroup().add(
+
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(endMomentPanel,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(StartMomentPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(presetPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addContainerGap()));
presetLoadButton.addActionListener(this);
}
-
-
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/QueryResultPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/QueryResultPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/QueryResultPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -5,7 +5,6 @@
import java.util.Observable;
import java.util.Observer;
-
import org.perfsonar.perfsonarui.flowsa.FlowSAUserData;
import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;
@@ -28,7 +27,7 @@
TopPanel topPanel = new TopPanel(parentFrame, model);
CardLayout cardLayout = new CardLayout();
- this.setLayout(cardLayout);
+ this.setLayout(cardLayout);
this.add(rawPanel, "Raw");
this.add(statPanel, "Statistical");
this.add(topPanel, "Top");
@@ -37,9 +36,9 @@
}
public void update(Observable o, Object arg) {
- //cardLayout.show(this, "top");
- String qt =
((FlowSAUserData)o).getQuery(FlowSAUserData.QUERYTYPE);
- ((CardLayout)this.getLayout()).show(this, qt);
+ // cardLayout.show(this, "top");
+ String qt = ((FlowSAUserData)
o).getQuery(FlowSAUserData.QUERYTYPE);
+ ((CardLayout) this.getLayout()).show(this, qt);
}
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawOptionsPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -39,16 +39,12 @@
rawAggregationLabel = new javax.swing.JLabel();
rawAggregationField = new javax.swing.JTextField();
- rawFieldPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Fields"));
+
rawFieldPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Fields"));
rawFieldsList.setModel(new javax.swing.AbstractListModel() {
private static final long serialVersionUID = 1L;
- String[] strings = { "Address family", "Timer first
seen",
- "Msec first seen", "Time last seen",
"Msec last seen",
- "Protocol", "Source address", "Source
port",
- "Destination address", "Destination
port", "Source AS",
- "Destination AS", "Input interface",
"Output interface",
- "TCP flags", "Tos", "Packets",
"Bytes" };
+ String[] strings = { "Address family", "Timer first
seen", "Msec first seen", "Time last seen", "Msec last seen",
+ "Protocol", "Source address", "Source
port", "Destination address", "Destination port", "Source AS",
+ "Destination AS", "Input interface",
"Output interface", "TCP flags", "Tos", "Packets", "Bytes" };
public int getSize() {
return strings.length;
@@ -60,41 +56,20 @@
});
rawFieldScrollPane.setViewportView(rawFieldsList);
- org.jdesktop.layout.GroupLayout rawFieldPanelLayout = new
org.jdesktop.layout.GroupLayout(
- rawFieldPanel);
+ org.jdesktop.layout.GroupLayout rawFieldPanelLayout = new
org.jdesktop.layout.GroupLayout(rawFieldPanel);
rawFieldPanel.setLayout(rawFieldPanelLayout);
- rawFieldPanelLayout
- .setHorizontalGroup(rawFieldPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
rawFieldPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
rawFieldScrollPane,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
- rawFieldPanelLayout
- .setVerticalGroup(rawFieldPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
rawFieldPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
rawFieldScrollPane,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
232, Short.MAX_VALUE)
-
.addContainerGap()));
+
rawFieldPanelLayout.setHorizontalGroup(rawFieldPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
rawFieldPanelLayout.createSequentialGroup().addContainerGap().add(rawFieldScrollPane,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
+
rawFieldPanelLayout.setVerticalGroup(rawFieldPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
rawFieldPanelLayout.createSequentialGroup().addContainerGap().add(rawFieldScrollPane,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 232,
Short.MAX_VALUE).addContainerGap()));
- FilterAggregationPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Filter and
Aggregation"));
+
FilterAggregationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Filter
and Aggregation"));
rawFilterlabel.setText("Filter rule");
rawAggregationLabel.setText("Aggregation rule");
@@ -102,107 +77,41 @@
org.jdesktop.layout.GroupLayout FilterAggregationPanelLayout
= new org.jdesktop.layout.GroupLayout(
FilterAggregationPanel);
FilterAggregationPanel.setLayout(FilterAggregationPanelLayout);
- FilterAggregationPanelLayout
-
.setHorizontalGroup(FilterAggregationPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
FilterAggregationPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
FilterAggregationPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING,
-
false)
-
.add(rawFilterlabel)
-
.add(
-
rawAggregationLabel)
-
.add(
-
rawFilterField,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
313,
-
Short.MAX_VALUE)
-
.add(
-
rawAggregationField))
-
.addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
- FilterAggregationPanelLayout
- .setVerticalGroup(FilterAggregationPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
FilterAggregationPanelLayout
-
.createSequentialGroup()
-
.add(rawFilterlabel)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
rawFilterField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(rawAggregationLabel)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
rawAggregationField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap(170, Short.MAX_VALUE)));
+
FilterAggregationPanelLayout.setHorizontalGroup(FilterAggregationPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
FilterAggregationPanelLayout.createSequentialGroup().addContainerGap().add(
+
FilterAggregationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING,
false).add(
+
rawFilterlabel).add(rawAggregationLabel).add(rawFilterField,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 313,
Short.MAX_VALUE).add(rawAggregationField))
+
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)));
+
FilterAggregationPanelLayout.setVerticalGroup(FilterAggregationPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
FilterAggregationPanelLayout.createSequentialGroup().add(rawFilterlabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(rawFilterField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+
.add(rawAggregationLabel).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(rawAggregationField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap(170,
Short.MAX_VALUE)));
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(rawFieldPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+ .add(FilterAggregationPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
layout.createSequentialGroup().addContainerGap().add(
- rawFieldPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED).add(
-
FilterAggregationPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
- layout
- .setVerticalGroup(layout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
- layout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
layout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
false)
-
.add(
-
org.jdesktop.layout.GroupLayout.LEADING,
-
FilterAggregationPanel,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.add(
-
org.jdesktop.layout.GroupLayout.LEADING,
-
rawFieldPanel,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE))
-
.addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
+
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING,
false).add(
+
org.jdesktop.layout.GroupLayout.LEADING, FilterAggregationPanel,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE).add(org.jdesktop.layout.GroupLayout.LEADING, rawFieldPanel,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
Short.MAX_VALUE)).addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)));
}
public String getFields() {
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RawPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -3,7 +3,7 @@
$Id$
$Copyright$
-*/
+ */
package org.perfsonar.perfsonarui.flowsa.panels;
@@ -19,8 +19,7 @@
import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;
-public class RawPanel extends PluginMainPanel implements Observer,
- DocumentListener, FocusListener {
+public class RawPanel extends PluginMainPanel implements Observer,
DocumentListener, FocusListener {
private static final long serialVersionUID = 1L;
@@ -33,29 +32,25 @@
this.addWidgets();
}
+ @Override
public void addWidgets() {
RawPane = new javax.swing.JPanel();
rawDataScrollPane = new javax.swing.JScrollPane();
rawDataTable = new javax.swing.JTable();
- RawPane.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Raw Query Results"));
- rawDataScrollPane
-
.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
+
RawPane.setBorder(javax.swing.BorderFactory.createTitledBorder("Raw Query
Results"));
+
rawDataScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
rawDataScrollPane.setAutoscrolls(true);
- rawDataTable.setModel(new javax.swing.table.DefaultTableModel(
- new Object[][] {}, new String[] { "Address
Family",
- "Time first seen", "Msec
first seen", "Protocol",
- "Src address", "Src port",
"Dst address", "Dst port",
- "Src AS", "Dst AS", "Input
IF", "Output IF",
- "TCP Flags", "Tos",
"Packets", "Bytes" }) {
+ rawDataTable.setModel(new
javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] {
"Address Family",
+ "Time first seen", "Msec first seen",
"Protocol", "Src address", "Src port", "Dst address", "Dst port",
+ "Src AS", "Dst AS", "Input IF", "Output IF",
"TCP Flags", "Tos", "Packets", "Bytes" }) {
private static final long serialVersionUID = 1L;
- boolean[] canEdit = new boolean[] { false, false,
false, false,
- false, false, false, false, false,
false, false, false,
- false, false, false, false };
+ boolean[] canEdit = new boolean[] { false, false,
false, false, false, false, false, false, false, false, false,
+ false, false, false, false, false };
+ @Override
public boolean isCellEditable(int rowIndex, int
columnIndex) {
return canEdit[columnIndex];
}
@@ -64,61 +59,49 @@
rawDataTable.setMinimumSize(new java.awt.Dimension(500, 400));
rawDataScrollPane.setViewportView(rawDataTable);
- org.jdesktop.layout.GroupLayout RawPaneLayout = new
org.jdesktop.layout.GroupLayout(
- RawPane);
+ org.jdesktop.layout.GroupLayout RawPaneLayout = new
org.jdesktop.layout.GroupLayout(RawPane);
RawPane.setLayout(RawPaneLayout);
-
RawPaneLayout.setHorizontalGroup(RawPaneLayout.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING).add(rawDataScrollPane,
- org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
642,
- Short.MAX_VALUE));
-
RawPaneLayout.setVerticalGroup(RawPaneLayout.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING).add(rawDataScrollPane,
- org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
356,
- Short.MAX_VALUE));
+
RawPaneLayout.setHorizontalGroup(RawPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+ rawDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 642, Short.MAX_VALUE));
+
RawPaneLayout.setVerticalGroup(RawPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+ rawDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 356, Short.MAX_VALUE));
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(RawPane,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).addContainerGap()));
- layout.setVerticalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(RawPane,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).addContainerGap()));
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(RawPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE).addContainerGap()));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(RawPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE).addContainerGap()));
}
- public void update(Observable o, Object arg) {
+ public void changedUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
}
- public void changedUpdate(DocumentEvent e) {
+ public void focusGained(FocusEvent e) {
// TODO Auto-generated method stub
}
- public void insertUpdate(DocumentEvent e) {
+ public void focusLost(FocusEvent e) {
// TODO Auto-generated method stub
}
- public void removeUpdate(DocumentEvent e) {
+ public void insertUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
}
- public void focusGained(FocusEvent e) {
+ public void removeUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
}
- public void focusLost(FocusEvent e) {
+ public void update(Observable o, Object arg) {
// TODO Auto-generated method stub
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/RouterOptionsPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -3,7 +3,7 @@
$Id$
$Copyright$
-*/
+ */
package org.perfsonar.perfsonarui.flowsa.panels;
@@ -38,28 +38,21 @@
}
});
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(
- routerList,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 376,
-
Short.MAX_VALUE).addContainerGap()));
- layout.setVerticalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(
- routerList,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 276,
-
Short.MAX_VALUE).addContainerGap()));
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(routerList,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+ 376,
Short.MAX_VALUE).addContainerGap()));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(routerList,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+ 276,
Short.MAX_VALUE).addContainerGap()));
}
public String getRouters() {
- StringBuffer buffer = new StringBuffer();
- for (Object value: routerList.getSelectedValues())
- buffer.append(value.toString() + " ");
- return buffer.toString();
+ StringBuffer buffer = new StringBuffer();
+ for (Object value : routerList.getSelectedValues())
+ buffer.append(value.toString() + " ");
+ return buffer.toString();
}
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/StatPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -19,8 +19,7 @@
import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;
-public class StatPanel extends PluginMainPanel implements Observer,
- DocumentListener, FocusListener {
+public class StatPanel extends PluginMainPanel implements Observer,
DocumentListener, FocusListener {
private static final long serialVersionUID = 1L;
private javax.swing.JPanel statQueryPanel;
@@ -166,13 +165,11 @@
statsFlowsudpField.setText("3640646");
statsFlowsIcmpField.setEditable(false);
- statsFlowsIcmpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsFlowsIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsFlowsIcmpField.setText("166385");
statsFlowsOtherField.setEditable(false);
- statsFlowsOtherField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsFlowsOtherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsFlowsOtherField.setText("81106");
statsPacketsField.setEditable(false);
@@ -180,23 +177,19 @@
statsPacketsField.setText("145371187");
statsPacketsTcpField.setEditable(false);
- statsPacketsTcpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsPacketsTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsPacketsTcpField.setText("131640619");
statsPacketsUdpField.setEditable(false);
- statsPacketsUdpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsPacketsUdpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsPacketsUdpField.setText("8769174");
statsPacketsIcmpField.setEditable(false);
- statsPacketsIcmpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsPacketsIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsPacketsIcmpField.setText("215350");
statsPacketsotherField.setEditable(false);
- statsPacketsotherField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsPacketsotherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsPacketsotherField.setText("4746044");
statsBytesField.setEditable(false);
@@ -212,13 +205,11 @@
statsBytesUdpField.setText("2048101988");
statsBytesIcmpField.setEditable(false);
- statsBytesIcmpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsBytesIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsBytesIcmpField.setText("2048101988");
statsBytesOtherField.setEditable(false);
- statsBytesOtherField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsBytesOtherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsBytesOtherField.setText("15996576");
statsFirstField.setEditable(false);
@@ -230,8 +221,7 @@
statsLastField.setText("1170162779");
statsMsecFirstField.setEditable(false);
- statsMsecFirstField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+
statsMsecFirstField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsMsecFirstField.setText("166");
statsMsecLastField.setEditable(false);
@@ -242,470 +232,168 @@
statsSeqFailField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
statsSeqFailField.setText("139");
- org.jdesktop.layout.GroupLayout statQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(
- statQueryPanel);
+ org.jdesktop.layout.GroupLayout statQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(statQueryPanel);
statQueryPanel.setLayout(statQueryPanelLayout);
- statQueryPanelLayout
- .setHorizontalGroup(statQueryPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
+
statQueryPanelLayout.setHorizontalGroup(statQueryPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
statQueryPanelLayout.createSequentialGroup().addContainerGap().add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING).add(statsFlowsLabel)
+
.add(statsFlowsTcpLabel).add(statsFlowsUdpLabel).add(statsFlowsIcmpLabel).add(statsFlowsOthersLabel)
+
.add(statsFlowsPacketsLabel).add(statsPacketsTcpLabel).add(statsPacketsUdpLabel).add(
+
statsPacketsIcmpLabel).add(statsPacketsOtherLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING,
false).add(
+
statsPacketsIcmpField).add(statsPacketsUdpField).add(statsPacketsTcpField).add(statsPacketsotherField)
+
.add(statsPacketsField).add(statsFlowsOtherField).add(statsFlowsIcmpField).add(statsFlowsudpField).add(
+
statsFlowsTcpField).add(statsFlowsField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 108,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
+
statQueryPanelLayout.createSequentialGroup().add(statsBytesIcmpLabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)).add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
+
statQueryPanelLayout.createSequentialGroup().add(statsBytesOtherLabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)).add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
+
statQueryPanelLayout.createSequentialGroup().add(statsFirstLabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)).add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
+
statQueryPanelLayout.createSequentialGroup().add(statsLastLabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)).add(
+
statQueryPanelLayout.createSequentialGroup().add(47, 47, 47).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING).add(
+
statsMsecFirstLabel).add(statsMsecLastLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED)).add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
+
statQueryPanelLayout.createSequentialGroup().add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING).add(
+
statsBytesTcpLabel).add(statsBytesUdpLabel).add(statsBytesLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED))).add(statsSeqFailLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING,
false).add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
statsBytesField).add(statsSeqFailField).add(
+
statsMsecLastField).add(statsMsecFirstField).add(statsBytesUdpField).add(statsBytesIcmpField).add(
+
statsBytesOtherField).add(statsFirstField).add(statsLastField).add(statsBytesTcpField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 130,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+ .addContainerGap(38,
Short.MAX_VALUE)));
+
statQueryPanelLayout.setVerticalGroup(statQueryPanelLayout.createParallelGroup(
+ org.jdesktop.layout.GroupLayout.LEADING).add(
+
statQueryPanelLayout.createSequentialGroup().addContainerGap().add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
statQueryPanelLayout.createSequentialGroup().add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsFlowsLabel).add(statsFlowsField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.add(10, 10, 10).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsFlowsTcpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsFlowsTcpLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsFlowsudpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsFlowsUdpLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsFlowsIcmpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsFlowsIcmpLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsFlowsOtherField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsFlowsOthersLabel)).add(6,
6, 6)
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.TRAILING)
-
.add(statsFlowsLabel)
-
.add(statsFlowsTcpLabel)
-
.add(statsFlowsUdpLabel)
-
.add(
-
statsFlowsIcmpLabel)
-
.add(
-
statsFlowsOthersLabel)
-
.add(
-
statsFlowsPacketsLabel)
-
.add(
-
statsPacketsTcpLabel)
-
.add(
-
statsPacketsUdpLabel)
-
.add(
-
statsPacketsIcmpLabel)
-
.add(
-
statsPacketsOtherLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING,
-
false)
-
.add(
-
statsPacketsIcmpField)
-
.add(
-
statsPacketsUdpField)
-
.add(
-
statsPacketsTcpField)
-
.add(
-
statsPacketsotherField)
-
.add(statsPacketsField)
-
.add(
-
statsFlowsOtherField)
-
.add(
-
statsFlowsIcmpField)
-
.add(statsFlowsudpField)
-
.add(statsFlowsTcpField)
-
.add(
-
statsFlowsField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
108,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
statsBytesIcmpLabel)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED))
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
statsBytesOtherLabel)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED))
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
statsFirstLabel)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED))
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
statsLastLabel)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED))
-
.add(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
47,
-
47,
-
47)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.TRAILING)
-
.add(
-
statsMsecFirstLabel)
-
.add(
-
statsMsecLastLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED))
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.TRAILING)
-
.add(
-
statsBytesTcpLabel)
-
.add(
-
statsBytesUdpLabel)
-
.add(
-
statsBytesLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)))
-
.add(statsSeqFailLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING,
-
false)
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
statsBytesField)
-
.add(statsSeqFailField)
-
.add(statsMsecLastField)
-
.add(
-
statsMsecFirstField)
-
.add(statsBytesUdpField)
-
.add(
-
statsBytesIcmpField)
-
.add(
-
statsBytesOtherField)
-
.add(statsFirstField)
-
.add(statsLastField)
-
.add(
-
statsBytesTcpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
130,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addContainerGap(38, Short.MAX_VALUE)));
- statQueryPanelLayout
- .setVerticalGroup(statQueryPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsFlowsLabel)
-
.add(
-
statsFlowsField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.add(
-
10,
-
10,
-
10)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsFlowsTcpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsFlowsTcpLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsFlowsudpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsFlowsUdpLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsFlowsIcmpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsFlowsIcmpLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsFlowsOtherField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsFlowsOthersLabel))
-
.add(
-
6,
-
6,
-
6)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsPacketsField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsFlowsPacketsLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsPacketsotherField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsPacketsTcpLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsPacketsTcpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsPacketsUdpLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsPacketsUdpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsPacketsIcmpLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsPacketsIcmpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsPacketsOtherLabel)))
-
.add(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsBytesField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsBytesLabel))
-
.add(
-
10,
-
10,
-
10)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsBytesTcpLabel)
-
.add(
-
statsBytesTcpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsBytesUdpLabel)
-
.add(
-
statsBytesUdpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsBytesIcmpLabel)
-
.add(
-
statsBytesIcmpField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsBytesOtherLabel)
-
.add(
-
statsBytesOtherField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsFirstLabel)
-
.add(
-
statsFirstField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsLastLabel)
-
.add(
-
statsLastField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsMsecFirstField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsMsecFirstLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsMsecLastField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsMsecLastLabel))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
statQueryPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(
-
statsSeqFailField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
-
.add(
-
statsSeqFailLabel))))
-
.addContainerGap(39, Short.MAX_VALUE)));
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsPacketsField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsFlowsPacketsLabel))
+
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsPacketsotherField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsPacketsTcpLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsPacketsTcpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsPacketsUdpLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsPacketsUdpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsPacketsIcmpLabel))
+
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsPacketsIcmpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsPacketsOtherLabel))).add(
+
statQueryPanelLayout.createSequentialGroup().add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsBytesField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
.add(statsBytesLabel)).add(10, 10, 10).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsBytesTcpLabel).add(statsBytesTcpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsBytesUdpLabel).add(statsBytesUdpField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsBytesIcmpLabel).add(statsBytesIcmpField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsBytesOtherLabel).add(statsBytesOtherField,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsFirstLabel).add(statsFirstField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsLastLabel).add(statsLastField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsMsecFirstField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsMsecFirstLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsMsecLastField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsMsecLastLabel)).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(
+
statQueryPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
statsSeqFailField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(statsSeqFailLabel)))).addContainerGap(
+ 39, Short.MAX_VALUE)));
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(
- statQueryPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
- layout.setVerticalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(
- statQueryPanel,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).addContainerGap()));
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(statQueryPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap()
+ .add(statQueryPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE).addContainerGap()));
}
public void update(Observable o, Object arg) {
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopOptionsPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -39,14 +39,12 @@
topGroupTransCheckBox = new javax.swing.JCheckBox();
topGroupTransLabel = new javax.swing.JLabel();
- TopQueryparametersPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Top query parameters"));
+
TopQueryparametersPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Top
query parameters"));
topNumberField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
topNumberField.setText("10");
- topOrderComboBox
- .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
- "Flows", "Packets", "Bytes",
"Pps", "Bps", "Bpp" }));
+ topOrderComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Flows", "Packets", "Bytes",
"Pps",
+ "Bps", "Bpp" }));
topElementLabel.setText("Element");
@@ -54,13 +52,10 @@
topNumberLabel.setText("Number");
- topElementComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "Record", "Srcip", "Dstip",
"Srcport",
- "Dstport", "Port", "Tos",
"Src AS", "Dst AS", "AS",
- "InIF", "OutIF", "IF",
"Proto" }));
+ topElementComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Record", "Srcip", "Dstip",
+ "Srcport", "Dstport", "Port", "Tos", "Src
AS", "Dst AS", "AS", "InIF", "OutIF", "IF", "Proto" }));
- topGroupTransCheckBox.setBorder(javax.swing.BorderFactory
- .createEmptyBorder(0, 0, 0, 0));
+
topGroupTransCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,
0, 0, 0));
topGroupTransCheckBox.setMargin(new java.awt.Insets(0, 0, 0,
0));
topGroupTransLabel.setText("group trans prot");
@@ -68,141 +63,51 @@
org.jdesktop.layout.GroupLayout TopQueryparametersPanelLayout
= new org.jdesktop.layout.GroupLayout(
TopQueryparametersPanel);
TopQueryparametersPanel.setLayout(TopQueryparametersPanelLayout);
- TopQueryparametersPanelLayout
-
.setHorizontalGroup(TopQueryparametersPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.add(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.add(
-
topNumberLabel)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
topNumberField,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
150,
-
Short.MAX_VALUE))
-
.add(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.add(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
topElementLabel)
-
.add(
-
topOrderLabel))
-
.add(
-
8,
-
8,
-
8)
-
.add(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(
-
topOrderComboBox,
-
0,
-
149,
-
Short.MAX_VALUE)
-
.add(
-
topElementComboBox,
-
0,
-
149,
-
Short.MAX_VALUE)))
-
.add(
-
org.jdesktop.layout.GroupLayout.TRAILING,
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.add(
-
topGroupTransLabel,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
186,
-
Short.MAX_VALUE)
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
topGroupTransCheckBox)))
-
.addContainerGap()));
- TopQueryparametersPanelLayout
-
.setVerticalGroup(TopQueryparametersPanelLayout
- .createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
- .add(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.add(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(topElementLabel)
-
.add(
-
topElementComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(topOrderLabel)
-
.add(
-
topOrderComboBox,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.add(14, 14, 14)
-
.add(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.BASELINE)
-
.add(topNumberLabel)
-
.add(
-
topNumberField,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
org.jdesktop.layout.LayoutStyle.RELATED)
-
.add(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
org.jdesktop.layout.GroupLayout.LEADING)
-
.add(topGroupTransLabel)
-
.add(
-
topGroupTransCheckBox))
-
.addContainerGap(58, Short.MAX_VALUE)));
-
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
- this.setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
+
TopQueryparametersPanelLayout.setHorizontalGroup(TopQueryparametersPanelLayout.createParallelGroup(
org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(
- TopQueryparametersPanel,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).addContainerGap()));
- layout.setVerticalGroup(layout.createParallelGroup(
+
TopQueryparametersPanelLayout.createSequentialGroup().addContainerGap().add(
+
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
TopQueryparametersPanelLayout.createSequentialGroup().add(topNumberLabel).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(topNumberField,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)).add(
+
TopQueryparametersPanelLayout.createSequentialGroup().add(
+
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
topElementLabel).add(topOrderLabel)).add(8, 8, 8).add(
+
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
topOrderComboBox, 0, 149,
Short.MAX_VALUE).add(topElementComboBox, 0, 149, Short.MAX_VALUE)))
+ .add(
+
org.jdesktop.layout.GroupLayout.TRAILING,
+
TopQueryparametersPanelLayout.createSequentialGroup().add(topGroupTransLabel,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 186,
Short.MAX_VALUE).addPreferredGap(
+
org.jdesktop.layout.LayoutStyle.RELATED).add(topGroupTransCheckBox))).addContainerGap()));
+
TopQueryparametersPanelLayout.setVerticalGroup(TopQueryparametersPanelLayout.createParallelGroup(
org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(
- TopQueryparametersPanel,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).addContainerGap()));
+
TopQueryparametersPanelLayout.createSequentialGroup().add(
+
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
topElementLabel).add(topElementComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
topOrderLabel).add(topOrderComboBox,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).add(
+ 14, 14,
14).add(
+
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(
+
topNumberLabel).add(topNumberField,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(
+
TopQueryparametersPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
topGroupTransLabel).add(topGroupTransCheckBox)).addContainerGap(58,
Short.MAX_VALUE)));
+
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
+ this.setLayout(layout);
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap()
+ .add(TopQueryparametersPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE).addContainerGap()));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap()
+ .add(TopQueryparametersPanel,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE).addContainerGap()));
}
public String getElement() {
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
2007-07-26 20:56:47 UTC (rev 2579)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/panels/TopPanel.java
2007-07-27 14:59:38 UTC (rev 2580)
@@ -3,7 +3,7 @@
$Id$
$Copyright$
-*/
+ */
package org.perfsonar.perfsonarui.flowsa.panels;
@@ -19,113 +19,94 @@
import org.perfsonar.perfsonarui.plugins.IPerfsonarTab;
import org.perfsonar.perfsonarui.ui.PluginMainPanel;
-public class TopPanel extends PluginMainPanel implements Observer,
- DocumentListener, FocusListener {
+public class TopPanel extends PluginMainPanel implements Observer,
DocumentListener, FocusListener {
private static final long serialVersionUID = 1L;
+ private javax.swing.JScrollPane topDataScrollPane;
+
+ private javax.swing.JTable topDataTable;
+
+ private javax.swing.JPanel topQueryPanel;
+
public TopPanel(Component parentFrame, IPerfsonarTab model) {
super(parentFrame, model);
this.addWidgets();
}
+ @Override
public void addWidgets() {
topQueryPanel = new javax.swing.JPanel();
topDataScrollPane = new javax.swing.JScrollPane();
topDataTable = new javax.swing.JTable();
- topDataTable.setModel(new javax.swing.table.DefaultTableModel(
- new Object[][] {
- { null, null, null, null,
null, null, null, null, null,
- null },
- { null, null, null, null,
null, null, null, null, null,
- null },
- { null, null, null, null,
null, null, null, null, null,
- null },
- { null, null, null, null,
null, null, null, null, null,
- null } }, new
String[] { "#",
- "Date first seen",
"Duration", "Proto", "Flows",
- "Packets", "Bytes", "Pps",
"Bps", "Bpp" }) {
+ topDataTable.setModel(new
javax.swing.table.DefaultTableModel(new Object[][] {
+ { null, null, null, null, null, null, null,
null, null, null },
+ { null, null, null, null, null, null, null,
null, null, null },
+ { null, null, null, null, null, null, null,
null, null, null },
+ { null, null, null, null, null, null, null,
null, null, null } }, new String[] { "#", "Date first seen",
+ "Duration", "Proto", "Flows", "Packets",
"Bytes", "Pps", "Bps", "Bpp" }) {
private static final long serialVersionUID = 1L;
- boolean[] canEdit = new boolean[] { false, false,
false, false,
- true, true, true, true, true, true };
+ boolean[] canEdit = new boolean[] { false, false,
false, false, true, true, true, true, true, true };
+ @Override
public boolean isCellEditable(int rowIndex, int
columnIndex) {
return canEdit[columnIndex];
}
});
topDataScrollPane.setViewportView(topDataTable);
- org.jdesktop.layout.GroupLayout topQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(
- topQueryPanel);
+ org.jdesktop.layout.GroupLayout topQueryPanelLayout = new
org.jdesktop.layout.GroupLayout(topQueryPanel);
topQueryPanel.setLayout(topQueryPanelLayout);
- topQueryPanelLayout.setHorizontalGroup(topQueryPanelLayout
-
.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(topDataScrollPane,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 827,
- Short.MAX_VALUE));
- topQueryPanelLayout.setVerticalGroup(topQueryPanelLayout
-
.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(topDataScrollPane,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 372,
- Short.MAX_VALUE));
+
topQueryPanelLayout.setHorizontalGroup(topQueryPanelLayout.createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING).add(topDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+ 827, Short.MAX_VALUE));
+
topQueryPanelLayout.setVerticalGroup(topQueryPanelLayout.createParallelGroup(
+
org.jdesktop.layout.GroupLayout.LEADING).add(topDataScrollPane,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+ 372, Short.MAX_VALUE));
- org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(
- this);
+ org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
-
layout.createSequentialGroup().addContainerGap().add(
- topQueryPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
- layout.setVerticalGroup(layout.createParallelGroup(
- org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
+
layout.createSequentialGroup().addContainerGap().add(topQueryPanel,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
+
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap(
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
+
layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
org.jdesktop.layout.GroupLayout.TRAILING,
-
layout.createSequentialGroup().addContainerGap(
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE).add(topQueryPanel,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
-
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+
layout.createSequentialGroup().addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .add(topQueryPanel,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
+
org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap()));
}
- private javax.swing.JScrollPane topDataScrollPane;
- private javax.swing.JTable topDataTable;
- private javax.swing.JPanel topQueryPanel;
-
- public void update(Observable o, Object arg) {
+ public void changedUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
}
- public void changedUpdate(DocumentEvent e) {
+ public void focusGained(FocusEvent e) {
// TODO Auto-generated method stub
}
- public void insertUpdate(DocumentEvent e) {
+ public void focusLost(FocusEvent e) {
// TODO Auto-generated method stub
}
- public void removeUpdate(DocumentEvent e) {
+ public void insertUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
}
- public void focusGained(FocusEvent e) {
+ public void removeUpdate(DocumentEvent e) {
// TODO Auto-generated method stub
}
- public void focusLost(FocusEvent e) {
+ public void update(Observable o, Object arg) {
// TODO Auto-generated method stub
}
- perfsonar: r2580 - in branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa: . panels, svnlog, 07/27/2007
Archive powered by MHonArc 2.6.16.