Example usage for com.google.gwt.event.shared ResettableEventBus ResettableEventBus

List of usage examples for com.google.gwt.event.shared ResettableEventBus ResettableEventBus

Introduction

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

Prototype

public ResettableEventBus(com.google.web.bindery.event.shared.EventBus wrappedBus) 

Source Link

Usage

From source file:com.googlecode.mgwt.mvp.client.AnimatingActivityManager.java

License:Apache License

/**
 * Create an ActivityManager. Next call {@link #setDisplay}.
 *
 * @param mapper finds the {@link Activity} for a given
 *            {@link com.google.gwt.place.shared.Place}
 * @param eventBus source of {@link PlaceChangeEvent} and
 *            {@link PlaceChangeRequestEvent} events.
 * @param animationMapper a// w w  w  .  jav  a2 s  .  c om
 *            {@link com.googlecode.mgwt.mvp.client.AnimationMapper} object.
 */
public AnimatingActivityManager(ActivityMapper mapper, AnimationMapper animationMapper, EventBus eventBus) {
    this.mapper = mapper;
    this.animationMapper = animationMapper;
    this.eventBus = eventBus;
    this.stopperedEventBus = new ResettableEventBus(eventBus);
}

From source file:org.drools.guvnor.client.common.content.multi.MultiActivityManager.java

License:Apache License

private void startNewActivity(final ContentPlace newPlace) {
    final Activity activity = activityMapper.getActivity(newPlace);

    final ResettableEventBus resettableEventBus = new ResettableEventBus(eventBus);

    activeActivities.put(newPlace, activity);

    activity.start(tabbedPanel.addTab(newPlace), resettableEventBus);
}

From source file:org.drools.guvnor.client.explorer.MultiActivityManager.java

License:Apache License

private void startNewActivity(final Place newPlace) {
    Activity activity = activityMapper.getActivity(newPlace);

    final ResettableEventBus resettableEventBus = new ResettableEventBus(eventBus);

    activeActivities.put(newPlace, new Pair(activity, resettableEventBus));

    activity.start(new AcceptItem() {
        public void add(String tabTitle, IsWidget widget) {
            tabbedPanel.addTab(tabTitle, widget, newPlace);
        }/*from  w w w  .j a  va  2  s . co  m*/
    }, resettableEventBus);
}

From source file:org.drools.guvnor.client.explorer.navigation.NavigationPanel.java

License:Apache License

public NavigationPanel(ClientFactory clientFactory, EventBus eventBus) {
    view = clientFactory.getNavigationViewFactory().getNavigationPanelView();
    eventBus.addHandler(ChangePerspectiveEvent.TYPE, this);
    this.eventBus = new ResettableEventBus(eventBus);
    this.clientFactory = clientFactory;
}