de.unikiel.ipn.htmlform
Class Updater

java.lang.Object
  |
  +--de.unikiel.ipn.htmlform.Updater
All Implemented Interfaces:
MessageHandler

class Updater
extends java.lang.Object
implements MessageHandler

A class to perform updates on the target files.

See Also:
Entry

Constructor Summary
(package private) Updater(Entry[] e, MessageHandler handler)
          Creates a new Updater instance.
 
Method Summary
 void handleMessage(Message msg)
          Handles the Message or forwards it to the successor.
(package private)  void update()
          Performs the final updates on the target files based on the information in the Entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Updater

Updater(Entry[] e,
        MessageHandler handler)
Creates a new Updater instance.

Parameters:
e - an array containing the entries that contain the information which files shall be updated and how.
handler - the message handler that shall handle the messages that occur during the update progress. It should be the currently focused Frame or Dialog.
Throws:
java.lang.NullPointerException - when one of the arguments is null.
Method Detail

update

void update()
Performs the final updates on the target files based on the information in the Entries.

See Also:
Entry

handleMessage

public void handleMessage(Message msg)
Description copied from interface: MessageHandler
Handles the Message or forwards it to the successor. If it handles it by itself may depend for example on the type of the Message or on wether it knows which java.awt.Window is currently focused.

Specified by:
handleMessage in interface MessageHandler
Parameters:
msg - the Message that has to be handled.