Package org.drools.workbench.screens.guided.rule.client.editor

Examples of org.drools.workbench.screens.guided.rule.client.editor.CustomFormPopUp


            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     Constants.INSTANCE.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here


            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     Constants.INSTANCE.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     GuidedRuleEditorResources.CONSTANTS.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     GuidedRuleEditorResources.CONSTANTS.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     Constants.INSTANCE.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     Constants.INSTANCE.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     Constants.INSTANCE.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     GuidedRuleEditorResources.CONSTANTS.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

            //read-only mode
            if ( !readonly ) {
                this.btnCustomForm.addClickHandler( new ClickHandler() {

                    public void onClick( ClickEvent event ) {
                        final CustomFormPopUp customFormPopUp =
                                new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                                                     GuidedRuleEditorResources.CONSTANTS.FieldValue(),
                                                     DSLCustomFormButton.this.customFormConfiguration );

                        customFormPopUp.addOkButtonHandler( new ClickHandler() {

                            public void onClick( ClickEvent event ) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }

                    }
                } );
View Full Code Here

TOP

Related Classes of org.drools.workbench.screens.guided.rule.client.editor.CustomFormPopUp

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.