Package org.eclipse.nebula.widgets.nattable.selection.command

Examples of org.eclipse.nebula.widgets.nattable.selection.command.SelectCellCommand


        configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
                cellStyle, DisplayMode.SELECT,
                SelectionStyleLabels.SELECTION_ANCHOR_STYLE);

        // Select and access cell
        natTable.doCommand(new SelectCellCommand(natTable, 2, 2, false, false));
        ILayerCell cell = natTable.getCellByPosition(2, 2);
        Assert.assertEquals(DisplayMode.SELECT, cell.getDisplayMode());

        // Check for line styling
        Assert.assertEquals(
View Full Code Here


    @Test
    public void willSelectBodyCellAndShouldHaveColumnHeaderSelected() {
        // Select body cell
        // The column position is a grid layer position
        gridLayer
                .doCommand(new SelectCellCommand(gridLayer, 2, 2, false, false));

        // Get column header cell corresponding to the selected body cell
        ColumnHeaderLayer columnHeaderLayer = (ColumnHeaderLayer) gridLayer
                .getChildLayerByLayoutCoordinate(1, 0);
        // The column position is 1 because it takes into account the offset of
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.selection.command.SelectCellCommand

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.