Package org.drools.workbench.models.datamodel.oracle

Examples of org.drools.workbench.models.datamodel.oracle.DropDownData


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


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

        } else if ( oracle.hasEnums( column.getFactType(),
                                     column.getFactField() ) ) {
            final LimitedEntryDropDownManager.Context context = new LimitedEntryDropDownManager.Context( column );
            final Map<String, String> currentValueMap = dropDownManager.getCurrentValueMap( context );
            final DropDownData dd = oracle.getEnums( column.getFactType(),
                                                     column.getFactField(),
                                                     currentValueMap );
            if ( dd == null ) {
                return makeListBox( new String[ 0 ],
                                    column,
                                    value );
            }
            return makeListBox( dd.getFixedList(),
                                column,
                                value );
        }

        DataType.DataTypes type = utils.getTypeSafeType( column );
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 = oracle.getEnums( factType,
                                                         factField,
                                                         sentence.getEnumFieldValueMap() );
            return dropDownData;
        }
View Full Code Here

    }

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

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

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

        DropDownData enums = oracle.getEnums( type,
                                              val.getField(),
                                              FieldNatureUtil.toMap( this.model.getFieldValues() ) );
        ActionValueEditor actionValueEditor = new ActionValueEditor( val,
                                                                     enums,
                                                                     this.getModeller(),
View Full Code Here

            if ( type == null ) {
                type = this.getModeller().getModel().getRHSBoundFact( this.model.getVariable() ).getFactType();
            }
        }

        DropDownData enums = oracle.getEnums( type,
                                              val.getField(),
                                              FieldNatureUtil.toMap( this.model.getFieldValues() ) );

        return new MethodParameterValueEditor( val,
                                               enums,
View Full Code Here

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

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

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

            panel.add( datePicker );

        } else {
            Map<String, String> currentValueMap = new HashMap<String, String>();
            // TODO fill currentValueMap with values of other VerifyFields (if any)
            DropDownData dropDownData = oracle.getEnums( factType,
                                                         field.getFieldName(),
                                                         currentValueMap );
            if ( dropDownData != null ) {
                //GUVNOR-1324: Java enums are of type TYPE_COMPARABLE whereas Guvnor enums are not.
                //The distinction here controls whether the EXPECTED value is handled as a true
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.datamodel.oracle.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.