ca.odell.glazedlists.matchers

Interface MatcherEditor<E>

Known Implementing Classes:
AbstractMatcherEditor<E>, CompositeMatcherEditor<E>, RangeMatcherEditor<D,extends,Comparable,E>, TextComponentMatcherEditor<E>, TextMatcherEditor<E>, ThreadedMatcherEditor<E>, ThresholdMatcherEditor<E>

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.

Authors:
Rob Eden
Jesse Wilson
James Lemieux

Nested Class Summary

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(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(Listener listener)
Remove the listener so that it no longer receives notification when the Matcher changes.

Method Details

addMatcherEditorListener

public void addMatcherEditorListener(Listener listener)

getMatcher

public Matcher getMatcher()
Returns:
a non-null Matcher.

removeMatcherEditorListener

public void removeMatcherEditorListener(Listener listener)

Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by buildd at 2008-01-04 14:38