Examples of RowExpander

  • org.drools.workbench.screens.guided.dtable.client.wizard.pages.RowExpander
    A utility class to expand Condition column definitions into rows. Action columns are not expanded, as the use-case is that a user-determined action should be specified for each combination of Conditons. Where a column is defined as having multiple values (Guvnor enum, Java enum or Decision Table Value List) the number of rows is the Cartesian Product of all combinations.

  • Examples of com.extjs.gxt.ui.client.widget.grid.RowExpander

        List<ColumnConfig> configs = new ArrayList<ColumnConfig>();

        XTemplate tpl = XTemplate.create("<p><b>Company:</b> {name}</p><br><p><b>Summary:</b> {desc}</p>");

        RowExpander expander = new RowExpander();
        expander.setTemplate(tpl);

        configs.add(expander);

        ColumnConfig column = new ColumnConfig();
        column.setId("name");
    View Full Code Here

    Examples of org.drools.workbench.screens.guided.dtable.client.wizard.pages.RowExpander

                AbstractGuidedDecisionTableWizardPage gep = (AbstractGuidedDecisionTableWizardPage) page;
                gep.makeResult( model );
            }

            //Expand rows
            final RowExpander re = new RowExpander( model,
                                                    oracle );

            //Mark columns on which we are to expand (default is to include all)
            for ( BaseColumn c : model.getExpandedColumns() ) {
                re.setExpandColumn( c,
                                    false );
            }
            final List<ConditionCol52> columns = columnExpansionPage.getColumnsToExpand();
            for ( ConditionCol52 c : columns ) {
                re.setExpandColumn( c,
                                    true );
            }

            //Slurp out expanded rows and construct decision table data
            int rowIndex = 0;
            final RowExpander.RowIterator ri = re.iterator();
            model.initAnalysisColumn();
            while ( ri.hasNext() ) {
                List<DTCellValue52> row = ri.next();
                model.getData().add( row );
                model.getData().get( rowIndex ).get( 0 ).setNumericValue( new BigDecimal( rowIndex + 1 ) );
    View Full Code Here

    Examples of org.drools.workbench.screens.guided.dtable.client.wizard.pages.RowExpander

                AbstractGuidedDecisionTableWizardPage gep = (AbstractGuidedDecisionTableWizardPage) page;
                gep.makeResult( model );
            }

            //Expand rows
            final RowExpander re = new RowExpander( model,
                                                    oracle );

            //Mark columns on which we are to expand (default is to include all)
            for ( BaseColumn c : model.getExpandedColumns() ) {
                re.setExpandColumn( c,
                                    false );
            }
            final List<ConditionCol52> columns = columnExpansionPage.getColumnsToExpand();
            for ( ConditionCol52 c : columns ) {
                re.setExpandColumn( c,
                                    true );
            }

            //Slurp out expanded rows and construct decision table data
            int rowIndex = 0;
            final RowExpander.RowIterator ri = re.iterator();
            model.initAnalysisColumn();
            while ( ri.hasNext() ) {
                List<DTCellValue52> row = ri.next();
                model.getData().add( row );
                model.getData().get( rowIndex ).get( 0 ).setNumericValue( new BigDecimal( rowIndex + 1 ) );
    View Full Code Here

    Examples of org.drools.workbench.screens.guided.dtable.client.wizard.pages.RowExpander

                AbstractGuidedDecisionTableWizardPage gep = (AbstractGuidedDecisionTableWizardPage) page;
                gep.makeResult( model );
            }

            //Expand rows
            final RowExpander re = new RowExpander( model,
                                                    oracle );

            //Mark columns on which we are to expand (default is to include all)
            for ( BaseColumn c : model.getExpandedColumns() ) {
                re.setExpandColumn( c,
                                    false );
            }
            final List<ConditionCol52> columns = columnExpansionPage.getColumnsToExpand();
            for ( ConditionCol52 c : columns ) {
                re.setExpandColumn( c,
                                    true );
            }

            //Slurp out expanded rows and construct decision table data
            int rowIndex = 0;
            final RowExpander.RowIterator ri = re.iterator();
            model.initAnalysisColumn();
            while ( ri.hasNext() ) {
                List<DTCellValue52> row = ri.next();
                model.getData().add( row );
                model.getData().get( rowIndex ).get( 0 ).setNumericValue( new BigDecimal( rowIndex + 1 ) );
    View Full Code Here

    Examples of org.drools.workbench.screens.guided.dtable.client.wizard.pages.RowExpander

                AbstractGuidedDecisionTableWizardPage gep = (AbstractGuidedDecisionTableWizardPage) page;
                gep.makeResult( model );
            }

            //Expand rows
            final RowExpander re = new RowExpander( model,
                                                    oracle );

            //Mark columns on which we are to expand (default is to include all)
            for ( BaseColumn c : model.getExpandedColumns() ) {
                re.setExpandColumn( c,
                                    false );
            }
            final List<ConditionCol52> columns = columnExpansionPage.getColumnsToExpand();
            for ( ConditionCol52 c : columns ) {
                re.setExpandColumn( c,
                                    true );
            }

            //Slurp out expanded rows and construct decision table data
            int rowIndex = 0;
            final RowExpander.RowIterator ri = re.iterator();
            model.initAnalysisColumn();
            while ( ri.hasNext() ) {
                List<DTCellValue52> row = ri.next();
                model.getData().add( row );
                model.getData().get( rowIndex ).get( 0 ).setNumericValue( new BigDecimal( rowIndex + 1 ) );
    View Full Code Here

    Examples of org.drools.workbench.screens.guided.dtable.client.wizard.pages.RowExpander

                AbstractGuidedDecisionTableWizardPage gep = (AbstractGuidedDecisionTableWizardPage) page;
                gep.makeResult( model );
            }

            //Expand rows
            final RowExpander re = new RowExpander( model,
                                                    oracle );

            //Mark columns on which we are to expand (default is to include all)
            for ( BaseColumn c : model.getExpandedColumns() ) {
                re.setExpandColumn( c,
                                    false );
            }
            final List<ConditionCol52> columns = columnExpansionPage.getColumnsToExpand();
            for ( ConditionCol52 c : columns ) {
                re.setExpandColumn( c,
                                    true );
            }

            //Slurp out expanded rows and construct decision table data
            int rowIndex = 0;
            final RowExpander.RowIterator ri = re.iterator();
            model.initAnalysisColumn();
            while ( ri.hasNext() ) {
                List<DTCellValue52> row = ri.next();
                model.getData().add( row );
                model.getData().get( rowIndex ).get( 0 ).setNumericValue( new BigDecimal( rowIndex + 1 ) );
    View Full Code Here

    Examples of org.drools.workbench.screens.guided.dtable.client.wizard.pages.RowExpander

                AbstractGuidedDecisionTableWizardPage gep = (AbstractGuidedDecisionTableWizardPage) page;
                gep.makeResult( model );
            }

            //Expand rows
            final RowExpander re = new RowExpander( model,
                                                    oracle );

            //Mark columns on which we are to expand (default is to include all)
            for ( BaseColumn c : model.getExpandedColumns() ) {
                re.setExpandColumn( c,
                                    false );
            }
            final List<ConditionCol52> columns = columnExpansionPage.getColumnsToExpand();
            for ( ConditionCol52 c : columns ) {
                re.setExpandColumn( c,
                                    true );
            }

            //Slurp out expanded rows and construct decision table data
            int rowIndex = 0;
            final RowExpander.RowIterator ri = re.iterator();
            model.initAnalysisColumn();
            while ( ri.hasNext() ) {
                List<DTCellValue52> row = ri.next();
                model.getData().add( row );
                model.getData().get( rowIndex ).get( 0 ).setNumericValue( new BigDecimal( rowIndex + 1 ) );
    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.