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.
@BrixPresenter
@BrixRoute("dashboard")
@BrixSlot(BrixSlots.BRIX_BODY_SLOT)
public class DashboardPresenter extends Presenter<DashboardView> {
// No manual view binding needed
}
@UiView
public class DashboardView extends BrixView<Element, DashboardHandlers>
implements DashboardPresenter.DashboardView {
@Handlers DashboardHandlers handlers;
}
onActivated() → use them to load data.setRoutingState(...) refreshes fields and calls onStateChanged() if active.onStateChanged() or @OnStateChanged methods to respond without reactivation.