Code example for EventBus

Methods: post

0
		final xcb_focus_in_event_t focus_out_event = cast(event_t);
 
		LOG.debug(	"Received X event={}", 
					focus_out_event.getClass().getSimpleName());
 
		this.xEventBus.post(focus_out_event);
 
		return Optional.of(new FocusLostNotify());
	} 
 
	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 Optional<DisplaySurface> getTarget(final xcb_generic_event_t event_t) {
		// focus in structure is the same as focus out. 
		final xcb_focus_in_event_t focus_out_event_t = cast(event_t);
 
Experience pair programming with AI  Get Codota for Java