lritdcs.SearchCritDialog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opendcs Show documentation
Show all versions of opendcs Show documentation
A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.
The newest version!
/*
* $Id$
*
* $Log$
* Revision 1.2 2012/12/12 16:01:31 mmaloney
* Several updates for 5.2
*
* Revision 1.1 2008/04/04 18:21:16 cvs
* Added legacy code to repository
*
* Revision 1.7 2006/02/20 22:01:03 mmaloney
* dev
*
* Revision 1.6 2004/06/03 15:34:17 mjmaloney
* LRIT release prep
*
* Revision 1.5 2004/05/27 13:15:02 mjmaloney
* DR fixes.
*
* Revision 1.4 2004/05/18 22:52:40 mjmaloney
* dev
*
* Revision 1.3 2004/05/18 18:11:51 mjmaloney
* dev
*
* Revision 1.2 2004/05/15 22:02:35 mjmaloney
* Implemented retransmit and queue flush features.
*
*/
package lritdcs;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.Iterator;
import java.util.StringTokenizer;
import lrgs.common.SearchCriteria;
import lrgs.common.DcpAddress;
import ilex.util.AsciiUtil;
public class SearchCritDialog
extends JDialog
{
JPanel panel1 = new JPanel();
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
JButton okButton = new JButton();
FlowLayout flowLayout1 = new FlowLayout();
JButton cancelButton = new JButton();
JPanel jPanel2 = new JPanel();
JLabel jLabel1 = new JLabel();
JLabel whichScLabel = new JLabel();
JPanel jPanel3 = new JPanel();
JLabel jLabel2 = new JLabel();
JTextField addressField = new JTextField();
JLabel jLabel3 = new JLabel();
JTextField channelField = new JTextField();
JLabel jLabel4 = new JLabel();
JTextField netlistField = new JTextField();
FlowLayout flowLayout2 = new FlowLayout();
GridBagLayout gridBagLayout1 = new GridBagLayout();
SearchCriteria origSC;
SearchCriteria copySC;
boolean okPressed;
public SearchCritDialog(Frame frame, String title, boolean modal) {
super(frame, title, modal);
try {
jbInit();
pack();
}
catch(Exception ex) {
ex.printStackTrace();
}
origSC = null;
okPressed = false;
}
public SearchCritDialog() {
this(null, "", false);
}
public SearchCritDialog(Frame parent, String what, SearchCriteria sc)
{
this(parent, "", true);
whichScLabel.setText(what);
origSC = sc;
copySC = new SearchCriteria(origSC);
fillValues();
}
private void fillValues()
{
StringBuffer sb = new StringBuffer();
for(Iterator it = copySC.ExplicitDcpAddrs.iterator(); it.hasNext(); )
{
DcpAddress da = (DcpAddress)it.next();
sb.append(da.toString() + " ");
}
addressField.setText(sb.toString());
sb.setLength(0);
if (copySC.channels != null)
{
for(int i=0; i