Project: beanmill_1
/***************************************************
* cismet GmbH, Saarbruecken, Germany 
*              ... and it just works. 
****************************************************/
/*
  This file is part of Lumbermill. 
 
  Lumbermill 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. 
 
  Lumbermill 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 Lumbermill; if not, write to the Free 
  Software Foundation, Inc., 59 Temple Place, Suite 330, 
  Boston, MA 02111-1307 USA 
*/
 
package com.traxel.lumbermill; 
 
import com.traxel.lumbermill.event.EventListenerStatus; 
import com.traxel.lumbermill.event.EventsPanel; 
import com.traxel.lumbermill.event.TableStatus; 
import com.traxel.lumbermill.filter.FilterSetView; 
import com.traxel.lumbermill.log.LogActiveStateView; 
import com.traxel.lumbermill.log.LogStatus; 
 
import java.awt.BorderLayout; 
 
import javax.swing.JPanel; 
import javax.swing.JSplitPane; 
 
/**
 * DOCUMENT ME! 
 * 
 * @version  $Revision$, $Date$ 
 */
 
public class MillView extends JPanel { 
 
    //~ Constructors ----------------------------------------------------------- 
 
    /**
     * -------------------------------------- Instance Initialization -------------------------------------- 
     * 
     * @param  logActiveStateView  DOCUMENT ME! 
     * @param  logStatus           DOCUMENT ME! 
     * @param  tableStatus         DOCUMENT ME! 
     * @param  eventsPanel         DOCUMENT ME! 
     * @param  filterSetView       DOCUMENT ME! 
     */
 
    public MillView(final LogActiveStateView logActiveStateView, 
            final LogStatus logStatus, 
            final TableStatus tableStatus, 
            final EventsPanel eventsPanel, 
            final FilterSetView filterSetView) { 
        final JSplitPane treeEventsSplit; 
        final JPanel logStateStatusPanel; 
 
        logStateStatusPanel = new JPanel(); 
        logStateStatusPanel.add(logActiveStateView); 
        logStateStatusPanel.add(logStatus); 
        logStateStatusPanel.add(tableStatus); 
        treeEventsSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, 
                filterSetView, 
                eventsPanel); 
        setLayout(new BorderLayout()); 
        add(BorderLayout.NORTH, logStateStatusPanel); 
        add(BorderLayout.CENTER, treeEventsSplit); 
    } 
 
    //~ Methods ---------------------------------------------------------------- 
 
    /**
     * ------------------------------------- Package API ------------------------------------- 
     * 
     * @param  status  DOCUMENT ME! 
     */
 
    public void setEventListenerStatus(final EventListenerStatus status) { 
        add(BorderLayout.SOUTH, status); 
    } 
}