/*
* 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 = ReportingView1.VIEW_NAME)
@SideBarItem(sectionId = Sections.REPORTING,
caption = "View 1")
@ThemeIcon("../runo/icons/64/folder.png")
@UIScope
public class ReportingView1 extends VerticalLayout implements View {
public static final String VIEW_NAME = "reporting1";
public ReportingView1() {
addComponent(new Label("Reporting View 1"));
}
@Override
public void enter(ViewChangeListener.ViewChangeEvent event) {
}
}