Code example for EventBus

Methods: post

0
 
	@Override 
	public Optional<DisplayEvent> handle(final xcb_generic_event_t event_t) {
		final xcb_generic_error_t request_error = new xcb_generic_error_t(	xcb_generic_event_t.getCPtr(event_t),
																			false); 
		this.xEventBus.post(request_error);
 
		throw new RuntimeException(XcbErrorUtil.toString(request_error));
		// TODO error event? 
	} 
 
	@Override 
	public Optional<AsyncListenable> getTarget(final xcb_generic_event_t event_t) {
		// TODO return display server? 
		return Optional.absent();
	} 
 
	@Override 
	public Integer getEventCode() {
		return this.eventCode;
Contextual code suggestions in your IDE  Get Codota for Java