de.unikiel.ipn.htmlform
Interface MessageHandler
- All Known Subinterfaces:
- TextVisitor
- All Known Implementing Classes:
- AntiLineBreakVisitor, AutoImportDialog, HTMLVisitor, PDFParser, ProgressDialog, SimpleAppender, Updater
- interface MessageHandler
An interface to handle Messages.
The intended use is to provide a chain of responsibility
for handling a message. Each receiver of a message knows
its successor in the chain. It may pass the message to the
successor or handle it by itself.
- See Also:
Message
handleMessage
public void handleMessage(Message msg)
- 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.
- Parameters:
msg
- the Message that has to be handled.