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

public class AbonentTestDataSource extends DataSource {

	private static AbonentTestDataSource singleton;
	
	
	public static AbonentTestDataSource get(){
		
		if (singleton==null)
			return new AbonentTestDataSource();
		else
			return singleton;
	}
	
	public AbonentTestDataSource(){
		singleton = this;
		setClientOnly(true);
		
		
		
		DataSourceTextField nazwa = new DataSourceTextField("abonent_nazwa","Name");
		nazwa.setRequired(true);
		nazwa.setCanEdit(false);
		this.addField(nazwa);
	    
	    DataSourceTextField firma = new DataSourceTextField("abonent_firma", "Company");
	    firma.setRequired(false);
	    firma.setCanEdit(true);
	    this.addField(firma);
	    
		
		
	}

}
