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

org.jsimpledb.vaadin.app.GUIUIProvider Maven / Gradle / Ivy


/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package org.jsimpledb.vaadin.app;

import com.vaadin.server.UIClassSelectionEvent;
import com.vaadin.server.UIProvider;
import com.vaadin.ui.UI;

/**
 * {@link UIProvider} for this GUI.
 */
@SuppressWarnings("serial")
public class GUIUIProvider extends UIProvider {

    @Override
    public Class getUIClass(UIClassSelectionEvent event) {

        // Get requested URI path
        String pathInfo = event.getRequest().getPathInfo();
        if (pathInfo != null)
            pathInfo = pathInfo.substring(1);

        // Look for well-known patterns... TODO

        // Default to main root
        return MainUI.class;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy