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 String | MSG_DESTROY
Destroy objects of various types: Node, Behavior, ...
|
static String | MSG_FORM_DATA
Broadcast content of form for some other behavior to process, as opposed to sending to some server.
|
static String | MSG_GO_HOME
Open user home page, by sending MSG_OPEN with HOMEPAGE user preference.
|
public static final String MSG_DESTROY
Destroy objects of various types: Node, Behavior, ...
"destroy": arg= java.lang.Object object-to-destroy
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
public static final String MSG_GO_HOME
Open user home page, by sending
MSG_OPEN with HOMEPAGE user preference.
"goHome"
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,