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>
AMatcherEditorcomposed of zero or more delegateMatcherEditors.- 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 intANDrequire all matchers in theMatcherEditorto matchstatic intORrequire any matchers in theMatcherEditorto match
-
Constructor Summary
Constructors Constructor Description CompositeMatcherEditor()Create aCompositeMatcherEditor.CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)Create aCompositeMatcherEditorthat creates Matchers from the union of the specifiedEventListofMatcherEditors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventList<MatcherEditor<E>>getMatcherEditors()intgetMode()Get the match mode for thisCompositeMatcherEditor.voidsetMode(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 theMatcherEditorto match- See Also:
- Constant Field Values
-
OR
public static final int OR
require any matchers in theMatcherEditorto match- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompositeMatcherEditor
public CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)
Create aCompositeMatcherEditorthat creates Matchers from the union of the specifiedEventListofMatcherEditors. TheEventListmust not contain anynullvalues and all elements must implementMatcherEditor.
-
CompositeMatcherEditor
public CompositeMatcherEditor()
Create aCompositeMatcherEditor.
-
-
Method Detail
-
getMatcherEditors
public EventList<MatcherEditor<E>> getMatcherEditors()
Get theEventListofMatcherEditors that make up thisCompositeMatcherEditor. TheEventListmust never contain anynullvalues and all elements must implementMatcherEditor.
-
setMode
public void setMode(int mode)
Set the match mode for thisCompositeMatcherEditor.- Parameters:
mode- eitherCompositeMatcherEditor.ANDto match allCompositeMatcherEditor.ORto match any.
-
getMode
public int getMode()
Get the match mode for thisCompositeMatcherEditor.- Returns:
- either
CompositeMatcherEditor.ANDfor match allCompositeMatcherEditor.ORfor match any.
-
-