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

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture


    @Before
    public void setup() {
        layerStack = new DummyGridLayerStack(10, 5);
        selectionLayer = layerStack.getBodyLayer().getSelectionLayer();
        natTable = new NatTableFixture(layerStack, 1000, 200, true);
    }
View Full Code Here


    private TextPainter cellPainter;
    private GC gc;

    @Before
    public void setUp() throws Exception {
        natTable = new NatTableFixture();
        configRegistry = (ConfigRegistry) natTable.getConfigRegistry();
        cellStyle = new Style();
        cellPainter = new TextPainter();

        gc = new GC(Display.getDefault());
View Full Code Here

        IConfigRegistry configRegistry = new ConfigRegistry();
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER,
                PricingTypeBean.getDisplayConverter());

        NatTableFixture natTableFixture = new NatTableFixture(
                new DefaultGridLayer(RowDataListFixture.getList(),
                        RowDataListFixture.getPropertyNames(),
                        RowDataListFixture.getPropertyToLabelMap()), false);
        natTableFixture.setConfigRegistry(configRegistry);
        natTableFixture.configure();

        int columnIndex = RowDataListFixture
                .getColumnIndexOfProperty(RowDataListFixture.PRICING_TYPE_PROP_NAME);
        Object dataValue = natTableFixture.getDataValueByPosition(columnIndex
                + ROW_HEADER_COLUMN_COUNT, 2);

        // Verify displayed value
        ILayerCell cell = natTableFixture.getCellByPosition(columnIndex
                + ROW_HEADER_COLUMN_COUNT, 2);
        TextPainter cellPainter = new TextPainter();
        Assert.assertEquals("Automatic",
                cellPainter.convertDataType(cell, configRegistry));
View Full Code Here

    private NatTable natTable;
    private ConfigRegistry configRegistry;

    @Before
    public void setUp() throws Exception {
        natTable = new NatTableFixture();
        configRegistry = (ConfigRegistry) natTable.getConfigRegistry();
    }
View Full Code Here

        buttonPressedPainter = new CellPainterFixture();
        buttonCellPainter = new ButtonCellPainter(buttonRaisedPainter,
                buttonPressedPainter);
        buttonCellPainter.setButtonFlashTime(500);

        natTable = new NatTableFixture();
        cellFixture = new LayerCell(natTable, 1, 5);
        gcFixture = new GC(natTable);

        mouseClickEvent = new MouseEvent(SWTUtils.getLeftClickEvent(100, 100,
                0, natTable));
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture

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.