Search in sources :

Example 1 with CellPainterFixture

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

the class ButtonCellPainterTest method setup.

@Before
public void setup() {
    this.buttonRaisedPainter = new CellPainterFixture();
    this.buttonPressedPainter = new CellPainterFixture();
    this.buttonCellPainter = new ButtonCellPainter(this.buttonRaisedPainter, this.buttonPressedPainter);
    this.buttonCellPainter.setButtonFlashTime(500);
    this.natTable = new NatTableFixture();
    this.cellFixture = new LayerCell(this.natTable, 1, 5);
    this.gcFixture = new GC(this.natTable);
    this.mouseClickEvent = new MouseEvent(SWTUtils.getLeftClickEvent(100, 100, 0, this.natTable));
    this.mouseClickEvent.data = NatEventData.createInstanceFromEvent(this.mouseClickEvent);
}
Also used : CellPainterFixture(org.eclipse.nebula.widgets.nattable.test.fixture.CellPainterFixture) MouseEvent(org.eclipse.swt.events.MouseEvent) NatTableFixture(org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture) ILayerCell(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell) LayerCell(org.eclipse.nebula.widgets.nattable.layer.cell.LayerCell) GC(org.eclipse.swt.graphics.GC) Before(org.junit.Before)

Aggregations

ILayerCell (org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell)1 LayerCell (org.eclipse.nebula.widgets.nattable.layer.cell.LayerCell)1 CellPainterFixture (org.eclipse.nebula.widgets.nattable.test.fixture.CellPainterFixture)1 NatTableFixture (org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture)1 MouseEvent (org.eclipse.swt.events.MouseEvent)1 GC (org.eclipse.swt.graphics.GC)1 Before (org.junit.Before)1