All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mateu.mdd.vaadin.controllers.firstLevel.ModuleController Maven / Gradle / Ivy

There is a newer version: 1.1.60
Show newest version
package io.mateu.mdd.vaadin.controllers.firstLevel;

import io.mateu.mdd.shared.interfaces.IModule;
import io.mateu.mdd.vaadin.components.app.views.firstLevel.FakeComponent;
import io.mateu.mdd.vaadin.controllers.secondLevel.ActionController;
import io.mateu.mdd.vaadin.navigation.ViewStack;

public class ModuleController extends ActionController {
    private final IModule module;

    public ModuleController(IModule module) {
        this.module = module;
    }

    @Override
    public Object apply(ViewStack stack, String path, String step, String cleanStep, String remaining) throws Throwable {
        if ("".equals(step)) {
            return module;
        }
        return super.apply(stack, path, step, cleanStep, remaining);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy