Examples of ActivityManager


Examples of com.google.gwt.activity.shared.ActivityManager

    }

    @Provides
    public ActivityManager getActivityManager(ActivityMapper mapper,
            EventBus bus) {
        return new ActivityManager(mapper, bus);
    }
View Full Code Here

Examples of com.google.gwt.activity.shared.ActivityManager

    public void onModuleLoad() {
        // ActivityManager needs a one widget panel so we create one.
        SimplePanel startPanel = new SimplePanel();

        // Start the activity manager.
        ActivityManager activityManager = injector.getActivityManager();
        activityManager.setDisplay(startPanel);

        // Start the PlaceHistoryManager
        PlaceHistoryHandler historyHandler = injector
                .getRegisteredPlaceHistoryHandler();
View Full Code Here

Examples of com.google.gwt.activity.shared.ActivityManager

    PlaceController placeController = clientFactory.getPlaceController();

    // Start NorthActivityManager for the north widget with the
    // NorthActivityMapper
    ActivityMapper northActivityMapper = new NorthActivityMapper(clientFactory);
    ActivityManager northActivityManager = new ActivityManager(northActivityMapper, eventBus);
    northActivityManager.setDisplay(northDisplay);

    // Start CenterActivityManager for the center widget with the
    // CenterActivityMapper
    ActivityMapper centerActivityMapper = new CenterActivityMapper(clientFactory);
    ActivityManager centerActivityManager = new ActivityManager(centerActivityMapper, eventBus);
    centerActivityManager.setDisplay(centerDisplay);

    // Start WestActivityManager for the west widget with the
    // WestActivityMapper
    ActivityMapper westActivityMapper = new WestActivityMapper(clientFactory);
    ActivityManager westActivityManager = new ActivityManager(westActivityMapper, eventBus);
    westActivityManager.setDisplay(westDisplay);

    // Start PlaceHistoryHandler with our PlaceHistoryMapper
    AppPlaceHistoryMapper historyMapper = GWT.create(AppPlaceHistoryMapper.class);
    PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
    historyHandler.register(placeController, eventBus, defaultPlace);
View Full Code Here

Examples of com.google.gwt.activity.shared.ActivityManager

       EventBus eventBus = clientFactory.getEventBus();
       PlaceController placeController = clientFactory.getPlaceController();

       // Start ActivityManager for the main widget with our ActivityMapper
       ActivityMapper activityMapper = new NetmusActivityMapper(clientFactory);
       ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
       activityManager.setDisplay(app_widget);

       // Start PlaceHistoryHandler with our PlaceHistoryMapper
       NetmusPlaceHistoryMapper historyMapper= GWT.create(NetmusPlaceHistoryMapper.class);
       PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
       historyHandler.register(placeController, eventBus, default_place);
View Full Code Here

Examples of com.google.gwt.activity.shared.ActivityManager

            loadPerspectives();

            // TODo: Hide the dropdown if the default one is the only one -Rikkola-

            ActivityMapper activityMapper = new GuvnorActivityMapper( clientFactory );
            ActivityManager activityManager = new ActivityManager( activityMapper,
                                                                   eventBus );
            activityManager.setDisplay( perspectivesPanel );

            GuvnorPlaceHistoryMapper historyMapper = GWT.create( GuvnorPlaceHistoryMapper.class );
            PlaceHistoryHandler historyHandler = new PlaceHistoryHandler( historyMapper );
            historyHandler.register( placeController,
                                     eventBus,
View Full Code Here

Examples of com.google.gwt.activity.shared.ActivityManager

    EventBus eventBus = clientFactory.getEventBus();
    PlaceController placeController = clientFactory.getPlaceController();

    // Start ActivityManager for the main widget with our ActivityMapper
    ActivityMapper activityMapper = new AppActivityMapper(clientFactory);
    ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
    activityManager.setDisplay(appWidget);

    // Start PlaceHistoryHandler with our PlaceHistoryMapper
    AppPlaceHistoryMapper historyMapper = GWT.create(AppPlaceHistoryMapper.class);
    PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
    historyHandler.register(placeController, eventBus, defaultPlace);
View Full Code Here

Examples of com.ponysdk.core.activity.ActivityManager

        final SampleActivityMapper mapper = new SampleActivityMapper();
        final PlaceHistoryMapper historyMapper = new DefaultPlaceHistoryMapper(eventBus);
        final PlaceController placeController = new PlaceController(uiContext.getHistory(), eventBus);

        final ActivityManager activityManager = new ActivityManager(mapper);
        activityManager.setDisplay(panel);

        final PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(uiContext.getHistory(), historyMapper, placeController, eventBus);
        historyHandler.setDefaultPlace(new LoginPlace());
        historyHandler.handleCurrentHistory();
    }
View Full Code Here

Examples of com.ponysdk.core.activity.ActivityManager

    protected void start(final Place place) {
        final PSimpleLayoutPanel panel = new PSimpleLayoutPanel();
        PRootLayoutPanel.get().add(panel);

        final ActivityManager activityManager = new ActivityManager(mapper);
        activityManager.setDisplay(panel);

        final PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(history, historyMapper, placeController, eventBus);
        historyHandler.setDefaultPlace(place);
        historyHandler.handleCurrentHistory();
    }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.videosharing.manager.ActivityManager

            } catch (EncoderInitializationException e) {
                reportError(e);
                throw e;
            }

            activityManager = new ActivityManager(screen, this,
                connectionFactory.getActivitiesInputStream());

            connectionManager = new ConnectionManager(
                connectionFactory.getVideoOutputStream(), encoder,
                connectionFactory.getDecodingStatisticsInputStream(), this);
View Full Code Here

Examples of org.apache.webbeans.container.activity.ActivityManager

     *
     * @return the current activity
     */
    public static ManagerImpl getManager()
    {
        ActivityManager activityManager = ActivityManager.getInstance();
       
        ManagerImpl currentManager = activityManager.getCurrentActivity();
       
        return currentManager;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.