package es.dalocar.facturamas.swt.edit;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Spinner;
import org.eclipse.swt.widgets.Text;

import com.cloudgarden.resource.SWTResourceManager;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class EditDetailLineaFactura extends Composite {

	{
		//Register as a resource user - SWTResourceManager will
		//handle the obtaining and disposing of resources
		SWTResourceManager.registerResourceUser(this);
	}
	

	
	private Text txtNumLinea;
	private Text txtDescripcion;
	private Text txtPrecio;
	private Text txtCantidad;
	private Text txtIVA;
	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public EditDetailLineaFactura(Composite parent, int style) {
		super(parent, style);
		GridLayout rowLayout = new GridLayout();
		rowLayout.numColumns = 2;
		this.setLayout(rowLayout);
		{
			Label labelId = new Label(this, SWT.NONE);
			GridData labelIdLData = new GridData();
			labelId.setAlignment(SWT.RIGHT);
			labelId.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
			labelId.setLayoutData(labelIdLData);
			labelId.setText("N\u00FAmero");
		}
		
		txtNumLinea = new Text(this, SWT.BORDER);
		GridData txtNumLineaLData = new GridData();
		txtNumLinea.setLayoutData(txtNumLineaLData);
		txtNumLinea.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
		{
			Label labelDescripcion = new Label(this, SWT.NONE);
			GridData labelDescripcionLData = new GridData();
			labelDescripcion.setAlignment(SWT.RIGHT);
			labelDescripcion.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
			labelDescripcion.setLayoutData(labelDescripcionLData);
			labelDescripcion.setText("Descripci\u00F3n");
		}
		{
			txtDescripcion = new Text(this, SWT.BORDER);
			GridData txtDescripcionLData = new GridData();
			txtDescripcionLData.widthHint = 370;
			txtDescripcionLData.heightHint = 24;
			txtDescripcion.setLayoutData(txtDescripcionLData);
			txtDescripcion.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
		}
		{
			Label labelCantidad = new Label(this, SWT.NONE);
			labelCantidad.setAlignment(SWT.RIGHT);
			labelCantidad.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
			labelCantidad.setText("Cantidad");
			GridData labelCantidadLData = new GridData();
			labelCantidadLData.widthHint = 90;
			labelCantidadLData.heightHint = 24;
			labelCantidad.setLayoutData(labelCantidadLData);
			labelCantidad.setBounds(-22, 0, 90, 24);
		}
		{
			txtCantidad = new Text(this, SWT.NONE);
			GridData txtCantidadLData = new GridData();
			txtCantidadLData.widthHint = 137;
			txtCantidadLData.heightHint = 30;
			txtCantidad.setLayoutData(txtCantidadLData);
			txtCantidad.setText("0.0");
			txtCantidad.setFont(SWTResourceManager.getFont("Arial", 16, 1, false, false));
			txtCantidad.setTextLimit(9999);
		}
		
		Label labelPrecio = new Label(this, SWT.NONE);
		labelPrecio.setAlignment(SWT.RIGHT);
		labelPrecio.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
		GridData labelPrecioLData = new GridData();
		labelPrecio.setLayoutData(labelPrecioLData);
		labelPrecio.setText("Precio");
		{
			txtPrecio = new Text(this, SWT.BORDER);
			GridData txtPrecioLData = new GridData();
			txtPrecioLData.widthHint = 131;
			txtPrecioLData.heightHint = 24;
			txtPrecio.setLayoutData(txtPrecioLData);
			txtPrecio.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
		}
		
		Label labelIVA = new Label(this, SWT.NONE);
		labelIVA.setAlignment(SWT.RIGHT);
		labelIVA.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));
		GridData labelIVALData = new GridData();
		labelIVA.setLayoutData(labelIVALData);
		labelIVA.setText("IVA");

		txtIVA = new Text(this, SWT.BORDER);
		GridData txtIVALData = new GridData();
		txtIVALData.widthHint = 131;
		txtIVALData.heightHint = 24;
		txtIVA.setLayoutData(txtIVALData);
		txtIVA.setFont(SWTResourceManager.getFont("Arial", 16, SWT.BOLD));

		pack();
	}

	/**
	 * @return the txtNumLinea
	 */
	public Text getTxtNumLinea() {
		return txtNumLinea;
	}

	/**
	 * @param txtNumLinea the txtNumLinea to set
	 */
	public void setTxtNumLinea(Text txtNumLinea) {
		this.txtNumLinea = txtNumLinea;
	}

	/**
	 * @return the txtDescripcion
	 */
	public Text getTxtDescripcion() {
		return txtDescripcion;
	}

	/**
	 * @param txtDescripcion the txtDescripcion to set
	 */
	public void setTxtDescripcion(Text txtDescripcion) {
		this.txtDescripcion = txtDescripcion;
	}

	/**
	 * @return the txtPrecio
	 */
	public Text getTxtPrecio() {
		return txtPrecio;
	}

	/**
	 * @param txtPrecio the txtPrecio to set
	 */
	public void setTxtPrecio(Text txtPrecio) {
		this.txtPrecio = txtPrecio;
		txtPrecio.setText("0.0");
	}

	/**
	 * @return the txtIVA
	 */
	public Text getTxtIVA() {
		return txtIVA;
	}

	/**
	 * @param txtIVA the txtIVA to set
	 */
	public void setTxtIVA(Text txtIVA) {
		this.txtIVA = txtIVA;
		txtIVA.setText("16.0");
	}


	/**
	 * @return the txtCantidad
	 */
	public Text getTxtCantidad() {
		return this.txtCantidad;
	}
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
	
	
}
