net.fenyo.gnetwatch.GUI
Class DialogIPOptions

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

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

This class manages the "IP options" dialog.

Version:
$Id: DialogIPOptions.java,v 1.14 2008/04/15 23:58:17 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  java.lang.String[] dscp
           
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
           
private  org.eclipse.swt.layout.GridLayout layout
           
private static Log log
           
private  int pdu_max_size
           
private  int port_dst
           
private  int port_src
           
private  int tos
           
 
Constructor Summary
DialogIPOptions(GUI gui, org.eclipse.swt.widgets.Shell parent)
          Constructor.
 
Method Summary
 int getPDUMaxSize()
          Gets the PDU maximum size.
 int getPortDst()
          Gets the destination port.
 int getPortSrc()
          Gets the source port.
 int getTOS()
          Gets the IP type of service.
 void open()
          Displays the dialog.
 void setPDUMaxSize(int pdu_max_size)
          Sets the PDU maximum size.
 void setPortDst(int port_dst)
          Sets the destination port.
 void setPortSrc(int port_src)
          Sets the source port.
 void setTOS(int tos)
          Sets the type of service.
 
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

dscp

private java.lang.String[] dscp

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

tos

private int tos

port_src

private int port_src

port_dst

private int port_dst

pdu_max_size

private int pdu_max_size
Constructor Detail

DialogIPOptions

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

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

getTOS

public int getTOS()
Gets the IP type of service.

Parameters:
none. -
Returns:
int type of service.

getPortSrc

public int getPortSrc()
Gets the source port.

Parameters:
none. -
Returns:
int source port.

getPortDst

public int getPortDst()
Gets the destination port.

Returns:
int destination port.

getPDUMaxSize

public int getPDUMaxSize()
Gets the PDU maximum size.

Parameters:
none. -
Returns:
int PDU maximum size.

setTOS

public void setTOS(int tos)
Sets the type of service.

Parameters:
tos - type of service.

setPortSrc

public void setPortSrc(int port_src)
Sets the source port.

Parameters:
port_src - source port.

setPortDst

public void setPortDst(int port_dst)
Sets the destination port.

Parameters:
port_dst - destination port.

setPDUMaxSize

public void setPDUMaxSize(int pdu_max_size)
Sets the PDU maximum size.

Parameters:
pdu_max_size - PDU maximum size.

open

public void open()
Displays the dialog.

Parameters:
none. -