Examples of MetadataCol


Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

        };
        colCount++;

        //now to metadata
        for ( int i = 0; i < dt.getMetadataCols().size(); i++ ) {
            final MetadataCol attr = dt.getMetadataCols().get( i );
            fds[colCount] = new StringFieldDef( attr.attr );
            cols[colCount] = new ColumnConfig() {
                {
                    setHeader( attr.attr );
                    setDataIndex( attr.attr );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

                                                   addbutton.setTitle( constants.AddMetadataToTheRule() );

                                                   addbutton.addClickListener( new ClickListener() {
                                                       public void onClick(Widget w) {
                                                           MetadataCol met = new MetadataCol();
                                                           met.attr = box.getText();
                                                           dt.getMetadataCols().add( met );
                                                           scrapeData( dt.getMetadataCols().size() + 1 );
                                                           refreshGrid();
                                                           refreshAttributeWidget();
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

        };
        colCount++;

        //now to metadata
        for ( int i = 0; i < dt.getMetadataCols().size(); i++ ) {
            final MetadataCol attr = dt.getMetadataCols().get( i );
            fds[colCount] = new StringFieldDef( attr.attr );
            cols[colCount] = new ColumnConfig() {
                {
                    setHeader( attr.attr );
                    setDataIndex( attr.attr );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

    public void testConversion() {

        GuidedDecisionTable dt = new GuidedDecisionTable();
        dt.tableName = "michael";

        MetadataCol md = new MetadataCol();
        md.attr = "legacy";
        md.defaultValue = "yes";
        dt.getMetadataCols().add( md );

        AttributeCol attr = new AttributeCol();
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

    public void testConversionPatternGrouping() {

        GuidedDecisionTable dt = new GuidedDecisionTable();
        dt.tableName = "michael";

        MetadataCol md = new MetadataCol();
        md.attr = "legacy";
        md.defaultValue = "yes";
        dt.getMetadataCols().add( md );

        AttributeCol attr = new AttributeCol();
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

        // add cols for LHS
        RowNumberCol rnc = new RowNumberCol();

        DescriptionCol dc = new DescriptionCol();

        MetadataCol mdc = new MetadataCol();
        mdc.setMetadata( "cheese" );

        AttributeCol ac = new AttributeCol();
        ac.setAttribute( "salience" );

        ActionSetFieldCol asfc = new ActionSetFieldCol();
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

    // setup temp list
    List<RuleMetadata> metadataList = new ArrayList<RuleMetadata>();

    for (int j = 0; j < metadataCols.size(); j++) {
      MetadataCol meta = metadataCols.get(j);
      String cell = row[j + GuidedDecisionTable.INTERNAL_ELEMENTS];
      if (validCell(cell)) {
        metadataList.add(new RuleMetadata(meta.attr, cell));
      }
    }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

    // setup temp list
    List<RuleMetadata> metadataList = new ArrayList<RuleMetadata>();

    for (int j = 0; j < metadataCols.size(); j++) {
      MetadataCol meta = metadataCols.get(j);
      String cell = row[j + GuidedDecisionTable.INTERNAL_ELEMENTS];
      if (validCell(cell)) {
        metadataList.add(new RuleMetadata(meta.attr, cell));
      }
    }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

    dt.getActionCols().add(new ActionInsertFactCol());
    ActionSetFieldCol set = new ActionSetFieldCol();
    set.setFactField( "foo" );
    dt.getActionCols().add(set);

    dt.getMetadataCols().add(new MetadataCol());

    dt.getAttributeCols().add(new AttributeCol());

    dt.getConditionCols().add(new ConditionCol());
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.MetadataCol

        // p.doAttribs(0,metadataCols, row, rm);

        assertSame( orig,
                    rm.metadataList );

        MetadataCol col1 = new MetadataCol();
        col1.setMetadata( "foo" );
        MetadataCol col2 = new MetadataCol();
        col2.setMetadata( "foo2" );
        metadataCols.add( col1 );
        metadataCols.add( col2 );

        p.doMetadata( metadataCols,
                      row,
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.