Examples of BooleanCallback


Examples of com.smartgwt.client.util.BooleanCallback

        resetButton = new EnhancedIButton(MSG.common_button_reset());
        resetButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                String message = MSG.view_summaryDashboard_resetConfirm();

                SC.ask(message, new BooleanCallback() {
                    public void execute(Boolean confirmed) {
                        if (confirmed) {
                            dashboardView.delete();
                            setDashboard(getDefaultDashboard());
                            markForRedraw();
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

                }

                final boolean newIgnoreFlag = !type.isIgnored();
                String msg = newIgnoreFlag ? MSG.view_adminConfig_ignoreResourceTypes_confirmIgnore(type.getName())
                    : MSG.view_adminConfig_ignoreResourceTypes_confirmUnignore(type.getName());
                SC.ask(MSG.common_msg_areYouSure(), msg, new BooleanCallback() {
                    public void execute(Boolean value) {
                        if (Boolean.TRUE.equals(value)) {
                            // call server to flip ignore flag on type
                            // if we are going to ignore a type, then increase the timeout since this might take a while if there are lots of resources of the type
                            ResourceTypeGWTServiceAsync service;
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

        addTableAction(MSG.view_adminTopology_server_removeSelected(), null, ButtonColor.RED,
            new AuthorizedTableAction(this, TableActionEnablement.ANY, Permission.MANAGE_SETTINGS) {
                public void executeAction(final ListGridRecord[] selections, Object actionValue) {
                    List<String> selectedNames = getSelectedNames(selections);
                    String message = MSG.view_adminTopology_message_removeServerConfirm(selectedNames.toString());
                    SC.ask(message, new BooleanCallback() {
                        public void execute(Boolean confirmed) {
                            if (null == confirmed || !confirmed) { // clicked "No" or closed the dialog
                                refreshTableInfo();
                            } else {
                                int[] selectedIds = getSelectedIds(selections);
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

        addTableAction(label, null, ButtonColor.BLUE, new AuthorizedTableAction(this, TableActionEnablement.ANY,
            Permission.MANAGE_SETTINGS) {
            public void executeAction(final ListGridRecord[] selections, Object actionValue) {
                List<String> selectedNames = getSelectedNames(selections);
                String message = MSG.view_adminTopology_message_setModeConfirm(selectedNames.toString(), mode.name());
                SC.ask(message, new BooleanCallback() {
                    public void execute(Boolean confirmed) {
                        if (null == confirmed || !confirmed) { // clicked "No" or closed the dialog
                            refreshTableInfo();
                        } else {
                            int[] selectedIds = getSelectedIds(selections);
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

            // (one of two things - either the host fingerprint is not known and we should add it
            // or the host fingerprint has changed and we should change it), then ask the question
            // (which jsch has provided us and we put in the SSHSecurityException) and if the user
            // answers "yes" then do the work as we originally were asked to do.
            if (caught instanceof SSHSecurityException) {
                SC.ask(caught.getMessage(), new BooleanCallback() {
                    @Override
                    public void execute(Boolean value) {
                        if (value != null && value.booleanValue()) {
                            hostAuthorized = true; // the user has just authorized the host
                            doActualWork();
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

    @Override
    public void onRecordDoubleClick(RecordDoubleClickEvent event) {
        final Record record = event.getRecord();
        final String name = record.getAttribute(ATTR_NAME);

        SC.ask(MSG.view_searchBar_savedSearch_confirmDelete(name), new BooleanCallback() {
            public void execute(Boolean confirmed) {
                if (confirmed) {
                    Integer id = record.getAttributeAsInt(ATTR_ID);

                    GWTServiceLookup.getSearchService().deleteSavedSearch(id, new AsyncCallback<Void>() {
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

        final ParametrizedMessage success, final ParametrizedMessage failure, final StorageNodeOperation operationType) {
        final String operationName = (String) actionValue;
        final List<String> selectedAddresses = getSelectedAddresses(selections);
        String areYouSureQuestion = operationType == StorageNodeOperation.OTHER ? question.getMessage(operationName,
            selectedAddresses.toString()) : question.getMessage(selectedAddresses.toString());
        SC.ask(areYouSureQuestion, new BooleanCallback() {
            public void execute(Boolean confirmed) {
                if (confirmed) {
                    final CountDownLatch latch = CountDownLatch.create(selections.length, new Command() {
                        @Override
                        public void execute() {
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

    }
   
    private void saveFormCheckCannedExpr(final DynamicForm form, final DynaGroupChildrenView dynaGroupChildrenView,
        final boolean recalc) {
        if (this.groupDefinition.getCannedExpression() != null) {
            SC.ask(MSG.view_dynagroup_saveCannedDefWarning(this.groupDefinition.getCannedExpression().replaceAll(":.*", "")), new BooleanCallback() {
                public void execute(Boolean confirmed) {
                    if (confirmed) {
                        saveForm(form, dynaGroupChildrenView, recalc);
                    }
                }
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

                    if (StorageNodeConfigurationEditor.this.configuration.equals(configuration)) {
                        SC.say("Info", MSG.view_adminTopology_storageNodes_settings_noChanges());
                    } else {
                        SC.ask(
                            MSG.view_adminTopology_storageNodes_settings_confirmation(),
                            new BooleanCallback() {
                                @Override
                                public void execute(Boolean value) {
                                    if (value) {
                                        save(configuration);
                                    }
View Full Code Here

Examples of com.smartgwt.client.util.BooleanCallback

            public void onCloseClick(final TabCloseClickEvent tabCloseClickEvent) {
                tabCloseClickEvent.cancel();
                final DashboardView dashboardView = (DashboardView) tabCloseClickEvent.getTab().getPane();

                SC.ask(MSG.view_dashboards_confirm1() + " [" + dashboardView.getStoredDashboard().getName() + "]?",
                    new BooleanCallback() {
                        public void execute(Boolean confirmed) {
                            if (confirmed) {
                                dashboardsByName.remove(tabCloseClickEvent.getTab().getTitle());
                                tabSet.removeTab(tabCloseClickEvent.getTab());
                                dashboardView.delete();
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.