Package org.eclipse.nebula.widgets.nattable.layer.event

Examples of org.eclipse.nebula.widgets.nattable.layer.event.StructuralRefreshEvent


        assertEquals("B Ford Motor", getSelected().getSecurity_description());

        listFixture.add(0, RowDataFixture.getInstance("Tata motors", "A"));

        // fire event to trigger structural refresh
        bodyDataLayer.fireLayerEvent(new StructuralRefreshEvent(bodyDataLayer));

        assertEquals(0, selectionLayer.getFullySelectedRowPositions().length);
    }
View Full Code Here


        assertEquals("B Ford Motor", getSelected().getSecurity_description());

        listFixture.add(0, RowDataFixture.getInstance("Tata motors", "A"));

        // fire event to trigger structural refresh
        bodyDataLayer.fireLayerEvent(new StructuralRefreshEvent(bodyDataLayer));

        // Tata motors at top but Ford motors still selected
        assertEquals("Tata motors", nattable.getDataValueByPosition(2, 1)
                .toString());
        assertEquals("B Ford Motor", getSelected().getSecurity_description());
View Full Code Here

        assertEquals("B Ford Motor", getSelected().getSecurity_description());

        listFixture.add(0, RowDataFixture.getInstance("Tata motors", "A"));

        // fire event to trigger structural refresh
        bodyDataLayer.fireLayerEvent(new StructuralRefreshEvent(bodyDataLayer));

        // Tata motors at top but Ford motors still selected
        assertEquals("Tata motors", nattable.getDataValueByPosition(2, 1)
                .toString());
        assertEquals("B Ford Motor", getSelected().getSecurity_description());
View Full Code Here

        return StructuralRefreshCommand.class;
    }

    public boolean doCommand(ILayer targetLayer,
            StructuralRefreshCommand command) {
        targetLayer.fireLayerEvent(new StructuralRefreshEvent(targetLayer));
        return false;
    }
View Full Code Here

                properties);
        this.rowHeightConfig.loadState(prefix + PERSISTENCE_KEY_ROW_HEIGHT,
                properties);

        if (!properties.containsKey(NatTable.INITIAL_PAINT_COMPLETE_FLAG))
            fireLayerEvent(new StructuralRefreshEvent(this));
    }
View Full Code Here

                // We are on the ui thread: Update the respective data value and
                // fire a refresh event.

                super.setDataValue(columnIndex, rowIndex, newValue);

                fireLayerEvent(new StructuralRefreshEvent(this));
            }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.layer.event.StructuralRefreshEvent

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.