net.fenyo.gnetwatch.GUI
Class DialogHTTPOptions

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by net.fenyo.gnetwatch.GUI.DialogHTTPOptions

public class DialogHTTPOptions
extends org.eclipse.swt.widgets.Dialog

This class manages the "IP options" dialog.

Version:
$Id: DialogHTTPOptions.java,v 1.3 2008/05/21 16:46:06 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  int bglevel
           
private  org.eclipse.swt.widgets.Composite bottom_composite
           
private  org.eclipse.swt.layout.RowLayout bottom_composite_layout
           
private  org.eclipse.swt.widgets.Group group_network_parameters
           
private  org.eclipse.swt.layout.GridLayout group_network_parameters_layout
           
private  org.eclipse.swt.widgets.Composite groups_composite
           
private  org.eclipse.swt.layout.GridData groups_composite_grid_data
           
private  org.eclipse.swt.layout.RowLayout groups_composite_layout
           
private  GUI gui
           
(package private)  org.eclipse.swt.widgets.Label label
           
(package private)  org.eclipse.swt.widgets.Label label_port
           
private  org.eclipse.swt.layout.GridLayout layout
           
private static Log log
           
private  int nparallel
           
private  java.lang.String proxy_host
           
private  int proxy_port
           
private  java.lang.String URL
           
private  boolean use_proxy
           
 
Constructor Summary
DialogHTTPOptions(GUI gui, org.eclipse.swt.widgets.Shell parent)
          Constructor.
 
Method Summary
 int getNParallel()
          Returns the number of concurrent HTTP sessions.
 java.lang.String getProxyHost()
          Gets the proxy name.
 int getProxyPort()
          Gets the TCP proxy port.
 java.lang.String getURL()
          Gets the URL to connect to.
 boolean getUseProxy()
          Checks that we use a proxy.
 void open()
          Displays the dialog.
 void setNParallel(int nparallel)
          Sets the number of concurrent HTTP transactions.
 void setProxyHost(java.lang.String proxy_host)
          Sets the proxy host name.
 void setProxyPort(int proxy_port)
          Sets the proxy TCP port.
 void setURL(java.lang.String URL)
          Sets the destination URL.
 void setUseProxy(boolean use_proxy)
          Sets it to true to use a proxy.
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

gui

private final GUI gui

bglevel

private final int bglevel
See Also:
Constant Field Values

layout

private org.eclipse.swt.layout.GridLayout layout

groups_composite

private org.eclipse.swt.widgets.Composite groups_composite

bottom_composite

private org.eclipse.swt.widgets.Composite bottom_composite

groups_composite_layout

private org.eclipse.swt.layout.RowLayout groups_composite_layout

bottom_composite_layout

private org.eclipse.swt.layout.RowLayout bottom_composite_layout

groups_composite_grid_data

private org.eclipse.swt.layout.GridData groups_composite_grid_data

group_network_parameters

private org.eclipse.swt.widgets.Group group_network_parameters

group_network_parameters_layout

private org.eclipse.swt.layout.GridLayout group_network_parameters_layout

label

org.eclipse.swt.widgets.Label label

label_port

org.eclipse.swt.widgets.Label label_port

use_proxy

private boolean use_proxy

proxy_host

private java.lang.String proxy_host

proxy_port

private int proxy_port

URL

private java.lang.String URL

nparallel

private int nparallel
Constructor Detail

DialogHTTPOptions

public DialogHTTPOptions(GUI gui,
                         org.eclipse.swt.widgets.Shell parent)
Constructor.

Parameters:
gui - current GUI instance.
parent - parent shell.
Method Detail

getUseProxy

public boolean getUseProxy()
Checks that we use a proxy.

Parameters:
none. -
Returns:
boolean true if using a proxy.

getProxyHost

public java.lang.String getProxyHost()
Gets the proxy name.

Parameters:
none. -
Returns:
String proxy name.

getProxyPort

public int getProxyPort()
Gets the TCP proxy port.

Parameters:
none. -
Returns:
int TCP proxy port.

getURL

public java.lang.String getURL()
Gets the URL to connect to.

Parameters:
none. -
Returns:
String URL to connect to.

getNParallel

public int getNParallel()
Returns the number of concurrent HTTP sessions.

Parameters:
none. -
Returns:
int number of concurrent HTTP sessions.

setUseProxy

public void setUseProxy(boolean use_proxy)
Sets it to true to use a proxy.

Parameters:
use_proxy - true to use a proxy.

setProxyHost

public void setProxyHost(java.lang.String proxy_host)
Sets the proxy host name.

Parameters:
proxy_host - proxy host name.

setProxyPort

public void setProxyPort(int proxy_port)
Sets the proxy TCP port.

Parameters:
proxy_port - proxy TCP port.

setURL

public void setURL(java.lang.String URL)
Sets the destination URL.

Parameters:
URL - destination URL.

setNParallel

public void setNParallel(int nparallel)
Sets the number of concurrent HTTP transactions.

Parameters:
nparallel - number of concurrent transactions.

open

public void open()
Displays the dialog.

Parameters:
none. -