Package org.eclipse.nebula.widgets.nattable.test.fixture.layer

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.GridLayerFixture


        listFixture = RowDataListFixture.getList(10);
        bodyDataProvider = new ListDataProvider<RowDataFixture>(listFixture,
                new ReflectiveColumnPropertyAccessor<RowDataFixture>(
                        RowDataListFixture.getPropertyNames()));

        GridLayerFixture gridLayer = new GridLayerFixture(bodyDataProvider);
        nattable = new NatTableFixture(gridLayer, false);

        bodyDataLayer = (DataLayer) gridLayer.getBodyDataLayer();
        selectionLayer = gridLayer.getBodyLayer().getSelectionLayer();
    }
View Full Code Here


    private GridLayerFixture gridLayer;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());
    }
View Full Code Here

    private ColumnGroupModel model;
    private DefaultGridLayer gridLayer;

    @Before
    public void setup() {
        gridLayer = new GridLayerFixture();
        model = new ColumnGroupModel();
        // 10 columns in header
        columnGroupLayer = new ColumnGroupHeaderLayer(
                gridLayer.getColumnHeaderLayer(), gridLayer.getBodyLayer()
                        .getSelectionLayer(), model);
View Full Code Here

    @Before
    public void setup() {
        List<RowDataFixture> listFixture = RowDataListFixture.getList(10);
        IRowDataProvider<RowDataFixture> bodyDataProvider = new ListDataProvider<RowDataFixture>(listFixture,
                new ReflectiveColumnPropertyAccessor<RowDataFixture>(RowDataListFixture.getPropertyNames()));
        this.gridLayerStack = new GridLayerFixture(bodyDataProvider);
        this.selectionLayer = this.gridLayerStack.getBodyLayer().getSelectionLayer();
        this.selectionLayer.setSelectionModel(new RowSelectionModel<RowDataFixture>(
                this.selectionLayer, bodyDataProvider,
                new IRowIdAccessor<RowDataFixture>() {
View Full Code Here

    private SelectionLayer selectionLayer;
    private DefaultGridLayer gridLayer;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        selectionLayer = (SelectionLayer) gridLayer.getBodyLayer()
                .getViewportLayer().getScrollableLayer();
        model = new ColumnGroupModel();
        handler = new ColumnGroupsCommandHandler(model, selectionLayer,
                new ColumnGroupHeaderLayer(gridLayer.getColumnHeaderLayer(),
View Full Code Here

    private ILayer layer;
    private ConfigRegistry configRegistry;

    @Before
    public void setUp() {
        DefaultGridLayer gridLayer = new GridLayerFixture();
        layer = gridLayer.getBodyLayer().getSelectionLayer();

        configRegistry = new ConfigRegistry();
        new DefaultNatTableStyleConfiguration()
                .configureRegistry(configRegistry);
    }
View Full Code Here

    boolean isColumnFirst;
    PositionCoordinate expected;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 250);
            }
View Full Code Here

    private ILayer layer;
    private ConfigRegistry configRegistry;

    @Before
    public void setUp() {
        DefaultGridLayer gridLayer = new GridLayerFixture();
        layer = gridLayer.getBodyLayer().getSelectionLayer();
        configRegistry = new ConfigRegistry();
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER,
                new DefaultDisplayConverter());
    }
View Full Code Here

public class CellSelectionTest {
    private GridLayerFixture gridLayer;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());
    }
View Full Code Here

    /**
     * @see ViewportLayerFixture#DEFAULT_CLIENT_AREA
     */
    @Test
    public void initBodyLayer() throws Exception {
        DefaultGridLayer gridLayer = new GridLayerFixture();

        ViewportLayer viewport = gridLayer.getBodyLayer().getViewportLayer();
        viewport.setClientAreaProvider(new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 160, 80);
            }
        });

        // Client area gets init when this command is fired
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());

        Assert.assertEquals(160, viewport.getClientAreaWidth());
        Assert.assertEquals(80, viewport.getClientAreaHeight());

        Assert.assertEquals(160, viewport.getWidth());
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.layer.GridLayerFixture

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.