|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.dds.KeywordsHighlight
public final class KeywordsHighlight
Provide highlighting of keywords in any given string of text.
Constructor Summary | |
---|---|
KeywordsHighlight(String words,
String highlightColor,
String cssClassName)
Parse keyword input string and populate keywords array |
Method Summary | |
---|---|
int |
getFirstHighlightIndex()
Gets the firstHighlightIndex attribute of the KeywordsHighlight object--when keyword highlighting is performed, firstHighlightIndex is loaded with the index of the first occurrence of a keyword within the given string. |
String |
highlight(String text,
boolean addWbr)
Given any string of text, return the text with all keywords highlighted. |
String |
replace(String in,
String find)
Perform string match and replace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeywordsHighlight(String words, String highlightColor, String cssClassName)
words
- The new keywords input valuehighlightColor
- Method Detail |
---|
public String highlight(String text, boolean addWbr)
text
- addWbr
- if true, replace '/' with '/public String replace(String in, String find)
in
- input stringfind
- string to match against
public int getFirstHighlightIndex()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |