com.levigo.util.base.glazedlists.matchers
Class CompositeMatcherEditor<E>

java.lang.Object
  extended by com.levigo.util.base.glazedlists.matchers.AbstractMatcherEditor<E>
      extended by com.levigo.util.base.glazedlists.matchers.CompositeMatcherEditor<E>
All Implemented Interfaces:
MatcherEditor<E>

public class CompositeMatcherEditor<E>
extends AbstractMatcherEditor<E>

A MatcherEditor composed of zero or more delegate MatcherEditors.

Author:
Rob Eden, Jesse Wilson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.levigo.util.base.glazedlists.matchers.MatcherEditor
MatcherEditor.Event<E>, MatcherEditor.Listener<E>
 
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 com.levigo.util.base.glazedlists.matchers.AbstractMatcherEditor
currentMatcher
 
Constructor Summary
CompositeMatcherEditor()
          Create a CompositeMatcherEditor.
CompositeMatcherEditor(EventList<MatcherEditor<E>> matcherEditors)
          Create a CompositeMatcherEditor that creates Matchers from the union of the specified EventList of MatcherEditors.
 
Method Summary
 EventList<MatcherEditor<E>> 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 com.levigo.util.base.glazedlists.matchers.AbstractMatcherEditor
addMatcherEditorListener, fireChanged, fireChangedMatcher, fireConstrained, fireMatchAll, fireMatchNone, fireRelaxed, getMatcher, isCurrentlyMatchingAll, isCurrentlyMatchingNone, removeMatcherEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AND

public static final int AND
require all matchers in the MatcherEditor to match

See Also:
Constant Field Values

OR

public static final int OR
require any matchers in the MatcherEditor to match

See Also:
Constant Field Values
Constructor Detail

CompositeMatcherEditor

public CompositeMatcherEditor(EventList<MatcherEditor<E>> 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.


CompositeMatcherEditor

public CompositeMatcherEditor()
Create a CompositeMatcherEditor.

Method Detail

getMatcherEditors

public EventList<MatcherEditor<E>> 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.


setMode

public void setMode(int mode)
Set the match mode for this CompositeMatcherEditor.

Parameters:
mode - either CompositeMatcherEditor.AND to match all CompositeMatcherEditor.OR to match any.

getMode

public int getMode()
Get the match mode for this CompositeMatcherEditor.

Returns:
either CompositeMatcherEditor.AND for match all CompositeMatcherEditor.OR for match any.


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.