multivalent

Class SystemEvents

public class SystemEvents extends Behavior

Default implentation of standard set of system events: open document, load layer, and more. Behaviors shouldn't call Browser directly; instead, send a semantic event, so other behaviors can filter/mutate/record/... it. For example, to open new document, send MSG_OPEN; this class opens the document, and in addition Cookies adds/records Cookies, ForwardBack records the trail, History records in persistently, and other behaviors could handle a proxy server and encryption and so on.

This behavior implements all of its handled semantic events in SystemEvents. It does so in after in order to give other behaviors a chance to modify the event.

Version: $Revision: 1.14 $ $Date: 2002/11/22 04:21:09 $

Field Summary
static StringMSG_DESTROY
Destroy objects of various types: Node, Behavior, ...
static StringMSG_FORM_DATA
Broadcast content of form for some other behavior to process, as opposed to sending to some server.
static StringMSG_GO_HOME
Open user home page, by sending MSG_OPEN with HOMEPAGE user preference.
Method Summary
booleansemanticEventAfter(SemanticEvent se, String msg)
Default implementations of various semantic events, in After to give everybody else a chance to do something different.

Field Detail

MSG_DESTROY

public static final String MSG_DESTROY
Destroy objects of various types: Node, Behavior, ...

"destroy": arg= java.lang.Object object-to-destroy

MSG_FORM_DATA

public static final String MSG_FORM_DATA
Broadcast content of form for some other behavior to process, as opposed to sending to some server.

"formData": arg= java.util.Map name-value pairs, in= Node root-of-form

MSG_GO_HOME

public static final String MSG_GO_HOME
Open user home page, by sending MSG_OPEN with HOMEPAGE user preference.

"goHome"

Method Detail

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
Default implementations of various semantic events, in After to give everybody else a chance to do something different. Semantic events handled here: MSG_EXIT, MSG_NEW, MSG_CLOSE, MSG_STATUS, MSG_OPEN This event can arrive between openDocument and openedDocument, as openDocument request a new document, the system realizes the current one hasn't been closed and so issues closeDocument, before the request is satisfied as announced by openedDocument. , MSG_OPENED, MSG_RELOAD, MSG_STOP, MSG_CLOSE, MSG_REFORMAT, MSG_REPAINT, MSG_LOAD, MSG_SCROLL_TO MSG_GO_HOME,