Interface ContentFilter
public interface ContentFilter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a change listener that will be notified when the filter has changed.Returns a filtered query that filters all available content.filterContent
(MTQuery query) Returns a filtered query that filters an existing query.Returns the filter component.boolean
Returns true if there is currently any filtering being done.default boolean
void
Removes a change listener.void
Requests focus for the filter, if applicable.void
reset()
Resets the filter.void
setEditable
(boolean editable) Enables/disables editing of the filter settings.
-
Method Details
-
addChangeListener
Adds a change listener that will be notified when the filter has changed. -
removeChangeListener
Removes a change listener. -
getFilterComponent
JComponent getFilterComponent()Returns the filter component. -
isFiltering
boolean isFiltering()Returns true if there is currently any filtering being done. -
isSearchTimerRunning
default boolean isSearchTimerRunning()- Returns:
- true if the search timer is running for implementations that have search timer. False by default.
-
filterContent
MTQuery filterContent()Returns a filtered query that filters all available content. -
filterContent
Returns a filtered query that filters an existing query.- Parameters:
query
- The original query to filter.
-
reset
void reset()Resets the filter. -
setEditable
void setEditable(boolean editable) Enables/disables editing of the filter settings. -
requestFocus
void requestFocus()Requests focus for the filter, if applicable.
-