ca.odell.glazedlists.matchers
Interface MatcherEditor

All Known Implementing Classes:
AbstractMatcherEditor, CompositeMatcherEditor, TextComponentMatcherEditor, TextMatcherEditor, TextWidgetMatcherEditor, ThreadedMatcherEditor, ThresholdMatcherEditor

public interface MatcherEditor

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

Method Detail

addMatcherEditorListener

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


removeMatcherEditorListener

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


getMatcher

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

Returns:
a non-null Matcher.


Glazed Lists, Copyright © 2003-2005 publicobject.com, O'Dell Engineering.
Generated 2005-09-24 12:46