|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--uk.org.iscream.cms.conient.ConfigurationDialog
This provides a modal dialog from which the user can reconfigure the conient client. Look at the comments for the attributes of this class to see what configuration options this class deals with. It then writes back the configuration to the loaded configuration. The user can then opt to save it.
Field Summary | |
(package private) Configuration |
_config
A reference to the configuration in use |
private JCheckBox |
_connectControl
If we want to start the control channel on startup |
private JCheckBox |
_connectData
If we want to start the data channel on startup |
private JCheckBox |
_displayExtra
Whether to display extra data contained in packets |
private JCheckBox |
_displayQueue
Whether to display server queue debugging information |
private JTextField |
_firewallCommand
The command to run to open a pipe to the iscream server |
private JTextField |
_firewallServer
The name of the machine to locally connect through to reach the i-scream server |
private JTextField |
_firewallWait
How long to wait for the firewall command to execute |
private JCheckBox |
_hostDiscoveryMode
If we are making a note of the hosts the server sends us. |
private JList |
_hostList
The list of hosts we're monitoring |
private ArrayList |
_hostListData
holds the monitored hosts |
private JList |
_knownHosts
Lists the known hosts (less the ones we're monitoring) |
private ArrayList |
_knownHostsData
holds the known hosts |
private JTextField |
_name
The name to identify this client to the server |
private JTextField |
_newHost
Used to add a new host to the known host list |
private JCheckBox |
_packetDump
Whether to dump raw packet data to the console |
private JTextField |
_port
The _port the i-scream _server is running on |
private JTextField |
_queueLimit
The limit on the data queue size |
private JTextField |
_server
The host_name of the i-scream server |
private JCheckBox |
_useFirewall
If we want to use the firewall command to connect |
private JCheckBox |
_useHostList
If we are using the host list setting to only view data from certain hosts |
static String |
REVISION
The current CVS revision of this class |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ConfigurationDialog()
Constructs and shows the dialog for the user |
Method Summary | |
private JPanel |
createClientOptions()
creates a JPanel for the client options |
private JPanel |
createDataOptions()
creates a JPanel for the data options |
private JPanel |
createFirewallOptions()
creates a JPanel for the firewall options |
private JPanel |
createServerOptions()
creates a JPanel for the server options |
private void |
getCurrentSettings()
Reads in the current settings from the loaded configuration |
private void |
prepareLists()
Displays the host lists in the host windows in alphabetical order |
private void |
setListDisplay()
Because of the limitation of the existing data model for lists, ArrayLists are used. |
private void |
setNewSettingsAndClose()
Writes the changes back to the loaded configuration Then closes the windows |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String REVISION
Configuration _config
private JTextField _newHost
private JList _knownHosts
private JList _hostList
private JCheckBox _hostDiscoveryMode
private JCheckBox _useHostList
private JTextField _name
private JTextField _port
private JTextField _server
private JCheckBox _connectControl
private JCheckBox _connectData
private JCheckBox _useFirewall
private JTextField _firewallCommand
private JTextField _firewallWait
private JTextField _firewallServer
private JCheckBox _displayQueue
private JCheckBox _displayExtra
private JCheckBox _packetDump
private JTextField _queueLimit
private ArrayList _knownHostsData
private ArrayList _hostListData
Constructor Detail |
public ConfigurationDialog()
Method Detail |
private JPanel createClientOptions()
private JPanel createServerOptions()
private JPanel createFirewallOptions()
private JPanel createDataOptions()
private void getCurrentSettings()
private void prepareLists()
private void setListDisplay()
private void setNewSettingsAndClose()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |