mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 06:17:27 +00:00
Added JavaDocs to our custom ActivityManager implementations
This commit is contained in:
1 parent
036cb1626d
commit
b6422c3d04
4 files changed
+30
No files matched your search
@@ -1,9 +1,14 @@
|
||||
package com.sap.sse.gwt.client.mvp;
|
||||
|
||||
import com.google.gwt.activity.shared.ActivityManager;
|
||||
import com.google.gwt.activity.shared.ActivityMapper;
|
||||
import com.google.gwt.place.shared.Place;
|
||||
import com.google.web.bindery.event.shared.EventBus;
|
||||
|
||||
/**
|
||||
* Custom {@link ActivityManager} implementation that fires a {@link PlaceChangedEvent} on the given {@link EventBus}
|
||||
* whenever the current place changed.
|
||||
*/
|
||||
public class CustomActivityManager extends DelegatingActivityManager {
|
||||
|
||||
private EventBus eventBus;
|
||||
|
||||
@@ -10,6 +10,10 @@ import com.google.gwt.user.client.ui.AcceptsOneWidget;
|
||||
import com.google.web.bindery.event.shared.EventBus;
|
||||
import com.google.web.bindery.event.shared.SimpleEventBus;
|
||||
|
||||
/**
|
||||
* Custom {@link ActivityManager} implementation that allows hooking into the lifecycle.
|
||||
*
|
||||
*/
|
||||
public class DelegatingActivityManager extends ActivityManager {
|
||||
|
||||
private final ActivityManager realActivityManager;
|
||||
@@ -35,9 +39,19 @@ public class DelegatingActivityManager extends ActivityManager {
|
||||
realActivityManager.setDisplay(display);
|
||||
}
|
||||
|
||||
/**
|
||||
* To be overwritten by sublcasses to hook into the lifecycle.
|
||||
*
|
||||
* @param activity the activity to be started
|
||||
*/
|
||||
protected void beforeActivityStart(Activity activity) {
|
||||
}
|
||||
|
||||
/**
|
||||
* To be overwritten by sublcasses to hook into the lifecycle.
|
||||
*
|
||||
* @param activity the place that has been started
|
||||
*/
|
||||
protected void afterPlaceActivation(Place place) {
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user