multivalent.net
Class About
java.lang.Object
multivalent.VObject
multivalent.Behavior
multivalent.net.About
- public class About
- extends Behavior
Intercepts Document.MSG_OPEN
events with "about" protocol and remaps to document as given in attributes.
- Version:
- $Revision: 1.4 $ $Date: 2005/01/03 09:34:16 $
Field Summary |
static java.lang.String |
ATTR_MAP
|
Constructor Summary |
About()
|
Method Summary |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Take name-to-URI remappings from hub entry's ATTR_MAP attribute,
as name uri, name2 uri2 ... |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Round robin distribution to all behaviors. |
Methods inherited from class multivalent.Behavior |
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, destroy, eventAfter, 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 |
ATTR_MAP
public static final java.lang.String ATTR_MAP
- See Also:
- Constant Field Values
About
public About()
semanticEventAfter
public boolean semanticEventAfter(SemanticEvent se,
java.lang.String msg)
- Description copied from class:
Behavior
- Round robin distribution to all behaviors.
Message and clientData unpacked from SemanticEvent for convenience.
Message is interned, so if you compare to a literal, you can use "==".
Message can't be changed (it can be short-circuited out of), but client data can be mutated as it is passed along (so it's not passed as a parameter).
- 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-to-URI remappings from hub entry's
ATTR_MAP
attribute,
as name uri, name2 uri2 ...
pairings.
- Overrides:
restore
in class Behavior