ca.odell.glazedlists.matchers

Class CompositeMatcherEditor<E>

Implemented Interfaces:
MatcherEditor<E>

public class CompositeMatcherEditor<E>
extends AbstractMatcherEditor<E>

A MatcherEditor composed of zero or more delegate MatcherEditors.
Authors:
Rob Eden
Jesse Wilson

Field Summary

static int
AND
require all matchers in the MatcherEditor to match
static int
OR
require any matchers in the MatcherEditor to match

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

currentMatcher

Constructor Summary

CompositeMatcherEditor()
Create a CompositeMatcherEditor.
CompositeMatcherEditor(EventList> matcherEditors)
Create a CompositeMatcherEditor that creates Matchers from the union of the specified EventList of MatcherEditors.

Method Summary

EventList>
getMatcherEditors()
Get the EventList of MatcherEditors that make up this CompositeMatcherEditor.
int
getMode()
Get the match mode for this CompositeMatcherEditor.
void
setMode(int mode)
Set the match mode for this CompositeMatcherEditor.

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

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

Field Details

AND

public static final int AND
Field Value:
42

OR

public static final int OR
Field Value:
24

Constructor Details

CompositeMatcherEditor

public CompositeMatcherEditor()

CompositeMatcherEditor

public CompositeMatcherEditor(EventList> matcherEditors)
Create a CompositeMatcherEditor that creates Matchers from the union of the specified EventList of MatcherEditors. The EventList must not contain any null values and all elements must implement MatcherEditor.

Method Details

getMatcherEditors

public EventList> getMatcherEditors()
Get the EventList of MatcherEditors that make up this CompositeMatcherEditor. The EventList must never contain any null values and all elements must implement MatcherEditor.

getMode

public int getMode()
Returns:
either CompositeMatcherEditor.AND for match all CompositeMatcherEditor.OR for match any.

setMode

public void setMode(int mode)
Parameters:
mode - either CompositeMatcherEditor.AND to match all CompositeMatcherEditor.OR to match any.

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