package com.smartgwt.sample.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.core.KeyIdentifier;
import com.smartgwt.client.data.*;
import com.smartgwt.client.types.*;
import com.smartgwt.client.util.*;
import com.smartgwt.client.widgets.*;
import com.smartgwt.client.widgets.events.*;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.grid.*;
import com.smartgwt.client.widgets.grid.events.*;
import com.smartgwt.client.widgets.layout.*;
import com.smartgwt.client.widgets.viewer.DetailViewer;

public class TestFormViewImpl extends VLayout {

    private final ListGrid grid;

    public TestFormViewImpl() {
        DataSource dataSource = TestDataSource.getInstance();

        this.grid = new ListGrid(dataSource);
        this.grid.setAutoFetchData(true);
        this.grid.setShowFilterEditor(true);

        this.grid.setWidth100();
        this.grid.setHeight100();

        this.addMember(this.grid);
        this.setWidth100();
        this.setHeight100();
        this.setMembersMargin(10);
    }
}
