Main Page | Compound List | File List | Compound Members

dndtester::DaqPanel::ConnectionPanel Class Reference

ConnectionPanel is a private class of testmodule::DaqPanel that extends a JPanel. More...

List of all members.

Public Member Functions

 ConnectionPanel ()
 Constructor.


Static Public Attributes

final int MAXTEXT = 15
 Sets the width of daqServer.

final int PORTTEXT = 5
 Sets the width of commandPort.


Package Attributes

JButton connection
 Button that attempts to establish a connection with the server running the DAQ.

JButton disconnect
 Button that disconnects the program from the DAQ.

JLabel daqMachine
 Label for daqServer.

JLabel labelComPort
 Label for commandPort.

JTextField daqServer
 Displays the host where the DAQ is running.

JTextField commandPort
 The remote port where the DAQ expects the connection.

JLabel connectStat
 Displays either Connected or offline.


Detailed Description

ConnectionPanel is a private class of testmodule::DaqPanel that extends a JPanel.

It is used to display the components to establish a connection with the DAQ and to keep the status of that connection. It gives the options to change the server where the DAQ is running, and allows the user to specify the port where to connect to.

Definition at line 63 of file DaqPanel.java.


Constructor & Destructor Documentation

dndtester::DaqPanel::ConnectionPanel::ConnectionPanel  )  [inline]
 

Constructor.

Initializes variables and adds the buttons and the labels to the Panel.

Definition at line 104 of file DaqPanel.java.

References commandPort, connection, connectStat, daqMachine, daqServer, disconnect, labelComPort, MAXTEXT, and PORTTEXT.


Member Data Documentation

JTextField dndtester::DaqPanel::ConnectionPanel::commandPort [package]
 

The remote port where the DAQ expects the connection.

The user may modify this. 55055 is the default value.

Definition at line 95 of file DaqPanel.java.

Referenced by ConnectionPanel().

JButton dndtester::DaqPanel::ConnectionPanel::connection [package]
 

Button that attempts to establish a connection with the server running the DAQ.

Gives up after 20 seconds.

Definition at line 74 of file DaqPanel.java.

Referenced by ConnectionPanel().

JTextField dndtester::DaqPanel::ConnectionPanel::daqServer [package]
 

Displays the host where the DAQ is running.

The user may modify this. 'localhost' is the default value.

Definition at line 90 of file DaqPanel.java.

Referenced by ConnectionPanel().

JButton dndtester::DaqPanel::ConnectionPanel::disconnect [package]
 

Button that disconnects the program from the DAQ.

Does not do anything if already disconnected

Definition at line 79 of file DaqPanel.java.

Referenced by ConnectionPanel().


The documentation for this class was generated from the following file:
Generated on Mon Jul 28 13:59:25 2003 by doxygen 1.3.2