Package org.eclipse.nebula.widgets.nattable.reorder

Examples of org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer


        // directly as body layer is also working.
        IDataProvider bodyDataProvider = new ListDataProvider<ExtendedPersonWithAddress>(
                PersonService.getExtendedPersonsWithAddress(10),
                columnPropertyAccessor);
        DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
        ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                bodyDataLayer);
        ColumnGroupReorderLayer columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer, columnGroupModel);
        ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                columnGroupReorderLayer);
View Full Code Here


    @Test
    public void isFirstVisibleWithColumnsReordered() throws Exception {
        // Original indexes : 0 1 2 3 4
        // Indexes reordered : 4 1 0 2 3
        ColumnReorderLayer reorderLayer = new ColumnReorderLayerFixture();
        underlyingLayer = new ColumnHideShowLayerFixture(reorderLayer);
        expandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                underlyingLayer, model);

        model.clear();
View Full Code Here

            // layer for event handling of GlazedLists and PropertyChanges
            GlazedListsEventLayer<T> glazedListsEventLayer = new GlazedListsEventLayer<T>(
                    bodyDataLayer, filterList);

            columnReorderLayer = new ColumnReorderLayer(glazedListsEventLayer);
            columnGroupReorderLayer = new ColumnGroupReorderLayer(
                    columnReorderLayer,
                    columnGroupModel[columnGroupModel.length - 1]);
            columnHideShowLayer = new ColumnHideShowLayer(
                    columnGroupReorderLayer);
View Full Code Here

        // directly as body layer is also working.
        IRowDataProvider<Person> bodyDataProvider = new DefaultBodyDataProvider<Person>(
                getStaticPersonList(), propertyNames);
        DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);

        ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                bodyDataLayer);
        ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                columnReorderLayer);

        RowHideShowLayer rowHideShowLayer = new RowHideShowLayer(
View Full Code Here

    private final ColumnHideShowLayer columnHideShowLayer;
    private final SelectionLayer selectionLayer;
    private final ViewportLayer viewportLayer;

    public SelectionExampleBodyLayerStack(IUniqueIndexLayer underlyingLayer) {
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);
        columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);

        // No autoconfig on selection layer
        selectionLayer = new SelectionLayer(columnHideShowLayer, false);
View Full Code Here

    public ColumnReorderLayer reorderLayer;

    @Before
    public void setUp() {
        modelFixture = new ColumnGroupModelFixture();
        reorderLayer = new ColumnReorderLayer(new BaseDataLayerFixture(24, 20));
        layer = new ColumnGroupReorderLayer(reorderLayer, modelFixture);
    }
View Full Code Here

            // layer for event handling of GlazedLists and PropertyChanges
            GlazedListsEventLayer<T> glazedListsEventLayer = new GlazedListsEventLayer<T>(
                    bodyDataLayer, filterList);

            ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                    glazedListsEventLayer);
            ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                    columnReorderLayer);
            this.selectionLayer = new SelectionLayer(columnHideShowLayer);
View Full Code Here

            summaryRowLayer = new SummaryRowLayer(glazedListsEventLayer,
                    configRegistry, false);
            summaryRowLayer
                    .addConfiguration(new CalculatingSummaryRowConfiguration(
                            bodyDataLayer.getDataProvider()));
            columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
            columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
            selectionLayer = new SelectionLayer(columnHideShowLayer);
            viewportLayer = new ViewportLayer(selectionLayer);
            setUnderlyingLayer(viewportLayer);
View Full Code Here

        IConfigRegistry configRegistry = new ConfigRegistry();

        dataLayer = new DataLayer(dataProvider);
        summaryRowLayer = new SummaryRowLayer(dataLayer, configRegistry);
        IUniqueIndexLayer columnReorderLayer = new ColumnReorderLayer(
                summaryRowLayer);
        IUniqueIndexLayer columnHideShowLayer = new ColumnHideShowLayer(
                columnReorderLayer);
        IUniqueIndexLayer selectionLayer = new SelectionLayer(
                columnHideShowLayer);
View Full Code Here

        summaryRowLayer = new SummaryRowLayer(bodyDataLayer, configRegistry,
                false);
        summaryRowLayer
                .addConfiguration(new ExampleSummaryRowGridConfiguration(
                        bodyDataLayer.getDataProvider()));
        columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
        columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
        selectionLayer = new SelectionLayer(columnHideShowLayer);
        viewportLayer = new ViewportLayer(selectionLayer);
        setUnderlyingLayer(viewportLayer);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer

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.