public class HighlightStringListener extends Object implements LineStyleListener
StyledText.LineStyleListener| Constructor and Description |
|---|
HighlightStringListener()
Constructor of the class
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(String target,
Color fgcolor)
Specify combination of target String and the foreground color of it.
|
void |
addTarget(String target,
Color fgcolor,
int style)
Specify combination of target String and the foreground color/style of
it.
|
void |
lineGetStyle(LineStyleEvent arg0) |
public HighlightStringListener()
public void addTarget(String target, Color fgcolor)
target - target Stringfgcolor - foreground color for the target Stringpublic void addTarget(String target, Color fgcolor, int style)
target - target Stringfgcolor - foreground color for the target Stringstyle - style (SWT (BOLD, NORMAL, ITARIC)) for the target
Stringpublic void lineGetStyle(LineStyleEvent arg0)
lineGetStyle in interface LineStyleListener