Class FilterRowUtils
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.FilterRowUtils
-
public final class FilterRowUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<ParseResult>
parse(String string, String textDelimiter, TextMatchingMode textMatchingMode)
static ParseResult
parseExpression(String string)
Parses the text entered in the filter row.static ParseResult
parseLiteral(String string)
static <T> void
setMatchOperation(ca.odell.glazedlists.matchers.ThresholdMatcherEditor<T,Object> thresholdMatcherEditor, ParseResult.MatchType matchType)
Set the Match operation on theThresholdMatcherEditor
corresponding to theParseResult.MatchType
.
-
-
-
Method Detail
-
parse
public static List<ParseResult> parse(String string, String textDelimiter, TextMatchingMode textMatchingMode)
-
parseExpression
public static ParseResult parseExpression(String string)
Parses the text entered in the filter row. The text is parsed to figure out the type of match operation (<, > etc.) and the value next to it.- Parameters:
string
- entered by the user in the filter row text box- Returns:
- the result of the parse operation
-
parseLiteral
public static ParseResult parseLiteral(String string)
-
setMatchOperation
public static <T> void setMatchOperation(ca.odell.glazedlists.matchers.ThresholdMatcherEditor<T,Object> thresholdMatcherEditor, ParseResult.MatchType matchType)
Set the Match operation on theThresholdMatcherEditor
corresponding to theParseResult.MatchType
. This must be done this way since ThresholdMatcherEditor.MatcherEditor is private.- Type Parameters:
T
- type of the row object- Parameters:
thresholdMatcherEditor
- TheThresholdMatcherEditor
on which the match operation should be applied.matchType
- The match type to apply.
-
-