com.levigo.util.base.glazedlists.matchers
Interface MatcherEditor<E>

All Known Implementing Classes:
AbstractMatcherEditor, CompositeMatcherEditor, RangeMatcherEditor, SearchEngineTextFieldMatcherEditor, SearchEngineTextMatcherEditor, TextComponentMatcherEditor, TextMatcherEditor, ThreadedMatcherEditor, ThresholdMatcherEditor

public interface MatcherEditor<E>

A facility for modifying the Matchers which specify the behaviour of a FilterList.

Although this interface is called an Editor, the implementor should create new Matcher instances on each change rather than modifying the existing Matchers. This is because Matchers work best when they are immutable. Further information on this immutability can be found in the Matcher Javadoc.

Author:
Rob Eden, Jesse Wilson, James Lemieux

Nested Class Summary
static class MatcherEditor.Event<E>
          A MatcherEditor event models a change in the MatcherEditor that creates a new Matcher.
static interface MatcherEditor.Listener<E>
          A MatcherEditor.Listener handles changes fired by a MatcherEditor.
 
Method Summary
 void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
          Add a listener to be notified when this editor's Matcher changes.
 Matcher<E> getMatcher()
          Return the current Matcher specified by this MatcherEditor.
 void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
          Remove the listener so that it no longer receives notification when the Matcher changes.
 

Method Detail

addMatcherEditorListener

void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor's Matcher changes.


removeMatcherEditorListener

void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when the Matcher changes.


getMatcher

Matcher<E> getMatcher()
Return the current Matcher specified by this MatcherEditor.

Returns:
a non-null Matcher.


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.