Class FilterRowUtils


  • public final class FilterRowUtils
    extends Object
    • Method Detail

      • 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
      • setMatchOperation

        public static <T> void setMatchOperation​(ca.odell.glazedlists.matchers.ThresholdMatcherEditor<T,​Object> thresholdMatcherEditor,
                                                 ParseResult.MatchType matchType)
        Set the Match operation on the ThresholdMatcherEditor corresponding to the ParseResult.MatchType. This must be done this way since ThresholdMatcherEditor.MatcherEditor is private.
        Type Parameters:
        T - type of the row object
        Parameters:
        thresholdMatcherEditor - The ThresholdMatcherEditor on which the match operation should be applied.
        matchType - The match type to apply.