Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## multivalent.std.ui
Class DocumentPopup

    java.lang.Object
      multivalent.VObject
          multivalent.Behavior
              multivalent.std.ui.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 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 ", sends "createWidget/DOCPOPUP ".

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

### MSG_CREATE

    public static final java.lang.String MSG_CREATE

  Request to show document popup menu.

  `"createDocPopup"`: `in=` `Behavior` requestor.

  See Also:
    Constant Field Values

### MSG_CREATE_DOCPOPUP

    public static final java.lang.String MSG_CREATE_DOCPOPUP

  Collect components for document context-aware popup menu.

  `"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.

  See Also:
    Constant Field Values

### ATTR_CATEGORIES

    public static final java.lang.String ATTR_CATEGORIES

See Also:
  Constant Field Values

Constructor Detail

### DocumentPopup

    public DocumentPopup()

Method Detail

### buildAfter

    public void buildAfter(Document doc)

  Description copied from class: `Behavior`
  Traverses all behaviors from lowest to highest priority, during which tweaks hack their content into the tree,

  Overrides:
    `buildAfter` in class `Behavior`

### eventAfter

    public 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).

  Overrides:
    `eventAfter` in class `Behavior`

### semanticEventAfter

    public boolean semanticEventAfter(SemanticEvent se,
                                      java.lang.String msg)

  Recognizes "createDocPopup ", sends "createWidget/DOCPOPUP ".

  Overrides:
    `semanticEventAfter` in class `Behavior`

### restore

    public 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.

  Overrides:
    `restore` in class `Behavior`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD