Class CompileSearchTextDecorator
java.lang.Object
org.openstreetmap.josm.gui.widgets.CompileSearchTextDecorator
- All Implemented Interfaces:
EventListener,DocumentListener
Decorates a text component with an execution to the search compiler. Afterwards, a
"filter" property change
will be fired and the compiled search can be accessed with getMatch().-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SearchCompiler.Matchprivate final Stringprivate final JTextComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic CompileSearchTextDecoratorDecorates a text component with an execution to the search compiler.getMatch()Returns the compiled searchvoidvoidprivate void
-
Field Details
-
textComponent
-
originalToolTipText
-
filter
-
-
Constructor Details
-
CompileSearchTextDecorator
-
-
Method Details
-
decorate
Decorates a text component with an execution to the search compiler. Afterwards, a"filter"property change will be fired and the compiled search can be accessed withgetMatch().- Parameters:
f- the text component to decorate- Returns:
- an instance of the decorator in order to access the compiled search via
getMatch()
-
setFilter
-
getMatch
Returns the compiled search- Returns:
- the compiled search
-
insertUpdate
- Specified by:
insertUpdatein interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-
changedUpdate
- Specified by:
changedUpdatein interfaceDocumentListener
-