Package ca.odell.glazedlists.matchers
Class CompositeMatcherEditor<E>
- java.lang.Object
-
- ca.odell.glazedlists.matchers.AbstractMatcherEditorListenerSupport<E>
-
- ca.odell.glazedlists.matchers.AbstractMatcherEditor<E>
-
- ca.odell.glazedlists.matchers.CompositeMatcherEditor<E>
-
- All Implemented Interfaces:
MatcherEditor<E>
public class CompositeMatcherEditor<E> extends AbstractMatcherEditor<E>
AMatcherEditor
composed of zero or more delegateMatcherEditor
s.- Author:
- Rob Eden, Jesse Wilson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ca.odell.glazedlists.matchers.MatcherEditor
MatcherEditor.Event<E>, MatcherEditor.Listener<E>
-
-
Field Summary
Fields Modifier and Type Field Description static int
AND
require all matchers in theMatcherEditor
to matchstatic int
OR
require any matchers in theMatcherEditor
to match
-
Constructor Summary
Constructors Constructor Description CompositeMatcherEditor()
Create aCompositeMatcherEditor
.CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)
Create aCompositeMatcherEditor
that creates Matchers from the union of the specifiedEventList
ofMatcherEditor
s.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventList<MatcherEditor<E>>
getMatcherEditors()
int
getMode()
Get the match mode for thisCompositeMatcherEditor
.void
setMode(int mode)
Set the match mode for thisCompositeMatcherEditor
.-
Methods inherited from class ca.odell.glazedlists.matchers.AbstractMatcherEditor
fireChanged, fireConstrained, fireMatchAll, fireMatchNone, fireRelaxed, getMatcher, isCurrentlyMatchingAll, isCurrentlyMatchingNone
-
Methods inherited from class ca.odell.glazedlists.matchers.AbstractMatcherEditorListenerSupport
addMatcherEditorListener, createChangedEvent, createConstrainedEvent, createMatchAllEvent, createMatchNoneEvent, createRelaxedEvent, fireChangedMatcher, removeMatcherEditorListener
-
-
-
-
Field Detail
-
AND
public static final int AND
require all matchers in theMatcherEditor
to match- See Also:
- Constant Field Values
-
OR
public static final int OR
require any matchers in theMatcherEditor
to match- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompositeMatcherEditor
public CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)
Create aCompositeMatcherEditor
that creates Matchers from the union of the specifiedEventList
ofMatcherEditor
s. TheEventList
must not contain anynull
values and all elements must implementMatcherEditor
.
-
CompositeMatcherEditor
public CompositeMatcherEditor()
Create aCompositeMatcherEditor
.
-
-
Method Detail
-
getMatcherEditors
public EventList<MatcherEditor<E>> getMatcherEditors()
Get theEventList
ofMatcherEditor
s that make up thisCompositeMatcherEditor
. TheEventList
must never contain anynull
values and all elements must implementMatcherEditor
.
-
setMode
public void setMode(int mode)
Set the match mode for thisCompositeMatcherEditor
.- Parameters:
mode
- eitherCompositeMatcherEditor.AND
to match allCompositeMatcherEditor.OR
to match any.
-
getMode
public int getMode()
Get the match mode for thisCompositeMatcherEditor
.- Returns:
- either
CompositeMatcherEditor.AND
for match allCompositeMatcherEditor.OR
for match any.
-
-