Examples of YesNoCancelPopup


Examples of org.kie.uberfire.client.common.YesNoCancelPopup

            navigator.setWidget( row, ++col, new Button( CoreConstants.INSTANCE.Revert() ) {{
                setType( ButtonType.DANGER );
                addClickHandler( new ClickHandler() {
                    @Override
                    public void onClick( final ClickEvent event ) {
                        final YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Warning(),
                                                                                                        CoreConstants.INSTANCE.ConfirmStateRevert(),
                                                                                                        new Command() {
                                                                                                            @Override
                                                                                                            public void execute() {
                                                                                                                onRevertCommand.execute( dataContent );
                                                                                                            }
                                                                                                        },
                                                                                                        new Command() {
                                                                                                            @Override
                                                                                                            public void execute() {
                                                                                                            }
                                                                                                        },
                                                                                                        null
                                                                                                      );
                        yesNoCancelPopup.setCloseVisible( false );
                        yesNoCancelPopup.show();
                    }
                } );
            }} );
        }
View Full Code Here

Examples of org.kie.uberfire.client.common.popups.YesNoCancelPopup

            navigator.setWidget( row, ++col, new Button( CoreConstants.INSTANCE.Revert() ) {{
                setType( ButtonType.DANGER );
                addClickHandler( new ClickHandler() {
                    @Override
                    public void onClick( final ClickEvent event ) {
                        final YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Warning(),
                                                                                                        CoreConstants.INSTANCE.ConfirmStateRevert(),
                                                                                                        new Command() {
                                                                                                            @Override
                                                                                                            public void execute() {
                                                                                                                onRevertCommand.execute( dataContent );
                                                                                                            }
                                                                                                        },
                                                                                                        new Command() {
                                                                                                            @Override
                                                                                                            public void execute() {
                                                                                                            }
                                                                                                        },
                                                                                                        null
                                                                                                      );
                        yesNoCancelPopup.setCloseVisible( false );
                        yesNoCancelPopup.show();
                    }
                } );
            }} );
        }
View Full Code Here

Examples of org.kie.uberfire.client.common.popups.YesNoCancelPopup

                message = Constants.INSTANCE.ConfirmModuleDeletion( moduleRow.getName() );
            } else if ( model.isOrphanProjects() ) {
                message = Constants.INSTANCE.ConfirmProjectDeletion( moduleRow.getName() );
            }

            YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Information(),
                    message,
                    new Command() {
                        @Override
                        public void execute() {
                            deleteSelectedModule( project );
                        }
                    },
                    CommonConstants.INSTANCE.YES(),
                    ButtonType.DANGER,
                    IconType.MINUS_SIGN,
                    new Command() {
                        @Override public void execute() {
                            //do nothing
                        }
                    },
                    null,
                    ButtonType.DEFAULT,
                    null,
                    new Command() {
                        @Override public void execute() {
                            //do nothing.
                        }
                    },
                    null,
                    ButtonType.DEFAULT,
                    null
            );

            yesNoCancelPopup.setCloseVisible( false );
            yesNoCancelPopup.show();
        }
    }
View Full Code Here

Examples of org.kie.uberfire.client.common.popups.YesNoCancelPopup

    @Override
    public void onSaveProjectStructure() {

        if ( model.getPOM() != null ) {

            YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Information(),
                    Constants.INSTANCE.ConfirmSaveProjectStructure(),
                    new Command() {
                        @Override
                        public void execute() {
                            saveProjectStructure();
                        }
                    },
                    CommonConstants.INSTANCE.YES(),
                    ButtonType.PRIMARY,
                    IconType.SAVE,
                    new Command() {
                        @Override public void execute() {
                            //do nothing
                        }
                    },
                    null,
                    ButtonType.DEFAULT,
                    null,
                    new Command() {
                        @Override public void execute() {
                            //do nothing.
                        }
                    },
                    null,
                    ButtonType.DEFAULT,
                    null
            );

            yesNoCancelPopup.setCloseVisible( false );
            yesNoCancelPopup.show();
        }
    }
View Full Code Here

Examples of org.kie.uberfire.client.common.popups.YesNoCancelPopup

    }

    @Override
    public void onConvertToMultiModule() {

        YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Information(),
                Constants.INSTANCE.ConfirmConvertToMultiModuleStructure(),
                new Command() {
                    @Override
                    public void execute() {
                        convertToMultiModule();
                    }
                },
                CommonConstants.INSTANCE.YES(),
                ButtonType.PRIMARY,
                IconType.SAVE,
                new Command() {
                    @Override public void execute() {
                        //do nothing
                    }
                },
                null,
                ButtonType.DEFAULT,
                null,
                new Command() {
                    @Override public void execute() {
                        //do nothing.
                    }
                },
                null,
                ButtonType.DEFAULT,
                null
        );

        yesNoCancelPopup.setCloseVisible( false );
        yesNoCancelPopup.show();

    }
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.