Class Filter<T>

  • Type Parameters:
    T -
    Direct Known Subclasses:
    LocationFilter, OnlyPortsFilter

    public abstract class Filter<T>
    extends Object
    Functional interface intended to be used to create filters that will retrieve data to be placed in the page after a search result or a static filter.
    Author:
    Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
    • Field Detail

      • name

        protected String name
        The filter's name
    • Constructor Detail

      • Filter

        public Filter()
    • Method Detail

      • appliesTo

        public abstract String[] appliesTo()
        Returns the class whose instances the view applies to.
        Returns:
        Abstract super classes (such as ViewableObject) are also supported.
      • callBack

        public abstract com.vaadin.flow.component.Component callBack()
        used to retrieves the data that will used to create the content in the page when the filter is used
        Returns:
        a Vaadin component