Package org.vaadin.spring.samples.sidebar

Source Code of org.vaadin.spring.samples.sidebar.ReportingView3

/*
* Copyright 2014 The original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.vaadin.spring.samples.sidebar;

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import org.vaadin.spring.UIScope;
import org.vaadin.spring.navigator.VaadinView;
import org.vaadin.spring.stuff.sidebar.SideBarItem;
import org.vaadin.spring.stuff.sidebar.ThemeIcon;

/**
* Example view that shows up under the Reporting section in the side bar.
*
* @author Petter Holmström (petter@vaadin.com)
*/
@VaadinView(name = ReportingView3.VIEW_NAME)
@SideBarItem(sectionId = Sections.REPORTING,
        caption = "View 3")
@ThemeIcon("../runo/icons/64/help.png")
@UIScope
public class ReportingView3 extends VerticalLayout implements View {

    public static final String VIEW_NAME = "reporting3";

    public ReportingView3() {
        addComponent(new Label("Reporting View 3"));
    }

    @Override
    public void enter(ViewChangeListener.ViewChangeEvent event) {

    }
}
TOP

Related Classes of org.vaadin.spring.samples.sidebar.ReportingView3

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.