Examples of DropDownData


Examples of org.drools.ide.common.client.modeldriven.DropDownData

                    type = this.getModeller().getModel().getRhsBoundFact( this.model.variable ).factType;
                }
            }
        }

        DropDownData enums = completions.getEnums( type,
                                                        this.model.fieldValues,
                                                        val.field );
        return new MethodParameterValueEditor(val,
                enums,
                this.getModeller(),
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

    }

    private Widget valueEditor(final ActionFieldValue val) {
        SuggestionCompletionEngine completions = this.getModeller().getSuggestionCompletions();
      DropDownData enums = completions.getEnums(this.factType, this.model.fieldValues, val.field);

        ActionValueEditor actionValueEditor = new ActionValueEditor(val, enums,this.getModeller(),val.type,this.readOnly);
        actionValueEditor.setOnChangeCommand(new Command() {
            public void execute() {
                setModified(true);
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

            if (type == null) {
                type = this.getModeller().getModel().getRhsBoundFact(this.model.variable).factType;
            }
        }

        DropDownData enums = completions.getEnums(type, this.model.fieldValues, val.field);
        ActionValueEditor actionValueEditor = new ActionValueEditor(val, enums, this.getModeller(), val.type, this.readOnly);
        actionValueEditor.setOnChangeCommand(new Command() {

            public void execute() {
                setModified(true);
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

            if (type == null) {
                type = this.getModeller().getModel().getRhsBoundFact(this.model.variable).factType;
            }
        }

        DropDownData enums = completions.getEnums(type, this.model.fieldValues, val.field);
        ActionValueEditor actionValueEditor = new ActionValueEditor(val, enums, this.getModeller(), val.type, this.readOnly);
        actionValueEditor.setOnChangeCommand(new Command() {

            public void execute() {
                setModified(true);
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

                                         FactPattern pattern,
                                         String fieldName) {
        String valueType = sce.getFieldType( pattern.factType,
                                             fieldName );

        final DropDownData dropDownData;
        if ( SuggestionCompletionEngine.TYPE_BOOLEAN.equals( valueType ) ) {
            dropDownData = DropDownData.create( new String[]{"true", "false"} ); //NON-NLS
        } else {
            dropDownData = sce.getEnums( pattern,
                                         fieldName );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

    }

    private Widget valueEditor(final ActionFieldValue val) {
        SuggestionCompletionEngine completions = this.getModeller().getSuggestionCompletions();
      DropDownData enums = completions.getEnums(this.factType, this.model.fieldValues, val.field);

        ActionValueEditor actionValueEditor = new ActionValueEditor(val, enums,this.getModeller(),val.type,this.readOnly);
        actionValueEditor.setOnChangeCommand(new Command() {
            public void execute() {
                setModified(true);
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

      if (type == null) {
        type = this.getModeller().getModel().getRhsBoundFact(this.model.variable).factType;
      }
    }

    DropDownData enums = completions.getEnums(type, this.model.fieldValues, val.field);
   
        return new MethodParameterValueEditor(val,
                enums,
                this.getModeller(),
                val.type, new Command() {
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

                    //a couple of drop-downs so it's quicker to simply update them all.
                    updateEnumDropDowns();
                }
            };

            DropDownData dropDownData = getDropDownData();
            resultWidget = new EnumDropDown( value.getValue(),
                                             handler,
                                             dropDownData );

            //Wrap widget within a HorizontalPanel to add a space before and after the Widget
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.DropDownData

            resultWidget.setDropDownData( selectedValue.getValue(),
                                          getDropDownData() );
        }

        private DropDownData getDropDownData() {
            DropDownData dropDownData = completions.getEnums( factType,
                                                              factField,
                                                              sentence.getEnumFieldValueMap() );
            return dropDownData;
        }
View Full Code Here

Examples of org.drools.workbench.models.commons.shared.oracle.model.DropDownData

    }

    private Widget valueEditor( final ActionFieldValue val ) {
        PackageDataModelOracle completions = this.getModeller().getSuggestionCompletions();
        DropDownData enums = completions.getEnums( this.factType,
                                                   val.getField(),
                                                   FieldNatureUtil.toMap( this.model.getFieldValues() ) );

        ActionValueEditor actionValueEditor = new ActionValueEditor( val,
                                                                     enums,
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.