Examples of NatTableFixture


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

    private NatTableFixture natTableFixture;

    @Before
    public void setup() {
        conflaterChain = new EventConflaterChain(10, 10);
        natTableFixture = new NatTableFixture();
        conflater1 = new VisualChangeEventConflater(natTableFixture);
        conflater2 = new VisualChangeEventConflater(natTableFixture);

        conflaterChain.add(conflater1);
        conflaterChain.add(conflater2);
View Full Code Here

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

    private Color defaultBackgroundColor;
    private final Font font = GUIHelper.getFont(FONT_DATA);

    @Before
    public void setUp() throws Exception {
        natTable = new NatTableFixture();
        superCellStyle = new Style();
        superCellStyle.setAttributeValue(CellStyleAttributes.FONT, font);
        defaultBackgroundColor = Display.getDefault().getSystemColor(
                SWT.COLOR_WIDGET_BACKGROUND);
        superCellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
View Full Code Here

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

    private GC gc;
    private Font defaultFont;

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

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

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

    private DummyGridLayerStack gridLayerStack;

    @Before
    public void setup() {
        gridLayerStack = new DummyGridLayerStack(5, 5);
        natTable = new NatTableFixture(gridLayerStack);

        // Ensure no active editor (static) is present
        // Although deprecated this needs to still work for backwards
        // compatibility
        assertNull(natTable.getActiveCellEditor());
View Full Code Here

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

    }

    @Test
    public void testDataValidation() {
        DummyGridLayerStack gridLayerStack = new DummyGridLayerStack(5, 5);
        natTable = new NatTableFixture(gridLayerStack);

        // Register custom validation
        DataLayer bodyDataLayer = (DataLayer) gridLayerStack.getBodyDataLayer();
        natTable.registerLabelOnColumn(bodyDataLayer, 0, TEST_LABEL);
        natTable.registerLabelOnColumn(bodyDataLayer, 1, TEST_LABEL_2);
View Full Code Here

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

    public void clickingOnTheCheckBoxMustToggleItsValue() throws Exception {
        DefaultGridLayer layerStack = new DefaultGridLayer(
                RowDataListFixture.getList(),
                RowDataListFixture.getPropertyNames(),
                RowDataListFixture.getPropertyToLabelMap());
        natTable = new NatTableFixture(layerStack, 1200, 300, false);

        // Enable editing
        natTable.enableEditingOnAllCells();

        // Calculate pixel value to click on
View Full Code Here

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

        }
        DefaultGridLayer layerStack = new DefaultGridLayer(
                RowDataListFixture.getList(),
                RowDataListFixture.getPropertyNames(),
                RowDataListFixture.getPropertyToLabelMap());
        natTable = new NatTableFixture(layerStack, 1200, 300, false);

        // Enable editing
        natTable.enableEditingOnAllCells();

        // Calculate pixel value to click on
View Full Code Here

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

        SelectionLayer selectionLayer = new SelectionLayer(
                new SpanningDataLayer(new DummySpanningBodyDataProvider(100,
                        100)));
        layer.setChildLayer(GridRegion.BODY, new ViewportLayer(selectionLayer),
                0, 0);
        natTable = new NatTableFixture(layer, 1200, 300, false);

        layer.addConfiguration(new DefaultEditBindings());
        layer.addConfiguration(new DefaultEditConfiguration());

        natTable.enableEditingOnAllCells();
View Full Code Here

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

                100, 100);
        SelectionLayer selectionLayer = new SelectionLayer(
                new SpanningDataLayer(dataProvider));
        layer.setChildLayer(GridRegion.BODY, new ViewportLayer(selectionLayer),
                0, 0);
        natTable = new NatTableFixture(layer, 1200, 300, false);

        layer.addConfiguration(new DefaultEditBindings());
        layer.addConfiguration(new DefaultEditConfiguration());

        natTable.enableEditingOnAllCells();
View Full Code Here

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

    @Before
    public void setup() {
        labelAccumulatorFixture = new ColumnOverrideLabelAccumulator(
                new DataLayerFixture());
        natTableFixture = new NatTableFixture();
        configRegistryFixture = natTableFixture.getConfigRegistry();
        commandFixture = new DisplayColumnStyleEditorCommand(natTableFixture,
                natTableFixture.getConfigRegistry(), 1, 1);

        final SelectionLayer selectionLayer = ((DummyGridLayerStack) natTableFixture
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.