multivalent.std.ui

Class DocumentPopup

public class DocumentPopup extends Behavior

Initiates document popup menu (semantic event createWidget/DOCPOPUP, with VMenu in out field). Default categories; SPECIFIC, NAVIGATE, VIEW, CREATE, SAVE, EDIT.

Version: $Revision: 1.5 $ $Date: 2003/06/02 05:56:14 $

Field Summary
static StringATTR_CATEGORIES
static StringMSG_CREATE
Request to show document popup menu.
static StringMSG_CREATE_DOCPOPUP
Collect components for document context-aware popup menu.
Method Summary
voidbuildAfter(Document doc)
booleaneventAfter(AWTEvent e, Point rel, Node obsn)
Button 3 creates the document popup menu by sending semantic event, with CHashMap as arg with following attributes, as applicable: NODE=current node, ACTIVES=active ContextListeners, ACTIVESPAN=first active span, MENU=popup menu (seeded with categories SPECIFIC, NAVIGATE, VIEW, CREATE, SAVE).
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
Take name of menu categories, in order, from comma-separated list in ATTR_CATEGORIES attribute.
booleansemanticEventAfter(SemanticEvent se, String msg)
Recognizes "createDocPopup ", sends "createWidget/DOCPOPUP ".

Field Detail

ATTR_CATEGORIES

public static final String ATTR_CATEGORIES

MSG_CREATE

public static final String MSG_CREATE
Request to show document popup menu.

"createDocPopup": in= Behavior requestor.

MSG_CREATE_DOCPOPUP

public static final String MSG_CREATE_DOCPOPUP
Collect components for document context-aware popup menu.

"createWidget/DOCPOPUP": arg= java.util.HashMap attributes, in= Behavior or java.util.List active behavior(s), out= INode menu-to-modify. where attributes holds key-value pairs "node" - active node, "actives" - all active behaviors at point.

Method Detail

buildAfter

public void buildAfter(Document doc)

eventAfter

public boolean eventAfter(AWTEvent e, Point rel, Node obsn)
Button 3 creates the document popup menu by sending semantic event, with CHashMap as arg with following attributes, as applicable: NODE=current node, ACTIVES=active ContextListeners, ACTIVESPAN=first active span, MENU=popup menu (seeded with categories SPECIFIC, NAVIGATE, VIEW, CREATE, SAVE).

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)
Take name of menu categories, in order, from comma-separated list in ATTR_CATEGORIES attribute.

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
Recognizes "createDocPopup ", sends "createWidget/DOCPOPUP ".