multivalent.std
Class Autosearch
java.lang.Object
multivalent.VObject
multivalent.Behavior
multivalent.std.Autosearch
- public class Autosearch
- extends Behavior
Find words in tree, highlight matches.
Set colors and other properties through style sheets.
by augmenting different genre hubs, can focus.
Need Preferences panel to edit URI patterns and search patterns.
- Version:
- $Revision: 1.3 $ $Date: 2002/02/14 19:38:51 $
- See Also:
Pattern
,
URI
Field Summary |
static java.lang.String |
ATTR_REGEX
Pattern for words to match. |
static java.lang.String |
ATTR_TAG
|
static java.lang.String |
ATTR_TYPE
Show hits as 'box', else assumed generic. |
static java.lang.String |
ATTR_URI
Limit to URIs matching this regex. |
Method Summary |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Takes the place of a constructor's initialization functions; that is, it is invoked exactly once immediately after object instantiation. |
boolean |
semanticEventBefore(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, semanticEventAfter, 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_REGEX
public static final java.lang.String ATTR_REGEX
- Pattern for words to match.
- See Also:
- Constant Field Values
ATTR_TYPE
public static final java.lang.String ATTR_TYPE
- Show hits as 'box', else assumed generic.
- See Also:
- Constant Field Values
ATTR_URI
public static final java.lang.String ATTR_URI
- Limit to URIs matching this regex. (Alternatively, put in PerPage hierarchy.)
- See Also:
- Constant Field Values
ATTR_TAG
public static final java.lang.String ATTR_TAG
- See Also:
- Constant Field Values
Autosearch
public Autosearch()
semanticEventBefore
public boolean semanticEventBefore(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:
semanticEventBefore
in class Behavior
restore
public void restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
- Description copied from class:
Behavior
- Takes the place of a constructor's initialization functions; that is, it is invoked exactly once immediately after object instantiation.
When restored from hub, passed XML content subtree if any as first parameter and attributes from XML tag's attributes.
This protocol cannot be short-circuited.
- Overrides:
restore
in class Behavior