Search in sources :

Example 1 with CompositeLayerFixture

use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.CompositeLayerFixture in project nebula.widgets.nattable by eclipse.

the class CompositeLayerTest method setup.

@Before
public void setup() {
    this.layerFixture = new CompositeLayerFixture();
    this.layerFixture.bodyLayer.setClientAreaProvider(new IClientAreaProvider() {

        @Override
        public Rectangle getClientArea() {
            return new Rectangle(0, 0, 160, 100);
        }
    });
}
Also used : IClientAreaProvider(org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider) Rectangle(org.eclipse.swt.graphics.Rectangle) CompositeLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.CompositeLayerFixture) Before(org.junit.Before)

Aggregations

CompositeLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.CompositeLayerFixture)1 IClientAreaProvider (org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider)1 Rectangle (org.eclipse.swt.graphics.Rectangle)1 Before (org.junit.Before)1