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

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


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

package org.jsimpledb.vaadin.app;

import com.vaadin.ui.Component;

import org.dellroad.stuff.vaadin7.VaadinConfigurable;
import org.jsimpledb.vaadin.SizedLabel;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Main GUI {@link com.vaadin.ui.UI} component.
 */
@SuppressWarnings("serial")
@VaadinConfigurable
public class MainUI extends AbstractUI {

    public static final String URI_PATH = "main";

    @Autowired
    private GUIConfig guiConfig;

    @Override
    protected String getTitle() {
        return "JSimpleDB Viewer";
    }

    @Override
    protected Component getTopRightLabel() {
        return new SizedLabel(this.guiConfig.getDatabaseDescription());
    }

    @Override
    protected Component buildMainPanel() {
        return new MainPanel(this.guiConfig);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy