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

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


        // the ViewportLayer
        // directly as body layer is also working.
        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);
View Full Code Here


    private ColumnReorderLayer columnReorderLayer;

    @Before
    public void setup() {
        columnReorderLayer = new ColumnReorderLayer(new DataLayerFixture());
    }
View Full Code Here

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

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

    private final ColumnHideShowLayer columnHideShowLayer;
    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);
View Full Code Here

    private SelectionLayer selectionLayer;
    private ViewportLayer viewportLayer;

    public ColumnGroupBodyLayerStack(IUniqueIndexLayer underlyingLayer,
            ColumnGroupModel... columnGroupModel) {
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);
        columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer,
                columnGroupModel[columnGroupModel.length - 1]);
        columnHideShowLayer = new ColumnHideShowLayer(columnGroupReorderLayer);
        columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
View Full Code Here

            IDataProvider dataProvider = new GlazedListsDataProvider<T>(
                    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);
View Full Code Here

                bodyDataProvider, rowIdAccessor, columnPropertyAccessor,
                configRegistry);
        SummaryRowLayer summaryRowLayer = new SummaryRowLayer(blinkingLayer,
                configRegistry);

        columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
        columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer, columnGroupModel);
        columnHideShowLayer = new ColumnHideShowLayer(columnGroupReorderLayer);
        columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                columnHideShowLayer, columnGroupModel);
View Full Code Here

            // layer for event handling of GlazedLists and PropertyChanges
            GlazedListsEventLayer<T> glazedListsEventLayer = new GlazedListsEventLayer<T>(
                    summaryRowLayer, this.sortedList);

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

            // use our custom reorder drag mode configuration instead of the
            // default to
            // suppress the ability to move a column from one viewport to the
            // other
            ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                    bodyDataLayer, false);
            columnReorderLayer
                    .addConfiguration(new AbstractUiBindingConfiguration() {

                        @Override
                        public void configureUiBindings(
                                UiBindingRegistry uiBindingRegistry) {
View Full Code Here

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

            ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                    glazedListsEventLayer);
            ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                    columnReorderLayer);
            this.selectionLayer = new SelectionLayer(columnHideShowLayer);
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.