We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.router.
Interface HighlightCondition<T>
-
Type Parameters:
T
- the target type of the highlight conditionAll Superinterfaces:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HighlightCondition<T> extends Serializable
A condition to meet to determine the highlight state of the target.
-
-
Method Summary
All Methods Modifier and Type Method and Description boolean
shouldHighlight(T t, AfterNavigationEvent event)
Tests if the target should be highlighted based on the navigation
event
.
-
-
-
Method Detail
-
shouldHighlight
boolean shouldHighlight(T t, AfterNavigationEvent event)
Tests if the target should be highlighted based on the navigation
event
.Parameters:
t
- the target of the highlight conditionevent
- the navigation eventReturns:
true if the condition is met, false otherwise
-
-