Class EventAbilityOrBuffFilter

java.lang.Object
gg.xp.xivsupport.gui.tables.filters.TextBasedFilter<Object>
gg.xp.xivsupport.gui.tables.filters.EventAbilityOrBuffFilter
All Implemented Interfaces:
VisualFilter<Object>

public class EventAbilityOrBuffFilter extends TextBasedFilter<Object>
  • Constructor Details

    • EventAbilityOrBuffFilter

      public EventAbilityOrBuffFilter(Runnable filterUpdatedCallback)
  • Method Details

    • boxToolTip

      protected String boxToolTip()
      Overrides:
      boxToolTip in class TextBasedFilter<Object>
    • getFilterForInput

      @Nullable protected @Nullable Predicate<Object> getFilterForInput(@NotNull @NotNull String input)
      Overrides:
      getFilterForInput in class TextBasedFilter<Object>
    • preFilter

      public boolean preFilter(Object item)
      Description copied from class: TextBasedFilter
      Meant to be overridden. Pre-filter items in a smart way. Basically, allow this filter to specify whether it actually cares about a particular instance. If there is a filter set, then any instance that returns false when passed into this will fail automatically. If there is no filter set, everything will pass.

      If there is no filter whatsoever, let everything pass.

      If there is any filter, then apply this pre-filter.

      Overrides:
      preFilter in class TextBasedFilter<Object>
      Parameters:
      item - The instance to filter
      Returns:
      whether to let the instance proceed to the main filter