Map routing parameters into presenter fields with annotations. Fields are set before activation and reveal, then refreshed whenever the token changes while the presenter is active.
@PathParameter("id") String id;
@QueryParameter("filter") String filter;
@Override
protected void onActivated() {
view.load(id, filter);
}
@Override
protected void onStateChanged() {
view.load(id, filter);
}
onActivated() → use them to load data.setRoutingState(...) refreshes fields and calls onStateChanged() if active.onStateChanged() or @OnStateChanged methods to respond without reactivation.