Code example for EventBus

Methods: post

0
		final xcb_focus_in_event_t focus_in_event = cast(event_t);
 
		LOG.debug(	"Received X event={}", 
					focus_in_event.getClass().getSimpleName());
 
		this.xEventBus.post(focus_in_event);
 
		return Optional.of(new FocusGainNotify());
	} 
 
	private xcb_focus_in_event_t cast(final xcb_generic_event_t event_t) {
		return new xcb_focus_in_event_t(xcb_generic_event_t.getCPtr(event_t),
										false); 
	} 
 
	@Override 
	public Integer getEventCode() {
		return EVENT_CODE;
	}