ca.odell.glazedlists.swing

Class SearchEngineTextFieldMatcherEditor<E>

Implemented Interfaces:
MatcherEditor<E>

public class SearchEngineTextFieldMatcherEditor<E>
extends SearchEngineTextMatcherEditor<E>

A MatcherEditor that matches Objects that contain the filter text located within a JTextField. This TextMatcherEditor is directly coupled with a JTextField that is meant to emulate a search engine's text box. This matcher is fully concrete and is expected to be used by Swing applications that want to present a text filtering interface similar to that of Google and other search engines.

The MatcherEditor registers itself as an ActionListener on the given JTextField. If this MatcherEditor must be garbage collected before the underlying JTextField, the listener can be unregistered by calling dispose().

Author:
James Lemieux

Nested Class Summary

Nested classes/interfaces inherited from class ca.odell.glazedlists.matchers.SearchEngineTextMatcherEditor<E>

SearchEngineTextMatcherEditor.Field

Field Summary

Fields inherited from class ca.odell.glazedlists.matchers.TextMatcherEditor<E>

CONTAINS, EXACT, IDENTICAL_STRATEGY, NORMALIZED_STRATEGY, REGULAR_EXPRESSION, STARTS_WITH

Fields inherited from class ca.odell.glazedlists.matchers.AbstractMatcherEditor<E>

currentMatcher

Constructor Summary

SearchEngineTextFieldMatcherEditor(JTextField textField, E> textFilterator)
Creates a TextMatcherEditor bound to the given textField with the given textFilterator.

Method Summary

void
dispose()
A cleanup method which stops this MatcherEditor from listening to the underlying JTextField, thus freeing the SearchEngineTextMatcherEditor to be garbage collected.

Methods inherited from class ca.odell.glazedlists.matchers.SearchEngineTextMatcherEditor<E>

getFields, refilter, setFields

Methods inherited from class ca.odell.glazedlists.matchers.TextMatcherEditor<E>

getCurrentTextMatcher, getMode, getStrategy, setFilterText, setFilterator, setMode, setStrategy, setTextMatcher, super E> getFilterator

Methods inherited from class ca.odell.glazedlists.matchers.AbstractMatcherEditor<E>

addMatcherEditorListener, fireChanged, fireChangedMatcher, fireConstrained, fireMatchAll, fireMatchNone, fireRelaxed, getMatcher, isCurrentlyMatchingAll, isCurrentlyMatchingNone, removeMatcherEditorListener

Constructor Details

SearchEngineTextFieldMatcherEditor

public SearchEngineTextFieldMatcherEditor(JTextField textField,
                                          E> textFilterator)
Creates a TextMatcherEditor bound to the given textField with the given textFilterator.

Method Details

dispose

public void dispose()
A cleanup method which stops this MatcherEditor from listening to the underlying JTextField, thus freeing the SearchEngineTextMatcherEditor to be garbage collected.

Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2009-07-14 22:05