ca.odell.glazedlists.matchers
Class AbstractMatcherEditorListenerSupport<E>

java.lang.Object
  extended by ca.odell.glazedlists.matchers.AbstractMatcherEditorListenerSupport<E>
All Implemented Interfaces:
MatcherEditor<E>
Direct Known Subclasses:
AbstractMatcherEditor, ThreadedMatcherEditor

public abstract class AbstractMatcherEditorListenerSupport<E>
extends java.lang.Object
implements MatcherEditor<E>

Basic building block for MatcherEditor implementations that handles the details of dealing with registered MatcherEditor.Listeners. In addition, it provides helper methods for creating matcher events.

Author:
Holger Brands

Nested Class Summary
 
Nested classes/interfaces inherited from interface ca.odell.glazedlists.matchers.MatcherEditor
MatcherEditor.Event<E>, MatcherEditor.Listener<E>
 
Constructor Summary
AbstractMatcherEditorListenerSupport()
           
 
Method Summary
 void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
          Add a listener to be notified when this editor's Matcher changes.
protected  MatcherEditor.Event<E> createChangedEvent(Matcher<E> matcher)
          creates a changed event.
protected  MatcherEditor.Event<E> createConstrainedEvent(Matcher<E> matcher)
          creates a constrained event.
protected  MatcherEditor.Event<E> createMatchAllEvent(Matcher<E> matcher)
          creates a match all event.
protected  MatcherEditor.Event<E> createMatchNoneEvent(Matcher<E> matcher)
          creates a match none event.
protected  MatcherEditor.Event<E> createRelaxedEvent(Matcher<E> matcher)
          creates a relaxed event.
protected  void fireChangedMatcher(MatcherEditor.Event<E> event)
          delivers the given matcher event to all registered listeners.
 void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
          Remove the listener so that it no longer receives notification when the Matcher changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.odell.glazedlists.matchers.MatcherEditor
getMatcher
 

Constructor Detail

AbstractMatcherEditorListenerSupport

public AbstractMatcherEditorListenerSupport()
Method Detail

addMatcherEditorListener

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

Specified by:
addMatcherEditorListener in interface MatcherEditor<E>

removeMatcherEditorListener

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

Specified by:
removeMatcherEditorListener in interface MatcherEditor<E>

fireChangedMatcher

protected final void fireChangedMatcher(MatcherEditor.Event<E> event)
delivers the given matcher event to all registered listeners.


createChangedEvent

protected final MatcherEditor.Event<E> createChangedEvent(Matcher<E> matcher)
creates a changed event.


createConstrainedEvent

protected final MatcherEditor.Event<E> createConstrainedEvent(Matcher<E> matcher)
creates a constrained event.


createRelaxedEvent

protected final MatcherEditor.Event<E> createRelaxedEvent(Matcher<E> matcher)
creates a relaxed event.


createMatchNoneEvent

protected final MatcherEditor.Event<E> createMatchNoneEvent(Matcher<E> matcher)
creates a match none event.


createMatchAllEvent

protected final MatcherEditor.Event<E> createMatchAllEvent(Matcher<E> matcher)
creates a match all event.



Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2013-07-04 20:55