org.hip.vif.app.Forum.java Source code

Java tutorial

Introduction

Here is the source code for org.hip.vif.app.Forum.java

Source

/*
   This package is part of the application VIF.
   Copyright (C) 2011, Benno Luthiger
    
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
    
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
    
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
package org.hip.vif.app;

import org.hip.vif.web.dash.ForumDashBoard;
import org.hip.vif.web.layout.VIFApplication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.vaadin.ui.Component;
import com.vaadin.ui.Window;

/**
 * The VIF forum application, i.e. the Vaadin 'servlet'.
 *  
 * @author Luthiger
 */
@SuppressWarnings("serial")
public class Forum extends VIFApplication {
    private final static Logger LOG = LoggerFactory.getLogger(Forum.class);

    /* (non-Javadoc)
     * @see com.vaadin.Application#init()
     */
    @Override
    public void init() {
        LOG.debug("VIF Forum application initialized.");

        Window lWindow = new Window("VIF Forum");
        setMainWindow(lWindow);
        afterInit(lWindow);
    }

    @Override
    protected Component getAfterLoginView() {
        return new ForumDashBoard(this);
    }

    @Override
    public boolean getIsAdmin() {
        return false;
    }

}