Class TextBasedFilter<X>
java.lang.Object
gg.xp.xivsupport.gui.tables.filters.TextBasedFilter<X>
- All Implemented Interfaces:
VisualFilter<X>
- Direct Known Subclasses:
ActLineFilter
,EventAbilityOrBuffFilter
,EventClassFilterFilter
,IdOrNameFilter
,SystemLogLoggerNameFilter
,SystemLogTextFilter
,SystemLogThreadFilter
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final Runnable
protected static final boolean
protected final Color
protected final Color
protected final JTextField
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
What to visually displaygetFilterForInput
(@NotNull String input) boolean
passesFilter
(X item) Whether it passes the filterprotected boolean
Meant to be overridden.
-
Field Details
-
textBox
-
filterUpdatedCallback
-
textExtractor
-
originalBackground
-
currentFilter
-
validationError
protected boolean validationError -
fieldLabel
-
ignoreCase
protected static final boolean ignoreCase- See Also:
-
invalidBackground
-
-
Constructor Details
-
TextBasedFilter
-
-
Method Details
-
boxToolTip
-
getFilterForInput
-
preFilter
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.
- Parameters:
item
- The instance to filter- Returns:
- whether to let the instance proceed to the main filter
-
passesFilter
Description copied from interface:VisualFilter
Whether it passes the filter- Specified by:
passesFilter
in interfaceVisualFilter<X>
- Parameters:
item
- The instance to filter- Returns:
- Whether it passed
-
getComponent
Description copied from interface:VisualFilter
What to visually display- Specified by:
getComponent
in interfaceVisualFilter<X>
- Returns:
- a component to display
-