Examples of DSLVariableValue


Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

            int endVariable = getIndexForEndOfVariable( dslDefinition,
                                                        startVariable );
            String currVariable = dslDefinition.substring( startVariable + 1,
                                                           endVariable );

            DSLVariableValue value = dslValues.get( index );
            Widget varWidget = processVariable( currVariable,
                                                value );
            lineWidgets.add( varWidget );
            index++;
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

            int endVariable = getIndexForEndOfVariable( dslDefinition,
                                                        startVariable );
            String currVariable = dslDefinition.substring( startVariable + 1,
                                                           endVariable );

            DSLVariableValue value = dslValues.get( index );
            Widget varWidget = processVariable( currVariable,
                                                value );
            lineWidgets.add( varWidget );
            index++;
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

            //copy of it with only the 'value' part modified
            if ( oldVariableValue instanceof DSLComplexVariableValue ) {
                return new DSLComplexVariableValue( ((DSLComplexVariableValue) oldVariableValue).getId(),
                                                    box.getText() );
            }
            return new DSLVariableValue( box.getText() );
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

            //copy of it with only the 'value' part modified
            if ( oldVariableValue instanceof DSLComplexVariableValue ) {
                return new DSLComplexVariableValue( ((DSLComplexVariableValue) oldVariableValue).getId(),
                                                    box.getText() );
            }
            return new DSLVariableValue( box.getText() );
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

                public void valueChanged(String newText,
                                         String newValue) {

                    makeDirty();
                    selectedValue = new DSLVariableValue( newValue );

                    //When the value changes we need to reset the content of *ALL* DSLSentenceWidget drop-downs.
                    //An improvement would be to determine the chain of dependent drop-downs and only update
                    //children of the one whose value changes. However in reality DSLSentences only contain
                    //a couple of drop-downs so it's quicker to simply update them all.
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

        }

        public DSLVariableValue getSelectedValue() {
            int selectedIndex = resultWidget.getSelectedIndex();
            if ( selectedIndex != -1 ) {
                return new DSLVariableValue( resultWidget.getValue( selectedIndex ) );
            } else {
                return new DSLVariableValue( "" );
            }
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

                public void valueChanged(String newText,
                                         String newValue) {

                    makeDirty();
                    selectedValue = new DSLVariableValue( newValue );

                    //When the value changes we need to reset the content of *ALL* DSLSentenceWidget drop-downs.
                    //An improvement would be to determine the chain of dependent drop-downs and only update
                    //children of the one whose value changes. However in reality DSLSentences only contain
                    //a couple of drop-downs so it's quicker to simply update them all.
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

        }

        public DSLVariableValue getSelectedValue() {
            int selectedIndex = resultWidget.getSelectedIndex();
            if ( selectedIndex != -1 ) {
                return new DSLVariableValue( resultWidget.getValue( selectedIndex ) );
            } else {
                return new DSLVariableValue( "" );
            }
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

            initWidget( hp );
        }

        public DSLVariableValue getSelectedValue() {
            String value = this.resultWidget.getSelectedIndex() == 0 ? "true" : "false";
            return new DSLVariableValue( value );
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLVariableValue

            initWidget( hp );
        }

        public DSLVariableValue getSelectedValue() {
            String value = this.resultWidget.getSelectedIndex() == 0 ? "true" : "false";
            return new DSLVariableValue( value );
        }
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.