Package org.drools.ide.common.client.modeldriven.dt52

Examples of org.drools.ide.common.client.modeldriven.dt52.DescriptionCol52


        GuidedDTDRLPersistence p = new GuidedDTDRLPersistence();
        String[] row = new String[]{"1", "desc", "true", "true", "true", "true", "true"};

        List<BaseColumn> allColumns = new ArrayList<BaseColumn>();
        allColumns.add( new RowNumberCol52() );
        allColumns.add( new DescriptionCol52() );
        List<ActionCol52> cols = new ArrayList<ActionCol52>();

        ActionWorkItemCol52 awi = new ActionWorkItemCol52();
        PortableWorkDefinition pwd = new PortableWorkDefinition();
        pwd.setName( "WorkItem" );
View Full Code Here


        GuidedDTDRLPersistence p = new GuidedDTDRLPersistence();
        String[] row = new String[]{"1", "desc", "true", "true", "false"};

        List<BaseColumn> allColumns = new ArrayList<BaseColumn>();
        allColumns.add( new RowNumberCol52() );
        allColumns.add( new DescriptionCol52() );
        List<ActionCol52> cols = new ArrayList<ActionCol52>();

        ActionWorkItemCol52 awi = new ActionWorkItemCol52();
        PortableWorkDefinition pwd = new PortableWorkDefinition();
        pwd.setName( "WorkItem" );
View Full Code Here

               ActionType.Code.DESCRIPTION,
               conversionResult );
    }

    public void populateDecisionTable(GuidedDecisionTable52 dtable) {
        DescriptionCol52 column = new DescriptionCol52();
        dtable.setDescriptionCol( column );
        addColumnData( dtable,
                       column );
    }
View Full Code Here

        newDTModel.setTableName( legacyDTModel.tableName );
        newDTModel.setParentName( legacyDTModel.parentName );

        newDTModel.setRowNumberCol( new RowNumberCol52() );
        newDTModel.setDescriptionCol( new DescriptionCol52() );

        //Metadata columns' data-type is implicitly defined in the metadata value. For example
        //a String metadata attribute is: "value", a numerical: 1. No conversion action required
        for ( MetadataCol c : legacyDTModel.getMetadataCols() ) {
            newDTModel.getMetadataCols().add( makeNewColumn( c ) );
View Full Code Here

     * the Decision Table.
     */
    public void scrapeColumns() {

        RowNumberCol52 rnCol = null;
        DescriptionCol52 descCol = null;
        List<MetadataCol52> newMetaColumns = new ArrayList<MetadataCol52>();
        List<AttributeCol52> newAttributeColumns = new ArrayList<AttributeCol52>();
        List<Pattern52> newPatterns = new ArrayList<Pattern52>();
        List<ActionCol52> newActionColumns = new ArrayList<ActionCol52>();

        // Extract column information
        for ( DynamicColumn<DTColumnConfig52> column : widget.getGridWidget().getColumns() ) {
            DTColumnConfig52 modelCol = column.getModelColumn();
            if ( modelCol instanceof RowNumberCol52 ) {
                rnCol = (RowNumberCol52) modelCol;
                rnCol.setWidth( column.getWidth() );
                rnCol.setHideColumn( !column.isVisible() );
                model.setRowNumberCol( rnCol );

            } else if ( modelCol instanceof DescriptionCol52 ) {
                descCol = (DescriptionCol52) modelCol;
                descCol.setWidth( column.getWidth() );
                descCol.setHideColumn( !column.isVisible() );
                model.setDescriptionCol( descCol );

            } else if ( modelCol instanceof MetadataCol52 ) {
                MetadataCol52 tc = (MetadataCol52) modelCol;
                tc.setWidth( column.getWidth() );
View Full Code Here

        GuidedDTDRLPersistence p = new GuidedDTDRLPersistence();
        String[] row = new String[]{"1", "desc", "a", ""};

        List<DTColumnConfig52> allColumns = new ArrayList<DTColumnConfig52>();
        allColumns.add( new RowNumberCol52() );
        allColumns.add( new DescriptionCol52() );
        List<AttributeCol52> attributeCols = new ArrayList<AttributeCol52>();

        RuleModel rm = new RuleModel();
        RuleAttribute[] orig = rm.attributes;
        p.doAttribs( allColumns,
View Full Code Here

        data[0] = row;

        List<DTColumnConfig52> allColumns = new ArrayList<DTColumnConfig52>();
        List<Pattern52> allPatterns = new ArrayList<Pattern52>();
        allColumns.add( new RowNumberCol52() );
        allColumns.add( new DescriptionCol52() );
        allColumns.add( new MetadataCol52() );

        Pattern52 p1 = new Pattern52();
        p1.setBoundName( "p1" );
        p1.setFactType( "Person" );
View Full Code Here

        data[0] = row;

        List<DTColumnConfig52> allColumns = new ArrayList<DTColumnConfig52>();
        List<Pattern52> allPatterns = new ArrayList<Pattern52>();
        allColumns.add( new RowNumberCol52() );
        allColumns.add( new DescriptionCol52() );
        allColumns.add( new MetadataCol52() );

        Pattern52 p1 = new Pattern52();
        p1.setNegated( true );
        p1.setBoundName( "p1" );
View Full Code Here

        data[1] = row[1];

        List<DTColumnConfig52> allColumns = new ArrayList<DTColumnConfig52>();
        List<Pattern52> allPatterns = new ArrayList<Pattern52>();
        allColumns.add( new RowNumberCol52() );
        allColumns.add( new DescriptionCol52() );

        Pattern52 p1 = new Pattern52();
        p1.setBoundName( "p1" );
        p1.setFactType( "Person" );
        allPatterns.add( p1 );
View Full Code Here

        data[2] = row[2];

        List<DTColumnConfig52> allColumns = new ArrayList<DTColumnConfig52>();
        List<Pattern52> allPatterns = new ArrayList<Pattern52>();
        allColumns.add( new RowNumberCol52() );
        allColumns.add( new DescriptionCol52() );

        Pattern52 p1 = new Pattern52();
        p1.setBoundName( "p1" );
        p1.setFactType( "Person" );
        allPatterns.add( p1 );
View Full Code Here

TOP

Related Classes of org.drools.ide.common.client.modeldriven.dt52.DescriptionCol52

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.