Java tutorial
/* * 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 de.batchadmin.vaadin.ui; import org.vaadin.spring.UIScope; import org.vaadin.spring.navigator.VaadinView; import org.vaadin.spring.stuff.sidebar.FontAwesomeIcon; import org.vaadin.spring.stuff.sidebar.SideBarItem; import com.vaadin.navigator.View; import com.vaadin.navigator.ViewChangeListener; import com.vaadin.server.FontAwesome; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; /** * Example view that shows up under the Planning section in the side bar. * * @author Petter Holmstrm (petter@vaadin.com) */ @SuppressWarnings("serial") @VaadinView(name = JobsView.VIEW_NAME) @SideBarItem(sectionId = Sections.MONITORING, caption = "Jobs", order = 1) @FontAwesomeIcon(FontAwesome.ARCHIVE) @UIScope public class JobsView extends VerticalLayout implements View { public static final String VIEW_NAME = "jobs"; public JobsView() { addComponent(new Label("Jobs View")); } @Override public void enter(ViewChangeListener.ViewChangeEvent event) { } }