multivalent.std

Class Search

public class Search extends Behavior

Find words in tree, highlight matches within document.

TO DO: update to use regexp, maybe separate UI from functionality

Version: $Revision: 1.3 $ $Date: 2003/06/02 05:57:32 $

Field Summary
static Color[]colors
Coordinate group colors among visualizations.
static StringMSG_HITS
Announces search hits, by group.
static StringMSG_NEXT
Show next hit.
static StringMSG_PREV
Show previous hit.
static StringMSG_SEARCHFOR
Another semantic command, which should be given more descriptive name.
static StringMSG_SET_ACTIVE
Add/remove controls in second toolbar: on/off.
static StringSEARCHHITTAG
Name of span for style sheet.
Method Summary
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
voidsearch(String searchfor, INode root)
booleansemanticEventAfter(SemanticEvent se, String msg)
When active, takes over toolbar.
booleansemanticEventBefore(SemanticEvent se, String msg)
Part of Edit menu

Field Detail

colors

public static Color[] colors
Coordinate group colors among visualizations.

MSG_HITS

public static final String MSG_HITS
Announces search hits, by group.

"searchHits": arg= java.util.List[] hits, grouped, in= Node root node of search

MSG_NEXT

public static final String MSG_NEXT
Show next hit.

"searchNext".

MSG_PREV

public static final String MSG_PREV
Show previous hit.

"searchPrev".

MSG_SEARCHFOR

public static final String MSG_SEARCHFOR
Another semantic command, which should be given more descriptive name.

"searchFor": arg= java.lang.String expression-to-search-for.

MSG_SET_ACTIVE

public static final String MSG_SET_ACTIVE
Add/remove controls in second toolbar: on/off.

"searchSetActive": arg= java.lang.String or java.lang.Boolean or null to toggle.

SEARCHHITTAG

public static String SEARCHHITTAG
Name of span for style sheet.

Method Detail

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

search

public void search(String searchfor, INode root)

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
When active, takes over toolbar.

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)
Part of Edit menu