Examples of addConfiguration()


Examples of org.eclipse.nebula.widgets.nattable.grid.layer.ColumnHeaderLayer.addConfiguration()

        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);

        ColumnHeaderLayer columnHeaderLayer = new ColumnHeaderLayer(
                new DataLayer(new ExampleHeaderDataProvider()), viewportLayer,
                selectionLayer, false);
        columnHeaderLayer
                .addConfiguration(new DefaultColumnHeaderLayerConfiguration() {
                    @Override
                    protected void addColumnHeaderStyleConfig() {
                        addConfiguration(new DefaultColumnHeaderStyleConfiguration() {
                            {
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.grid.layer.RowHeaderLayer.addConfiguration()

        DefaultRowHeaderDataLayer rowHeaderDataLayer = new DefaultRowHeaderDataLayer(
                rowHeaderDataProvider);

        RowHeaderLayer rowHeaderLayer = new RowHeaderLayer(rowHeaderDataLayer,
                viewportLayer, selectionLayer, false);
        rowHeaderLayer.addConfiguration(new RowHeaderConfiguration());

        RowGroupHeaderLayer<RowGroupDataFixture> rowGroupHeaderLayer = new RowGroupHeaderLayer<RowGroupDataFixture>(
                rowHeaderLayer, selectionLayer, rowGroupModel);
        rowGroupHeaderLayer.setColumnWidth(20);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.hover.HoverLayer.addConfiguration()

        DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);

        HoverLayer hoverLayer = new HoverLayer(bodyDataLayer, false);
        // we need to ensure that the hover styling is removed when the mouse
        // cursor moves out of the cell area
        hoverLayer.addConfiguration(new SimpleHoverStylingBindings(hoverLayer));

        SelectionLayer selectionLayer = new SelectionLayer(hoverLayer);
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);

        viewportLayer.setRegionName(GridRegion.BODY);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.CompositeLayer.addConfiguration()

                        100)));
        layer.setChildLayer(GridRegion.BODY, new ViewportLayer(selectionLayer),
                0, 0);
        natTable = new NatTableFixture(layer, 1200, 300, false);

        layer.addConfiguration(new DefaultEditBindings());
        layer.addConfiguration(new DefaultEditConfiguration());

        natTable.enableEditingOnAllCells();

        final boolean[] inlineFired = new boolean[1];
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer.addConfiguration()

            // 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

Examples of org.eclipse.nebula.widgets.nattable.selection.SelectionLayer.addConfiguration()

                        return rowObject.getSecurity_id();
                    }

                }));

        selectionLayer
                .addConfiguration(new RowOnlySelectionConfiguration<RowDataFixture>());
        nattable.addConfiguration(new RowOnlySelectionBindings());

        nattable.configure();
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.summaryrow.FixedGridSummaryRowLayer.addConfiguration()

        // create a standalone summary row
        // for a grid this is the FixedGridSummaryRowLayer
        FixedGridSummaryRowLayer summaryRowLayer =
                new FixedGridSummaryRowLayer(gridLayer.getBodyDataLayer(), gridLayer, configRegistry, false);
        summaryRowLayer.addConfiguration(
                new ExampleSummaryRowGridConfiguration(gridLayer.getBodyDataLayer().getDataProvider()));
        summaryRowLayer.setSummaryRowLabel("\u2211");

        // create a composition that has the grid on top and the summary row on
        // the bottom
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.summaryrow.SummaryRowLayer.addConfiguration()

                // create a standalone SummaryRowLayer
                SummaryRowLayer summaryRowLayer = new SummaryRowLayer(
                        this.bodyDataLayer, configRegistry, false);
                // configure the SummaryRowLayer to be rendered standalone
                summaryRowLayer.setStandalone(true);
                summaryRowLayer.addConfiguration(
                        new ExampleSummaryRowGridConfiguration(this.bodyDataLayer.getDataProvider()));

                CompositeLayer composite = new CompositeLayer(1, 2);
                composite.setChildLayer(SUMMARY_REGION, summaryRowLayer, 0, 0);
                composite.setChildLayer(GridRegion.BODY, this.viewportLayer, 0, 1);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer.addConfiguration()

        // add configurations to enable editing
        // this is to verify that spanned cells are also editable and update the
        // data model correctly
        // @see Bug 414754
        layer.addConfiguration(new DefaultEditBindings());
        layer.addConfiguration(new DefaultEditConfiguration());
        layer.addConfiguration(new AbstractRegistryConfiguration() {

            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
View Full Code Here

Examples of org.exist.collections.CollectionConfigurationManager.addConfiguration()

            Collection test2 = broker.getOrCreateCollection(txn, col2uri);
            assertNotNull(test2);
            broker.saveCollection(txn, test2);

            CollectionConfigurationManager mgr = pool.getConfigurationManager();
            mgr.addConfiguration(txn, broker, root, COLLECTION_CONFIG);

            doc1 = storeDocument(txn, broker, root, doc1uri, XML1);
            doc2 = storeDocument(txn, broker, root, doc2uri, XML2);

            System.out.println("store "+doc5uri);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.