Package org.eclipse.nebula.widgets.nattable.hideshow

Examples of org.eclipse.nebula.widgets.nattable.hideshow.ColumnHideShowLayer


        IDataProvider bodyDataProvider = new DefaultBodyDataProvider<Person>(
                PersonService.getPersons(10), propertyNames);
        DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
        ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                bodyDataLayer);
        ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                columnReorderLayer);
        final SelectionLayer selectionLayer = new SelectionLayer(
                columnHideShowLayer);
        final ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
View Full Code Here


    public static void main(String[] args) throws Exception {
        StandaloneNatExampleRunner.run(new HideShowDataLayerExample());
    }

    public Control createExampleControl(Composite parent) {
        return new NatTable(parent, new ColumnHideShowLayer(new DataLayer(
                new DummyBodyDataProvider(1000000, 1000000))));
    }
View Full Code Here

    private final SelectionLayer selectionLayer;
    private final ViewportLayer viewportLayer;

    public DefaultBodyLayerStack(IUniqueIndexLayer underlyingLayer) {
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);
        columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
        selectionLayer = new SelectionLayer(columnHideShowLayer);
        viewportLayer = new ViewportLayer(selectionLayer);
        setUnderlyingLayer(viewportLayer);

        registerCommandHandler(new CopyDataCommandHandler(selectionLayer));
View Full Code Here

            ColumnGroupModel... columnGroupModel) {
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);
        columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer,
                columnGroupModel[columnGroupModel.length - 1]);
        columnHideShowLayer = new ColumnHideShowLayer(columnGroupReorderLayer);
        columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                columnHideShowLayer, columnGroupModel);
        selectionLayer = new SelectionLayer(columnGroupExpandCollapseLayer);
        viewportLayer = new ViewportLayer(selectionLayer);
        setUnderlyingLayer(viewportLayer);
View Full Code Here

                    this.filterList, cpa);
            bodyDataLayer = new DataLayer(dataProvider);
            glazedListsEventLayer = new GlazedListsEventLayer<T>(bodyDataLayer,
                    this.filterList);
            columnReorderLayer = new ColumnReorderLayer(glazedListsEventLayer);
            columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
            selectionLayer = new SelectionLayer(columnHideShowLayer);
            viewportLayer = new ViewportLayer(selectionLayer);
            setUnderlyingLayer(viewportLayer);

            registerCommandHandler(new CopyDataCommandHandler(selectionLayer));
View Full Code Here

                configRegistry);

        columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
        columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer, columnGroupModel);
        columnHideShowLayer = new ColumnHideShowLayer(columnGroupReorderLayer);
        columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                columnHideShowLayer, columnGroupModel);
        selectionLayer = new SelectionLayer(columnGroupExpandCollapseLayer);
        viewportLayer = new ViewportLayer(selectionLayer);
        freezeLayer = new FreezeLayer(selectionLayer);
View Full Code Here

                                            new CellDragMode(),
                                            new SplitViewportColumnReorderDragMode()));
                        }
                    });

            this.columnHideShowLayer = new ColumnHideShowLayer(
                    columnReorderLayer);
            this.selectionLayer = new SelectionLayer(columnHideShowLayer);

            // use a cell layer painter that is configured for left clipping
            // this ensures that the rendering works correctly for split
View Full Code Here

            GlazedListsEventLayer<T> glazedListsEventLayer = new GlazedListsEventLayer<T>(
                    summaryRowLayer, this.sortedList);

            ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                    glazedListsEventLayer);
            ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                    columnReorderLayer);
            this.selectionLayer = new SelectionLayer(columnHideShowLayer);

            // add a tree layer to visualise the grouping
            this.treeLayer = new TreeLayer(this.selectionLayer,
View Full Code Here

            GlazedListsEventLayer<T> glazedListsEventLayer = new GlazedListsEventLayer<T>(
                    bodyDataLayer, sortedList);

            ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                    glazedListsEventLayer);
            ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                    columnReorderLayer);
            this.selectionLayer = new SelectionLayer(columnHideShowLayer);

            // add a tree layer to visualise the grouping
            TreeLayer treeLayer = new TreeLayer(selectionLayer,
View Full Code Here

            this.bodyDataProvider = bodyDataProvider;

            // create and set the body layer stack
            this.bodyDataLayer = new DataLayer(bodyDataProvider);
            ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(this.bodyDataLayer);
            ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
            this.selectionLayer = new SelectionLayer(columnHideShowLayer);
            setBodyLayer(this.selectionLayer);

            // create and set the column header layer stack
            IDataProvider columnHeaderDataProvider = new DummyColumnHeaderDataProvider(bodyDataProvider);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.hideshow.ColumnHideShowLayer

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.