Class View

java.lang.Object
  extended byView
All Implemented Interfaces:
ActionListener, EventListener, Observer

public class View
extends Object
implements ActionListener, Observer

This classs creates GUI

Version:
1.0
Author:
Adeel Hashmi
See Also:
Observer, ActionListener

Constructor Summary
View(FileServer fs)
          creates and show GUI
 
Method Summary
 void actionPerformed(ActionEvent e)
          stop server activity and exit the program
 void update(Observable o, Object arg)
          Method to update server status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View(FileServer fs)
creates and show GUI

Parameters:
fs - FileServer reference
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
stop server activity and exit the program

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - Event object reference
See Also:
ActionListener.actionPerformed(ActionEvent e)

update

public void update(Observable o,
                   Object arg)
Method to update server status

Specified by:
update in interface Observer
Parameters:
o - Observable object reference
arg - Object reference
See Also:
Observer.update(Observable o, Object arg)