passing an object to the constructor of a widget defined in uibinder
问题 I'm trying to pass my app's EventBus to a widget declared in a UiBinder via its constructor. I'm using the @UiConstructor annotation to mark a constructor that accepts the EventBus, but I don't know how to actually reference the object from my ui.xml code. That is, I need something like WidgetThatNeedsAnEventBus.java public class WidgetThatNeedsAnEventBus extends Composite { private EventBus eventBus; @UiConstructor public WidgetThatNeedsAnEventBus(EventBus eventBus) { this.eventBus =