forked from Coded/SIPRP
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							91 lines
						
					
					
						
							2.0 KiB
						
					
					
				
			
		
		
	
	
							91 lines
						
					
					
						
							2.0 KiB
						
					
					
				/*
 | 
						|
 * 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 com.evolute.utils.tracker.TrackableWindow;
 | 
						|
import info.clearthought.layout.TableLayout;
 | 
						|
import info.clearthought.layout.TableLayoutConstraints;
 | 
						|
import javax.swing.BorderFactory;
 | 
						|
import javax.swing.JFrame;
 | 
						|
import javax.swing.JPanel;
 | 
						|
import javax.swing.SwingUtilities;
 | 
						|
import siprp.medicina.processo.estrutura.EstruturaProcessoPanel;
 | 
						|
 | 
						|
/**
 | 
						|
 *
 | 
						|
 * @author fpalma
 | 
						|
 */
 | 
						|
public class ProcessoWindow extends JFrame
 | 
						|
		implements TrackableWindow
 | 
						|
{
 | 
						|
	public static final String TITLE = "Processos de trabalhadores";
 | 
						|
	
 | 
						|
	private EstruturaProcessoPanel estruturaPanel;
 | 
						|
	private ProcessoPanel processoPanel;
 | 
						|
	private JPanel detalhesPanel;
 | 
						|
	
 | 
						|
	/** Creates a new instance of ProcessoWindow */
 | 
						|
	public ProcessoWindow()
 | 
						|
		throws Exception
 | 
						|
	{
 | 
						|
		setupComponents();
 | 
						|
	}
 | 
						|
	
 | 
						|
	private void setupComponents()
 | 
						|
		throws Exception
 | 
						|
	{
 | 
						|
		setSize( 1024, 768 );
 | 
						|
		setTitle( TITLE );
 | 
						|
		
 | 
						|
		estruturaPanel = new EstruturaProcessoPanel();
 | 
						|
		processoPanel = new ProcessoPanel();
 | 
						|
		processoPanel.setBorder( BorderFactory.createEtchedBorder() );
 | 
						|
		detalhesPanel = new JPanel();
 | 
						|
		detalhesPanel.setBorder( BorderFactory.createEtchedBorder() );
 | 
						|
		double cols[] =
 | 
						|
				new double[]{ TableLayout.FILL, TableLayout.PREFERRED };
 | 
						|
		double rows[] = 
 | 
						|
				new double[]{ TableLayout.PREFERRED, TableLayout.FILL };
 | 
						|
		
 | 
						|
		TableLayout tableLayout = new TableLayout( cols, rows );
 | 
						|
		setLayout( tableLayout );
 | 
						|
		
 | 
						|
		add( estruturaPanel, new TableLayoutConstraints( 0, 0, 0, 1 ) );
 | 
						|
		add( processoPanel, new TableLayoutConstraints( 1, 0 ) );
 | 
						|
		add( detalhesPanel, new TableLayoutConstraints( 1, 1 ) );
 | 
						|
	}
 | 
						|
	
 | 
						|
	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;
 | 
						|
	}
 | 
						|
}
 |