// Path: src/java/com/idega/formbuilder/IWBundleStarter.java
// public class IWBundleStarter implements IWBundleStartable {
// 	
// 	public static final String IW_BUNDLE_IDENTIFIER = "com.idega.formbuilder";
// 	public static final String FB_CFG_FILE = "formbuilder-properties.xml";
// 	
// 	public void start(IWBundle starterBundle) {
// 		FormbuilderViewManager cViewManager = FormbuilderViewManager.getInstance(starterBundle.getApplication());
// 		cViewManager.initializeStandardNodes(starterBundle);
// 	}
// 
// 	/* (non-Javadoc)
// 	 * @see com.idega.idegaweb.IWBundleStartable#stop(com.idega.idegaweb.IWBundle)
// 	 */
// 	public void stop(IWBundle starterBundle) {
// 		// TODO Auto-generated method stub
// 		
// 	}
// 	
// }


import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.model.SelectItem;
import com.idega.formbuilder.IWBundleStarter;
import com.idega.idegaweb.BundleLocalizationMap;
import com.idega.presentation.ui.SelectOption;
import com.idega.util.config.Config;
import com.idega.util.config.ConfigException;
import com.idega.util.config.ConfigFactory;
import com.idega.webface.WFUtil;
import com.idega.xformsmanager.business.component.properties.PropertiesSelect;
package com.idega.formbuilder.presentation.beans;




public class DataSourceList implements Serializable {

	private static final long serialVersionUID = -1462694112346788168L;
	private static final String select_sources = "select-external_data_sources";
	private static final Logger logger = Logger.getLogger(DataSourceList.class.getName());

	public static String localDataSrc = new Integer(PropertiesSelect.LOCAL_DATA_SRC).toString();
	public static String externalDataSrc = new Integer(PropertiesSelect.EXTERNAL_DATA_SRC).toString();

	private List<SelectItem> sources = new ArrayList<SelectItem>();
	private List<SelectOption> extDataSources;

	public DataSourceList() {
		sources.clear();
		sources.add(new SelectItem(localDataSrc, "List of values"));
		sources.add(new SelectItem(externalDataSrc, "External"));
	}

	public List<SelectItem> getSources() {
		return sources;
	}

// Path: src/java/com/idega/formbuilder/IWBundleStarter.java
// public class IWBundleStarter implements IWBundleStartable {
// 	
// 	public static final String IW_BUNDLE_IDENTIFIER = "com.idega.formbuilder";
// 	public static final String FB_CFG_FILE = "formbuilder-properties.xml";
// 	
// 	public void start(IWBundle starterBundle) {
// 		FormbuilderViewManager cViewManager = FormbuilderViewManager.getInstance(starterBundle.getApplication());
// 		cViewManager.initializeStandardNodes(starterBundle);
// 	}
// 
// 	/* (non-Javadoc)
// 	 * @see com.idega.idegaweb.IWBundleStartable#stop(com.idega.idegaweb.IWBundle)
// 	 */
// 	public void stop(IWBundle starterBundle) {
// 		// TODO Auto-generated method stub
// 		
// 	}
// 	
// }


// Path: src/java/com/idega/formbuilder/presentation/beans/DataSourceList.java
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.model.SelectItem;
import com.idega.formbuilder.IWBundleStarter;
import com.idega.idegaweb.BundleLocalizationMap;
import com.idega.presentation.ui.SelectOption;
import com.idega.util.config.Config;
import com.idega.util.config.ConfigException;
import com.idega.util.config.ConfigFactory;
import com.idega.webface.WFUtil;
import com.idega.xformsmanager.business.component.properties.PropertiesSelect;

package com.idega.formbuilder.presentation.beans;




public class DataSourceList implements Serializable {

	private static final long serialVersionUID = -1462694112346788168L;
	private static final String select_sources = "select-external_data_sources";
	private static final Logger logger = Logger.getLogger(DataSourceList.class.getName());

	public static String localDataSrc = new Integer(PropertiesSelect.LOCAL_DATA_SRC).toString();
	public static String externalDataSrc = new Integer(PropertiesSelect.EXTERNAL_DATA_SRC).toString();

	private List<SelectItem> sources = new ArrayList<SelectItem>();
	private List<SelectOption> extDataSources;

	public DataSourceList() {
		sources.clear();
		sources.add(new SelectItem(localDataSrc, "List of values"));
		sources.add(new SelectItem(externalDataSrc, "External"));
	}

	public List<SelectItem> getSources() {
		return sources;
	}

	public void setSources(List<SelectItem> sources) {