Class DefaultColumnFilterModel<R,​C,​T>

    • Constructor Detail

      • DefaultColumnFilterModel

        public DefaultColumnFilterModel​(C columnIdentifier,
                                        Class<T> columnClass,
                                        char wildcard)
        Instantiates a DefaultColumnFilterModel.
        Parameters:
        columnIdentifier - the column identifier
        columnClass - the column class
        wildcard - the character to use as wildcard
      • DefaultColumnFilterModel

        public DefaultColumnFilterModel​(C columnIdentifier,
                                        Class<T> columnClass,
                                        char wildcard,
                                        Format format,
                                        String dateTimePattern)
        Instantiates a DefaultColumnFilterModel.
        Parameters:
        columnIdentifier - the column identifier
        columnClass - the column class
        wildcard - the character to use as wildcard
        format - the format to use when presenting the values, numbers for example
        dateTimePattern - the date/time format pattern to use in case of a date/time column
    • Method Detail

      • setComparableFunction

        public void setComparableFunction​(Function<R,​Comparable<T>> comparableFunction)
        Description copied from interface: ColumnFilterModel
        The default implementation simply returns the row, assuming it is a Comparable instance.
        Specified by:
        setComparableFunction in interface ColumnFilterModel<R,​C,​T>
        Parameters:
        comparableFunction - the function converting from a Row object to a Comparable for the underlying column
      • include

        public boolean include​(R row)
        Specified by:
        include in interface ColumnFilterModel<R,​C,​T>
        Parameters:
        row - the row
        Returns:
        true if the row should be included or if this model is not enabled