Search in sources :

Example 1 with HeaderContextChangeEvent

use of de.catma.ui.events.HeaderContextChangeEvent in project catma by forTEXT.

the class MainView method handleRouteToDashboard.

@Override
public void handleRouteToDashboard(RouteToDashboardEvent routeToDashboardEvent) {
    closeViews();
    if (isNewTarget(routeToDashboardEvent.getClass())) {
        setContent(new DashboardView(projectManager, remoteGitManagerRestricted, eventBus));
        viewSection.addStyleName("no-margin-view-section");
        eventBus.post(new HeaderContextChangeEvent());
        currentRoute = routeToDashboardEvent.getClass();
    }
}
Also used : HeaderContextChangeEvent(de.catma.ui.events.HeaderContextChangeEvent) DashboardView(de.catma.ui.module.dashboard.DashboardView)

Example 2 with HeaderContextChangeEvent

use of de.catma.ui.events.HeaderContextChangeEvent in project catma by forTEXT.

the class ProjectView method setProjectReference.

/**
 * handler for project selection
 */
public void setProjectReference(ProjectReference projectReference) {
    this.projectReference = projectReference;
    eventBus.post(new HeaderContextChangeEvent(projectReference.getName()));
    initProject(projectReference);
}
Also used : HeaderContextChangeEvent(de.catma.ui.events.HeaderContextChangeEvent)

Aggregations

HeaderContextChangeEvent (de.catma.ui.events.HeaderContextChangeEvent)2 DashboardView (de.catma.ui.module.dashboard.DashboardView)1