Package com.vaadin.flow.router
Interface HighlightCondition<T>
-
- Type Parameters:
T
- the target type of the highlight condition
- All Superinterfaces:
Serializable
- 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.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldHighlight(T t, AfterNavigationEvent event)
Tests if the target should be highlighted based on the navigationevent
.
-
-
-
Method Detail
-
shouldHighlight
boolean shouldHighlight(T t, AfterNavigationEvent event)
Tests if the target should be highlighted based on the navigationevent
.- Parameters:
t
- the target of the highlight conditionevent
- the navigation event- Returns:
- true if the condition is met, false otherwise
-
-