Example usage for com.google.gwt.event.shared EventBus fireEventFromSource

List of usage examples for com.google.gwt.event.shared EventBus fireEventFromSource

Introduction

In this page you can find the example usage for com.google.gwt.event.shared EventBus fireEventFromSource.

Prototype

public abstract void fireEventFromSource(GwtEvent<?> event, Object source);

Source Link

Usage

From source file:org.drools.guvnor.client.widgets.wizards.WizardPageTitle.java

License:Apache License

public WizardPageTitle(final WizardContext context, final EventBus eventBus, final WizardPage page) {
    initWidget(uiBinder.createAndBindUi(this));

    this.lblTitle.setText(page.getTitle());

    setComplete(page.isComplete());//from  ww  w . j  a  v a  2 s.c  o m

    container.addDomHandler(new ClickHandler() {

        public void onClick(ClickEvent event) {
            WizardPageSelectedEvent wpse = new WizardPageSelectedEvent(page);
            eventBus.fireEventFromSource(wpse, context);
        }

    }, ClickEvent.getType());

}