package lu.tudor.santec.gecamed.esante.gui.dialogs;

import javax.swing.JButton;
import javax.swing.JProgressBar;

import com.jgoodies.forms.layout.FormLayout;

import lu.tudor.santec.gecamed.core.gui.MainFrame;
import lu.tudor.santec.i18n.Translatrix;

/**
 * @author jens.ferring(at)tudor.lu
 * 
 * @version
 * <br>$Log: DeletingCdaDialog.java,v $
 * <br>Revision 1.1  2014-01-09 14:32:20  ferring
 * <br>Clear CDA documents on server function prepared, but not yet done
 * <br>
 */

public class DeletingCdaDialog extends ESanteDialog implements Runnable
{
	/* ======================================== */
	// MEMBERS
	/* ======================================== */
	
	private static DeletingCdaDialog	instance;
	
	
	private Thread			thread;
	
	private boolean			run;
	
	private JButton			startStopButton;
	
	private JProgressBar	progressBar;
	
	
	
	/* ======================================== */
	// CONSTRUCTORS
	/* ======================================== */
	
	public DeletingCdaDialog ()
	{
		super(MainFrame.getInstance(),
				Translatrix.getTranslationString("esante.managementPanel.DeletingCdaDialog.title"),
				OK_BUTTON_MODE);
		setModalityType(ModalityType.MODELESS);
		
		initDialog();
	}
	
	
	public static DeletingCdaDialog getInstance ()
	{
		if (instance == null)
			instance = new DeletingCdaDialog();
		
		return instance;
	}
	
	
	
	/* ======================================== */
	// CLASS BODY
	/* ======================================== */
	
	public void run ()
	{
		// TODO Auto-generated method stub
		
	}
	
	
	
	/* ======================================== */
	// HELP METHODS
	/* ======================================== */
	
	private void initDialog ()
	{
		mainPanel.setLayout(new FormLayout(
				// columns:
				"5px, f:p:g, 5px",
				// rows:
				  " 5px,f:p,"	// description
				+ " 5px,f:p,"	// progress bar
				+ " 5px,f:p,"	// start / stop button
				+ " 5px"));
	}
	
	
	private void startStop ()
	{
		
	}
}
