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

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


            if ( type == null && !this.readOnly ) {
                type = this.getModeller().getModel().getRHSBoundFact( this.model.variable ).factType;
            }
        }

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


        } else if ( sce.hasEnums( pattern.getFactType(),
                                  column.getFactField() ) ) {
            final Context context = new Context( pattern,
                                                 column );
            final Map<String, String> currentValueMap = dropDownManager.getCurrentValueMap( context );
            final DropDownData dd = sce.getEnums( pattern.getFactType(),
                                                  column.getFactField(),
                                                  currentValueMap );
            if ( dd == null ) {
                return makeListBox( new String[0],
                                    pattern,
View Full Code Here

        } else if ( sce.hasEnums( pattern.getFactType(),
                                  column.getFactField() ) ) {
            final Context context = new Context( pattern,
                                                 column );
            final Map<String, String> currentValueMap = dropDownManager.getCurrentValueMap( context );
            final DropDownData dd = sce.getEnums( pattern.getFactType(),
                                                  column.getFactField(),
                                                  currentValueMap );
            if ( dd == null ) {
                return makeListBox( new String[0],
                                    pattern,
View Full Code Here

        } else if ( sce.hasEnums( column.getFactType(),
                                  column.getFactField() ) ) {
            final Context context = new Context( column );
            final Map<String, String> currentValueMap = dropDownManager.getCurrentValueMap( context );
            final DropDownData dd = sce.getEnums( column.getFactType(),
                                                  column.getFactField(),
                                                  currentValueMap );
            if ( dd == null ) {
                return makeListBox( new String[0],
                                    column,
View Full Code Here

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

        DropDownData enums = completions.getEnums( type,
                                                   val.field,
                                                   this.model.fieldValues
                );

        return new MethodParameterValueEditor( val,
View Full Code Here

                    //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

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

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

    }

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

        ActionValueEditor actionValueEditor = new ActionValueEditor( val,
View Full Code Here

            if ( type == null && !this.readOnly ) {
                type = this.getModeller().getModel().getRHSBoundFact( this.model.variable ).factType;
            }
        }

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

        } else if (flType != null && flType.equals(SuggestionCompletionEngine.TYPE_DATE)) {
            addDateEditor();

        } else {
            final DropDownData dropDownData = helper.getEnums();

            if (dropDownData != null) {
                addDropDownEditor(dropDownData);
            } else {
View Full Code Here

TOP

Related Classes of org.drools.ide.common.client.modeldriven.DropDownData

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.