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);
}
Aggregations