Examples of DTCellValue52


Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

    public static List<DTCellValue52> makeDataRowList( Object[] oldRow ) {
        List<DTCellValue52> row = new ArrayList<DTCellValue52>();

        //Row numbers are numerical
        if ( oldRow[ 0 ] instanceof String ) {
            DTCellValue52 rowDcv = new DTCellValue52( new Integer( (String) oldRow[ 0 ] ) );
            row.add( rowDcv );
        } else if ( oldRow[ 0 ] instanceof Number ) {
            DTCellValue52 rowDcv = new DTCellValue52( ( (Number) oldRow[ 0 ] ).intValue() );
            row.add( rowDcv );
        } else {
            DTCellValue52 rowDcv = new DTCellValue52( oldRow[ 0 ] );
            row.add( rowDcv );
        }

        for ( int iCol = 1; iCol < oldRow.length; iCol++ ) {

            //The original model was purely String based. Conversion to typed fields
            //occurs when the Model is re-saved in Guvnor. Ideally the conversion
            //should occur here but that requires reference to a SuggestionCompletionEngine
            //which requires RepositoryServices. I did not want to make a dependency between
            //common IDE classes and the Repository
            DTCellValue52 dcv = new DTCellValue52( oldRow[ iCol ] );
            row.add( dcv );
        }
        return row;
    }
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

                          rm );

            } else {

                int index = allColumns.indexOf( c );
                DTCellValue52 dcv = row.get( index );
                String cell = "";

                if ( c instanceof LimitedEntryCol ) {
                    if ( dcv.getBooleanValue() == true ) {
                        LimitedEntryCol lec = (LimitedEntryCol) c;
                        cell = GuidedDTDRLUtilities.convertDTCellValueToString( lec.getValue() );
                    }
                } else {
                    cell = GuidedDTDRLUtilities.convertDTCellValueToString( dcv );
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

    }

    private AttributeCol52 makeNewColumn( AttributeCol c ) {
        AttributeCol52 nc = new AttributeCol52();
        nc.setAttribute( c.attr );
        nc.setDefaultValue( new DTCellValue52( c.defaultValue ) );
        nc.setHideColumn( c.hideColumn );
        nc.setReverseOrder( c.reverseOrder );
        nc.setUseRowNumber( c.useRowNumber );
        nc.setWidth( c.width );
        return nc;
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

        return nc;
    }

    private MetadataCol52 makeNewColumn( MetadataCol c ) {
        MetadataCol52 nc = new MetadataCol52();
        nc.setDefaultValue( new DTCellValue52( c.defaultValue ) );
        nc.setHideColumn( c.hideColumn );
        nc.setMetadata( c.attr );
        nc.setWidth( c.width );
        return nc;
    }
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

                           List<LabelledAction> actions,
                           TemplateDataProvider rowDataProvider,
                           List<DTCellValue52> row,
                           RuleModel rm ) {
        final int index = allColumns.indexOf( column );
        final DTCellValue52 dcv = row.get( index );
        if ( dcv.getBooleanValue() ) {
            for ( IAction action : column.getDefinition() ) {
                addAction( action,
                           actions );
            }
        }
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

    }

    private ConditionCol52 makeNewColumn( ConditionCol c ) {
        ConditionCol52 nc = new ConditionCol52();
        nc.setConstraintValueType( c.constraintValueType );
        nc.setDefaultValue( new DTCellValue52( c.defaultValue ) );
        nc.setFactField( c.factField );
        nc.setFieldType( DataType.TYPE_STRING );
        nc.setHeader( c.header );
        nc.setHideColumn( c.hideColumn );
        nc.setOperator( c.operator );
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

            return makeNewColumn( (ActionRetractFactCol) c );
        } else if ( c instanceof ActionSetFieldCol) {
            return makeNewColumn( (ActionSetFieldCol) c );
        }
        ActionCol52 nc = new ActionCol52();
        nc.setDefaultValue( new DTCellValue52( c.defaultValue ) );
        nc.setHeader( c.header );
        nc.setHideColumn( c.hideColumn );
        nc.setWidth( c.width );
        return nc;
    }
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

        //Check whether the parameter-less BRL fragment needs inclusion
        if ( !hasVariables( column ) ) {
            final BRLActionVariableColumn variableColumn = column.getChildColumns().get( 0 );
            final int index = allColumns.indexOf( variableColumn );
            final DTCellValue52 dcv = row.get( index );
            if ( dcv.getBooleanValue() ) {
                for ( IAction action : column.getDefinition() ) {
                    addAction( action,
                               actions );
                }
            }
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

    }

    private ActionInsertFactCol52 makeNewColumn( ActionInsertFactCol c ) {
        ActionInsertFactCol52 nc = new ActionInsertFactCol52();
        nc.setBoundName( c.boundName );
        nc.setDefaultValue( new DTCellValue52( c.defaultValue ) );
        nc.setFactField( c.factField );
        nc.setFactType( c.factType );
        nc.setHeader( c.header );
        nc.setHideColumn( c.hideColumn );
        nc.setType( c.type );
View Full Code Here

Examples of org.drools.guvnor.models.guided.dtable.shared.model.DTCellValue52

        return nc;
    }

    private ActionRetractFactCol52 makeNewColumn( ActionRetractFactCol c ) {
        ActionRetractFactCol52 nc = new ActionRetractFactCol52();
        nc.setDefaultValue( new DTCellValue52( c.defaultValue ) );
        nc.setHeader( c.header );
        nc.setHideColumn( c.hideColumn );
        nc.setWidth( c.width );
        return nc;
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.