/*
 * ProcessoWindow.java
 *
 * Created on March 21, 2007, 9:06 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package siprp.medicina.processo;
//
//import info.clearthought.layout.TableLayout;
//import info.clearthought.layout.TableLayoutConstraints;
//
//import java.awt.Dimension;
//
//import javax.swing.BorderFactory;
//import javax.swing.JFrame;
//import javax.swing.SwingUtilities;
//
//import siprp.medicina.processo.detalhes.DetalhesConsultaPanel;
//import siprp.medicina.processo.detalhes.DetalhesProcessoPanel;
//import siprp.medicina.processo.estrutura.EstruturaProcessoPanel;
//
//import com.evolute.utils.tracker.TrackableWindow;
//
///**
// *
// * @author fpalma
// */
//public class ProcessoWindow extends JFrame
//		implements TrackableWindow
//{
//	private static final long serialVersionUID = 1L;
//
//	public static final String TITLE = "Processos de trabalhadores";
//	
//	private ProcessoUpperPanel upperPanel;
//	private EstruturaProcessoPanel estruturaPanel;
//	private ProcessoPanel processoPanel;
//	private DetalhesProcessoPanel detalhesPanel;
//	
//	/** Creates a new instance of ProcessoWindow */
//	public ProcessoWindow()
//		throws Exception
//	{
//		setupComponents();
//	}
//	
//	private void setupComponents()
//		throws Exception
//	{
//		setSize( 1024, 700 );
//		setTitle( TITLE );
//		
//		upperPanel = new ProcessoUpperPanel();
//		upperPanel.setPreferredSize( new Dimension( 1024, 200 ) );
//		estruturaPanel = new EstruturaProcessoPanel();
//		processoPanel = new ProcessoPanel( this );
//		processoPanel.setBorder( BorderFactory.createEtchedBorder() );
//		detalhesPanel = new DetalhesProcessoPanel( this );
//		detalhesPanel.setBorder( BorderFactory.createEtchedBorder() );
//		double cols[] =
//				new double[]{ TableLayout.FILL, TableLayout.PREFERRED };
//		double rows[] = 
//				new double[]{ TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.FILL };
//		
//		TableLayout tableLayout = new TableLayout( cols, rows );
//		setLayout( tableLayout );
//		
//		add( upperPanel, new TableLayoutConstraints( 0, 0, 1, 0 ) );
//		add( estruturaPanel, new TableLayoutConstraints( 0, 1, 0, 2 ) );
//		add( processoPanel, new TableLayoutConstraints( 1, 1 ) );
////		add( detalhesPanel, new TableLayoutConstraints( 1, 2 ) );
//		add( new DetalhesConsultaPanel( this ), new TableLayoutConstraints( 1, 2 ) );
//		new ProcessoController( upperPanel, estruturaPanel, processoPanel, detalhesPanel );
//	}
//	
//	public void refresh()
//	{
//	}
//
//	public void open()
//	{
//		setVisible( true );
//	}
//	
//	public void close()
//	{
//		SwingUtilities.invokeLater( new Runnable() {
//			public void run()
//			{
//				setVisible( false );
//				dispose();
//			}
//		} );
//	}
//
//	public boolean closeIfPossible()
//	{
//		close();
//		return true;
//	}
//}
