|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmultivalent.VObject
multivalent.Behavior
multivalent.std.ui.DocumentPopup
Initiates document popup menu (semantic event createWidget/DOCPOPUP, with VMenu in out field). Default categories; SPECIFIC, NAVIGATE, VIEW, CREATE, SAVE, EDIT.
Field Summary | |
---|---|
static java.lang.String |
ATTR_CATEGORIES
|
static java.lang.String |
MSG_CREATE
Request to show document popup menu. |
static java.lang.String |
MSG_CREATE_DOCPOPUP
Collect components for document context-aware popup menu. |
Fields inherited from class multivalent.Behavior |
---|
ATTR_BEHAVIOR, name_ |
Fields inherited from class multivalent.VObject |
---|
attr_ |
Constructor Summary | |
---|---|
DocumentPopup()
|
Method Summary | |
---|---|
void |
buildAfter(Document doc)
Traverses all behaviors from lowest to highest priority, during which tweaks hack their content into the tree, |
boolean |
eventAfter(java.awt.AWTEvent e,
java.awt.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). |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Take name of menu categories, in order, from comma-separated list in ATTR_CATEGORIES attribute. |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Recognizes "createDocPopup |
Methods inherited from class multivalent.Behavior |
---|
buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, destroy, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, paintBefore, putPreference, redo, restoreChildren, save, semanticEventBefore, setName, toString, undo |
Methods inherited from class multivalent.VObject |
---|
attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MSG_CREATE
"createDocPopup": in= Behavior
requestor.
public static final java.lang.String MSG_CREATE_DOCPOPUP
"createWidget/DOCPOPUP": arg= HashMap
attributes, in= Behavior
or List
active behavior(s), out= INode
menu-to-modify.
where attributes holds key-value pairs "node" - active node, "actives" - all active behaviors at point.
public static final java.lang.String ATTR_CATEGORIES
Constructor Detail |
---|
public DocumentPopup()
Method Detail |
---|
public void buildAfter(Document doc)
Behavior
buildAfter
in class Behavior
public boolean eventAfter(java.awt.AWTEvent e, java.awt.Point rel, Node obsn)
eventAfter
in class Behavior
public boolean semanticEventAfter(SemanticEvent se, java.lang.String msg)
semanticEventAfter
in class Behavior
public void restore(ESISNode n, java.util.Map<java.lang.String,java.lang.Object> attr, Layer layer)
ATTR_CATEGORIES
attribute.
restore
in class Behavior
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |