// Decompiled by DJ v3.0.0.63 Copyright 2002 Atanas Neshkov  Date: 29/09/2006 14:23:07

// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!

// Decompiler options: packimports(3) 

// Source File Name:   Q70ListasEnlazadasTag.java



package q02b.tag;



import es.ejie.frmk.infraestructura.traza.Q70TraceLevel;

import es.ejie.frmk.infraestructura.traza.Q70Traza;



import es.ejie.frmk.presentacion.iu.taglib.html.Q70BaseHandlerTag;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.jsp.JspException;

import org.apache.struts.util.RequestUtils;

import org.apache.struts.util.ResponseUtils;



import q02b.exe.utils.Q02bFormatData;



public class Q02bBuscadorGeneral extends Q70BaseHandlerTag

{

		private static final long serialVersionUID = -24576457568869L;

	 	protected static final String COMPONENTE = "COMBO_TAG";

	 	private static Q70Traza tr = Q70Traza.getSingleton();

	 	//Campos obligatorios

	 	private String 	javascriptCallerFunc;

	 	private String 	targetValue;

	 	private String 	targetTextA;

	 	private String 	table;

	 	private String 	tableColumns;

	 	private String 	tableNi;

	 	private String 	labelColumns;

	 	//Campos opcionales

	 	private String 	targetTextB;

	 	private String 	targetCodigoA;

	 	private String 	tableOrderByClause;

	 	private String 	tableOrdenOrderBy;

		private String 	tableColumnWhere;

		private String 	sourceValueColumnWhere;

		private boolean tableColumnWhereNumeric;

		private String 	optionalWhere;

		private String 	tableCombo;

		private String 	comboLabelColumn;

		private String 	comboValueColumn;

		private boolean comboIdioma;

		private String 	comboOptionalWhere;

		private String 	tableNiCombo;

		private String  tableColumnsIdioma;

		private String  callBackFunctionJS; 

		private boolean selectMultiple;

		private String 	returnSelectList;

		private String  tableColumnsExtra;

		private String  tableColumnsIdiomaExtra;

		private String 	labelColumnsExtra;

		private String  title;



	    public Q02bBuscadorGeneral()

	    {

	    	//Campos obligatorios

	        javascriptCallerFunc 	= null;

	        targetValue 			= "";

	        targetTextA 			= "";

	        table 					= null;

	        tableColumns 			= null;

	        tableNi 				= null;

	        labelColumns 			= null;

	        //Campos opcionales

	        targetTextB 			= "";

	        targetCodigoA 			= "";

	        tableOrderByClause 		= "";

	        tableOrdenOrderBy  		= "";

	        tableColumnWhere		= "";

	        sourceValueColumnWhere	= "";

	        tableColumnWhereNumeric	= true;

	        optionalWhere			= "";

	        tableCombo				= "";

	        comboLabelColumn		= "";

	        comboValueColumn		= "";

	        comboIdioma				= false;

	        comboOptionalWhere		= "";

	        tableNiCombo			= "";

	        tableColumnsIdioma		= "";

	        callBackFunctionJS		= ""; 

	        selectMultiple			= false;

	        returnSelectList		= "";

	        tableColumnsExtra		= "";

			tableColumnsIdiomaExtra	= "";

			labelColumnsExtra		= "";

			title					= "";

	    }



	    //MÉTODOS GET Y SET

	    //Campos obligatorios

	    public String getJavascriptCallerFunc(){

	        return javascriptCallerFunc;

	    }

	    public void setJavascriptCallerFunc(String s){

	        javascriptCallerFunc = s;

	    }

	    public String getTargetValue(){

	        return targetValue;

	    }

	    public void setTargetValue(String s){

	    	targetValue = s;

	    }

	    public String getTargetTextA(){

	        return targetTextA;

	    }

	    public void setTargetTextA(String s){

	    	targetTextA = s;

	    }

	    public String getTable(){

	        return table;

	    }

	    public void setTable(String s){

	        table = s;

	    }

	    public String getTableColumns(){

	        return tableColumns;

	    }

	    public void setTableColumns(String s){

	    	tableColumns = s;

	    }

	    public String getTableNi(){

	        return tableNi;

	    }

	    public void setTableNi(String s){

	    	tableNi = s;

	    }

	    public String getLabelColumns(){

	        return labelColumns;

	    }

	    public void setLabelColumns(String s){

	    	labelColumns = s;

	    }

	    //Campos opcionales

	    public String getTargetTextB(){

	        return targetTextB;

	    }

	    public void setTargetTextB(String s){

	    	targetTextB = s;

	    }

	    public String getTargetCodigoA(){

	    	return targetCodigoA;

	    }

	    public void setTargetCodigoA(String s){

	    	targetCodigoA = s;

	    } 

	    public String getTableOrderByClause(){

	        return tableOrderByClause;

	    }

	    public void setTableOrderByClause(String s){

	    	tableOrderByClause = s;

	    }

	    public String getTableOrdenOrderBy(){

	        return tableOrdenOrderBy;

	    }

	    public void setTableOrdenOrderBy(String s){

	    	tableOrdenOrderBy = s;

	    }

	    public String getTableColumnWhere(){

	        return tableColumnWhere;

	    }

	    public void setTableColumnWhere(String s){

	    	tableColumnWhere = s;

	    }

	    public String getSourceValueColumnWhere(){

	        return sourceValueColumnWhere;

	    }

	    public void setSourceValueColumnWhere(String s){

	    	sourceValueColumnWhere = s;

	    }

	    public boolean getTableColumnWhereNumeric(){

	        return tableColumnWhereNumeric;

	    }

	    public void setTableColumnWhereNumeric(boolean b){

	    	tableColumnWhereNumeric = b;

	    }

	    public String getOptionalWhere(){

	        return optionalWhere;

	    }

	    public void setOptionalWhere(String s){

	    	optionalWhere = s;

	    }

	    public String getTableCombo(){

	        return tableCombo;

	    }

	    public void setTableCombo(String s){

	    	tableCombo = s;

	    }

	    public String getComboLabelColumn(){

	        return comboLabelColumn;

	    }

	    public void setComboLabelColumn(String s){

	    	comboLabelColumn = s;

	    }

	    public String getComboValueColumn(){

	        return comboValueColumn;

	    }

	    public void setComboValueColumn(String s){

	    	comboValueColumn = s;

	    }

	    public boolean getComboIdioma(){

	        return comboIdioma;

	    }

	    public void setComboIdioma(boolean b){

	    	comboIdioma = b;

	    }

	    public String getComboOptionalWhere(){

	        return comboOptionalWhere;

	    }

	    public void setComboOptionalWhere(String s){

	    	comboOptionalWhere = s;

	    }

	    public String getTableNiCombo(){

	        return tableNiCombo;

	    }

	    public void setTableNiCombo(String s){

	    	tableNiCombo = s;

	    }

	    public String getTableColumnsIdioma(){

	        return tableColumnsIdioma;

	    }

	    public void setTableColumnsIdioma(String s){

	    	tableColumnsIdioma = s;

	    }

	    public boolean getSelectMultiple(){

	        return selectMultiple;

	    }

	    public void setSelectMultiple(boolean b){

	    	selectMultiple = b;

	    }

	    public String getReturnSelectList(){

	        return returnSelectList;

	    }

	    public void setReturnSelectList(String s){

	    	returnSelectList = s;

	    }

	    

	    public int doStartTag()

	        throws JspException

	    {

	        if(tr.isTraceActive()){

	            tr.trace("COMBO_TAG", Q70TraceLevel.DEBUG, "Generando tag de tipo " + getClass().toString());
            }
	        return 1;

	    }



	    public int doEndTag()

	        throws JspException

	    {

	        verifyAtributes();

	        String s = Q02bJavascriptUtils.renderBuscadorGeneralHtmlCode((HttpServletRequest)pageContext.getRequest(), this);

	        ResponseUtils.write(pageContext, s);

	        super.putBridgeCounter();

	        return 6;

	    }



	    public void release()

	    {

	        super.release();

	    }



	    private void verifyAtributes()

	        throws JspException

	    {

	        if(Q02bFormatData.esVacio(this.javascriptCallerFunc))

	        {

	            JspException jspexception = new JspException("Debe especificar un valor para el atrito javascriptCallerFunc.");

	            RequestUtils.saveException(pageContext, jspexception);

	            throw jspexception;

	        }

	        if(Q02bFormatData.esVacio(this.targetValue))

	        {

	            JspException jspexception1 = new JspException("Debe especificar un valor para el atributo targetValue.");

	            RequestUtils.saveException(pageContext, jspexception1);

	            throw jspexception1;

	        }

	        if(Q02bFormatData.esVacio(this.targetTextA))

	        {

	            JspException jspexception2 = new JspException("Debe especificar un valor para el atributo targetTextA.");

	            RequestUtils.saveException(pageContext, jspexception2);

	            throw jspexception2;

	        } 

	        if(Q02bFormatData.esVacio(this.table))

	        {

	            JspException jspexception2 = new JspException("Debe especificar un valor para el atributo table.");

	            RequestUtils.saveException(pageContext, jspexception2);

	            throw jspexception2;

	        }

	        if(Q02bFormatData.esVacio(this.tableColumns))

	        {

	            JspException jspexception2 = new JspException("Debe especificar un valor para el atributo tableColumns.");

	            RequestUtils.saveException(pageContext, jspexception2);

	            throw jspexception2;

	        }

	        if(Q02bFormatData.esVacio(this.tableNi))

	        {

	            JspException jspexception2 = new JspException("Debe especificar un valor para el atributo tableNi.");

	            RequestUtils.saveException(pageContext, jspexception2);

	            throw jspexception2;

	        }

	        if(Q02bFormatData.esVacio(this.labelColumns))

	        {

	            JspException jspexception2 = new JspException("Debe especificar un valor para el atributo labelColumns.");

	            RequestUtils.saveException(pageContext, jspexception2);

	            throw jspexception2;

	        }

	    }



		public String getCallBackFunctionJS() {

			return callBackFunctionJS;

		}



		public void setCallBackFunctionJS(String callBackFunctionJS) {

			this.callBackFunctionJS = callBackFunctionJS;

		}

		

		public String getTableColumnsExtra() {

			return tableColumnsExtra;

		}



		public void setTableColumnsExtra(String tableColumnsExtra) {

			this.tableColumnsExtra = tableColumnsExtra;

		}

		

		public String getTableColumnsIdiomaExtra() {

			return tableColumnsIdiomaExtra;

		}



		public void setTableColumnsIdiomaExtra(String tableColumnsIdiomaExtra) {

			this.tableColumnsIdiomaExtra = tableColumnsIdiomaExtra;

		}



		public String getLabelColumnsExtra() {

			return labelColumnsExtra;

		}



		public void setLabelColumnsExtra(String labelColumnsExtra) {

			this.labelColumnsExtra = labelColumnsExtra;

		}

		

		public String getTitle() {

			return title;

		}



		public void setTitle(String title) {

			this.title = title;

		}

}