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

Examples of org.eclipse.nebula.widgets.nattable.freeze.command.FreezeRowCommand


    }

    @Test
    public void testFreezeAllRows() {
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 4));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(5, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(4, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here


    }

    @Test
    public void testFreezeRows() {
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowFrozenRegion() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowFrozenRegionEdge() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowAllFrozenRegion() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowViewportRegion() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowViewportRegionEdge() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowAllViewportRegion() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowBothRegions() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

    @Test
    public void testFreezeHideShowRowBothRegionsEdge() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeRowCommand(this.compositeFreezeLayer, 1));

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(2, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.freeze.command.FreezeRowCommand

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.