public final class CompileSearchTextDecorator extends Object implements DocumentListener
"filter"
property change
will be fired and the compiled search can be accessed with getMatch()
.Modifier and Type | Field and Description |
---|---|
private SearchCompiler.Match |
filter |
private String |
originalToolTipText |
private JTextComponent |
textComponent |
Modifier | Constructor and Description |
---|---|
private |
CompileSearchTextDecorator(JTextComponent textComponent) |
Modifier and Type | Method and Description |
---|---|
void |
changedUpdate(DocumentEvent e) |
static CompileSearchTextDecorator |
decorate(JTextComponent f)
Decorates a text component with an execution to the search compiler.
|
SearchCompiler.Match |
getMatch()
Returns the compiled search
|
void |
insertUpdate(DocumentEvent e) |
void |
removeUpdate(DocumentEvent e) |
private void |
setFilter() |
private final JTextComponent textComponent
private final String originalToolTipText
private SearchCompiler.Match filter
private CompileSearchTextDecorator(JTextComponent textComponent)
public static CompileSearchTextDecorator decorate(JTextComponent f)
"filter"
property change
will be fired and the compiled search can be accessed with getMatch()
.f
- the text component to decorategetMatch()
private void setFilter()
public SearchCompiler.Match getMatch()
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
public void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener