org.lunifera.examples.runtime.gyrex.vaadin.Vaadin7DemoUI.java Source code

Java tutorial

Introduction

Here is the source code for org.lunifera.examples.runtime.gyrex.vaadin.Vaadin7DemoUI.java

Source

/*******************************************************************************
 * Copyright (c) 2012 by committers of lunifera.org
 * 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *    Florian Pirchner - initial API and implementation
 *    
 *******************************************************************************/
package org.lunifera.examples.runtime.gyrex.vaadin;

import org.lunifera.runtime.web.vaadin.common.OSGiUI;

import com.vaadin.annotations.Theme;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;

/**
 * Specify the class name after the factory name.
 */
@Theme(Reindeer.THEME_NAME)
public class Vaadin7DemoUI extends OSGiUI {

    private static final long serialVersionUID = 1L;

    // private ICEPush push;

    @Override
    public void init(VaadinRequest request) {

        // push = new ICEPush();
        // push.extend(this);

        VerticalLayout layout = new VerticalLayout(new Label("Hi - that's the amazing vaadin 7 demo UI!"));
        layout.setStyleName(Reindeer.LAYOUT_BLUE);
        layout.setSizeFull();
        layout.setMargin(true);
        setContent(layout);
    }
}