Call when event next button is pressed.

@param wave the wave received
322010
public void doNext(final Wave wave) {
        if (this.eventList != null && this.timeFrame + 1 < this.eventList.size()) {
            showNext(this.eventList.get(this.timeFrame + 1));
        }
    }
837113
protected final void hideInternalView(final Wave wave) {

        // Call user code
        hideView();

        // Sometimes view can be null
        if (view() != null) {
            view().hide();
        }

        // Propagate the show view to all Inner Model
        if (getInnerComponentMap().isPresent()) {
            getInnerComponentMap().get().values().stream()
                                  .filter(s -> s instanceof Model)
                                  .forEach((model) -> ((Model) model).doHideView(wave));
        }
    }
376447
@Override
    public void dispatchNextGuiEvent() throws InterruptedException {
        EventQueue queue = awtEventQueue;
        if (queue == null) {
            queue = Toolkit.getDefaultToolkit().getSystemEventQueue();
            awtEventQueue = queue;
        }
        AWTEvent event = queue.getNextEvent();
        if (event instanceof ActiveEvent) {
            ((ActiveEvent)event).dispatch();
        } else {
            Object source = event.getSource();
            if (source instanceof Component) {
                Component comp = (Component)source;
                comp.dispatchEvent(event);
            } else if (source instanceof MenuComponent) {
                ((MenuComponent)source).dispatchEvent(event);
            }
        }
    }
1142427
public void set(T value) {
        EventImpl event = (EventImpl) CurrentEvent.get();
        if (null != event) {
            event.set(this, value);
        }
    }
1260942
@NonNull
    private View.OnClickListener createNextButtonListener() {
        return new View.OnClickListener() {

            @Override
            public void onClick(final View v) {
                if (navigationFragment != null) {
                    int currentIndex = navigationFragment.getSelectedNavigationPreferenceIndex();

                    if (currentIndex < navigationFragment.getNavigationPreferenceCount() - 1) {
                        Bundle params = notifyOnNextStep();

                        if (params != null) {
                            navigationFragment.selectNavigationPreference(currentIndex + 1, params);
                        }
                    }
                }
            }

        };
    }
858166
protected void trigger(GwtEvent<?> e, Function callback, Element element) {
    trigger(e, callback, element, eventBus);
  }
1035380
public void processTimeout(TimeoutEvent arg0) {
    synchronized (listeners) {
      Iterator<SipListener> iter = listeners.iterator();
      while (iter.hasNext() == true) {
        SipListener listener = (SipListener) iter.next();
        listener.processTimeout(arg0);
      }
    }
  }
1129249
protected void onSwipeLeft(final SwipeEvent swipeEvent) {
        model().callCommand(ShowNextSlideCommand.class, WBuilder.waveData(PrezWaves.SKIP_SLIDE_STEP, swipeEvent.getTouchCount() > 1));
        swipeEvent.consume();
    }
291470
private OnClickListener createNextButtonListener() {
        return new OnClickListener() {

            @Override
            public void onClick(final View v) {
                int selectedIndex = viewPager.getCurrentItem();

                if (notifyOnNext(selectedIndex)) {
                    viewPager.setCurrentItem(selectedIndex + 1);
                }
            }

        };
    }
789147
public void _onNext(IN in) {
        if ( subscribers == null )
            return;
        openRequested--;
        try {
            OUT apply = processor.apply(in);
            if ( apply != null ) {
                forwardMessage(apply);
            } else {
                emitRequestNext();
            }
        } catch (Throwable err) {
            err.printStackTrace();
            forwardError(err);
        }
    }
852268
void onButtonFired(final ActionEvent event) {

        final Optional<Button> b = getTarget(event, Button.class);

        final Optional<UniqueKey<? extends Model>> data = getUserData(b, StackWaves.PAGE_MODEL_KEY);

        if (data.isPresent()) {
            model().sendWave(StackWaves.SHOW_PAGE_MODEL,
                             WBuilder.waveData(StackWaves.PAGE_MODEL_KEY, data.get()),
                             WBuilder.waveData(StackWaves.STACK_NAME, "DemoStack"));

        }
    }
128531
@Override @CallerSideMethod public void onNext(IN in) {
        if ( in  == null )
            throw null;
        _onNext(in);
    }
1152011
public void doPrevious(final Wave wave) {
        if (this.eventList != null && this.timeFrame > 0) {
            hideCurrent(this.eventList.get(this.timeFrame));
        }
    }
701129
void onReceive(int register, byte[] message) {
        I2CEvent evt = new I2CEvent(this, register, message);
        I2CListener listener = callbacks.remove(register);
        if (listener == null) {
            for (I2CListener subscriber : subscribers) {
                subscriber.onReceive(evt);
            }
        } else {
            listener.onReceive(evt);
        }
    }
1301737
public void subscribeToEvent(final EventListener eventListener, final Class<? extends AbstractTaskEvent> eventType) {

		synchronized (this.subscriptions) {

			List<EventListener> subscribers = this.subscriptions.get(eventType);
			if (subscribers == null) {
				subscribers = new ArrayList<EventListener>();
				this.subscriptions.put(eventType, subscribers);
			}
			subscribers.add(eventListener);
		}

	}
932681
private void writeEvent(final ChannelHandlerContext ctx, final Object message) {
        if (isFinishedSent)
            return;
        
        if (message instanceof FinishedMessage)
            isFinishedSent = true;

        Channels.write(ctx, Channels.future(null), message);
    }
2476
public void updateMessage(final Wave wave, final String message) {

        // Update the current task message
        JRebirth.runIntoJAT("Service Task Mesage => " + message,
                            () -> wave.get(JRebirthWaves.SERVICE_TASK).updateMessage(message));
    }