Class CompileSearchTextDecorator

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.DocumentListener

    public final class CompileSearchTextDecorator
    extends java.lang.Object
    implements javax.swing.event.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().
    • Method Detail

      • decorate

        public static CompileSearchTextDecorator decorate​(javax.swing.text.JTextComponent f)
        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().
        Parameters:
        f - the text component to decorate
        Returns:
        an instance of the decorator in order to access the compiled search via getMatch()
      • insertUpdate

        public void insertUpdate​(javax.swing.event.DocumentEvent e)
        Specified by:
        insertUpdate in interface javax.swing.event.DocumentListener
      • removeUpdate

        public void removeUpdate​(javax.swing.event.DocumentEvent e)
        Specified by:
        removeUpdate in interface javax.swing.event.DocumentListener
      • changedUpdate

        public void changedUpdate​(javax.swing.event.DocumentEvent e)
        Specified by:
        changedUpdate in interface javax.swing.event.DocumentListener