Examples of onSuccess()


Examples of org.eurekastreams.web.client.ui.common.form.FormBuilder.onSuccess()

                        new Observer<UpdatedSystemSettingsResponseEvent>()
                        {

                            public void update(final UpdatedSystemSettingsResponseEvent arg1)
                            {
                                form.onSuccess();
                                Session.getInstance()
                                        .getEventBus()
                                        .notifyObservers(new ShowNotificationEvent(new Notification("Settings saved")));

                                clearRetainedValues();
View Full Code Here

Examples of org.fusesource.mqtt.client.Promise.onSuccess()

                if (subscribeTopicName != null && !subscribeTopicName.isEmpty()) {
                    Topic[] topics = {new Topic(subscribeTopicName, configuration.getQoS())};
                    connection.subscribe(topics, new Callback<byte[]>() {
                        public void onSuccess(byte[] value) {
                            promise.onSuccess(value);
                        }

                        public void onFailure(Throwable value) {
                            promise.onFailure(value);
                            connection.disconnect(null);
View Full Code Here

Examples of org.fusesource.mqtt.client.Promise.onSuccess()

                            promise.onFailure(value);
                            connection.disconnect(null);
                        }
                    });
                } else {
                    promise.onSuccess(value);
                }

            }

            public void onFailure(Throwable value) {
View Full Code Here

Examples of org.fusesource.mqtt.client.Promise.onSuccess()

    protected void doStop() throws Exception {
        if (connection != null) {
            final Promise promise = new Promise();
            connection.disconnect(new Callback<Void>() {
                public void onSuccess(Void value) {
                    promise.onSuccess(value);
                }

                public void onFailure(Throwable value) {
                    promise.onFailure(value);
                }
View Full Code Here

Examples of org.gwtlib.client.table.ui.PagingTable.onSuccess()

          default:
            break;
        }
        Row[] srows = new Row[Math.min(end - begin, tmp.length - begin)];
        for(int i = 0; i < srows.length; ++i) srows[i] = tmp[begin + i];
        table.onSuccess(new Rows(srows, begin, sortId, ascending));
      }
    };
    table.setContentProvider(provider);
    table.addTableListener(new TableListenerAdapter() {
      public void onCellClicked(SourcesTableEvents sender, Row row, Column column) {
View Full Code Here

Examples of org.gwtlib.client.table.ui.Table.onSuccess()

    };
    ColumnLayout layout = new ColumnLayout(columns);
    final Table table = new Table(layout);
    ContentProvider provider = new ContentProvider() {
      public void load(int begin, int end, final int sortId, boolean ascending) {
        table.onSuccess(new Rows(rows, 0, -1, false));
      }
    };
    table.setContentProvider(provider);
    table.setSize(3);
    table.setSize("100%", "100%");
View Full Code Here

Examples of org.jboss.aesh.cl.result.ResultHandler.onSuccess()

                                    new AeshCommandInvocation(console,
                                        output.getControlOperator(),
                                         output.getPid(), this)));

                    if(result == CommandResult.SUCCESS && resultHandler != null)
                        resultHandler.onSuccess();
                    else if(resultHandler != null)
                        resultHandler.onFailure(result);
                }
                catch (CommandLineParserException | CommandValidatorException | OptionValidatorException e) {
                    getShell().out().println(e.getMessage());
View Full Code Here

Examples of org.jboss.aesh.cl.result.ResultHandler.onSuccess()

                    result = ccResult.getCommandResult();
                    resultHandler = ccResult.getResultHandler();

                    if(result == CommandResult.SUCCESS && resultHandler != null)
                        resultHandler.onSuccess();
                    else if(resultHandler != null)
                        resultHandler.onFailure(result);
                }
                catch (CommandLineParserException | CommandValidatorException | OptionValidatorException e) {
                    getShell().out().println(e.getMessage());
View Full Code Here

Examples of org.jboss.aesh.cl.result.ResultHandler.onSuccess()

                                .enhanceCommandInvocation(
                                    new AeshCommandInvocation(console,
                                        output.getControlOperator(), this)));

                    if(result == CommandResult.SUCCESS)
                        resultHandler.onSuccess();
                    else
                        resultHandler.onFailure(result);
                }
                catch (CommandLineParserException | CommandValidatorException | OptionValidatorException e) {
                    getShell().out().println(e.getMessage());
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.steps.StepContext.onSuccess()

                LOGGER.log(Level.FINE, "onSuccess {0}", cookie);
                lease.release();
                lease = null;
                StepContext context = finish(cookie);
                if (context != null) {
                    context.onSuccess(returnValue);
                }
            }

            @Override public void onFailure(Throwable t) {
                LOGGER.log(Level.FINE, "onFailure {0}", cookie);
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.