package com.sample.test.client;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.fields.DataSourceBooleanField;
import com.smartgwt.client.data.fields.DataSourceTextField;

public class SampleDataSource extends DataSource {
	private static SampleDataSource instance = null;

	SampleDataSource() {
		setID("billingSetupWizardDS");
		setShowPrompt(Boolean.FALSE);

		setRecordXPath("/response/data/Sample");
		setDataURL(  "/Sample.xml");
		setClientOnly(true);
		
		DataSourceTextField completed = new DataSourceTextField("Name", "Name");
		addField(completed);
		DataSourceBooleanField reverse = new DataSourceBooleanField("isTrue", "Boolean Field");
		addField(reverse);

	}

	public static SampleDataSource getInstance() {
		if ( instance == null) {
			instance = new SampleDataSource();
		}
		return instance;
	}
}
