org.fosstrak.epcis.captureclient
Class CaptureClientGui

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by org.fosstrak.epcis.captureclient.CaptureClientGui
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener, org.fosstrak.epcis.gui.AuthenticationOptionsChangeListener

public class CaptureClientGui
extends java.awt.event.WindowAdapter
implements java.awt.event.ActionListener, org.fosstrak.epcis.gui.AuthenticationOptionsChangeListener

GUI class for the EPCIS Capture Interface Client. Implements the GUI and the creation of XML from the GUI data.

Author:
David Gubler, Marco Steybe

Constructor Summary
CaptureClientGui()
          Constructs a new CaptureClientGui initialized with a default address.
CaptureClientGui(java.lang.String address)
          Constructs a new CaptureClientGui initialized with the given address.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Event dispatcher.
 void configurationChanged(org.fosstrak.epcis.gui.AuthenticationOptionsChangeEvent ace)
           
static void main(java.lang.String[] args)
          Instantiates a new CaptureClientGui using a look-and-feel that matches the operating system.
 void windowClosing(java.awt.event.WindowEvent e)
          Event handler for window manager closing events.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptureClientGui

public CaptureClientGui()
Constructs a new CaptureClientGui initialized with a default address.


CaptureClientGui

public CaptureClientGui(java.lang.String address)
Constructs a new CaptureClientGui initialized with the given address.

Parameters:
address - The address to which the CaptureClient should sent its capture events.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Event dispatcher. Very simple events may be processed directly within this method.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - for the Action

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Event handler for window manager closing events. Overrides the default, empty method.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter
Parameters:
e - The WindowEvent.
See Also:
WindowAdapter.windowClosing(java.awt.event.WindowEvent)

main

public static void main(java.lang.String[] args)
Instantiates a new CaptureClientGui using a look-and-feel that matches the operating system.

Parameters:
args - The address to which the CaptureClient should send the capture events. If omitted, a default address will be provided.

configurationChanged

public void configurationChanged(org.fosstrak.epcis.gui.AuthenticationOptionsChangeEvent ace)
Specified by:
configurationChanged in interface org.fosstrak.epcis.gui.AuthenticationOptionsChangeListener


Copyright © 2009. All Rights Reserved.