|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.activity.shared.AbstractActivity
org.overlord.sramp.ui.client.activities.AbstractActivity<P,V>
public abstract class AbstractActivity<P extends com.google.gwt.place.shared.Place,V extends IView<?>>
Base class for all s-ramp-ui activities.
| Constructor Summary | |
|---|---|
AbstractActivity(P place,
IClientFactory clientFactory)
Constructor. |
|
| Method Summary | ||
|---|---|---|
protected abstract V |
createView(com.google.gwt.event.shared.EventBus eventBus)
Called to create/get the view. |
|
protected void |
doStart(com.google.gwt.user.client.ui.AcceptsOneWidget panel,
com.google.gwt.event.shared.EventBus eventBus)
Start the activity. |
|
IClientFactory |
getClientFactory()
|
|
P |
getPlace()
|
|
protected
|
getService(Class<T> serviceType)
Gets a service. |
|
V |
getView()
|
|
void |
goTo(com.google.gwt.place.shared.Place place)
|
|
protected ILocalizationService |
i18n()
Convenience method for getting the localization service. |
|
void |
setClientFactory(IClientFactory clientFactory)
|
|
void |
setPlace(P place)
|
|
void |
setView(V view)
|
|
void |
start(com.google.gwt.user.client.ui.AcceptsOneWidget panel,
com.google.gwt.event.shared.EventBus eventBus)
|
|
protected abstract void |
updateBreadcrumb(BreadcrumbPanel breadcrumbPanel)
Called to update the breadcrumb panel. |
|
| Methods inherited from class com.google.gwt.activity.shared.AbstractActivity |
|---|
mayStop, onCancel, onStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractActivity(P place,
IClientFactory clientFactory)
place - clientFactory - | Method Detail |
|---|
public void goTo(com.google.gwt.place.shared.Place place)
goTo in interface IActivityIActivity.goTo(com.google.gwt.place.shared.Place)public P getPlace()
public void setPlace(P place)
place - the place to setpublic V getView()
public void setView(V view)
view - the view to setpublic IClientFactory getClientFactory()
public void setClientFactory(IClientFactory clientFactory)
clientFactory - the clientFactory to set
public final void start(com.google.gwt.user.client.ui.AcceptsOneWidget panel,
com.google.gwt.event.shared.EventBus eventBus)
start in interface com.google.gwt.activity.shared.ActivityActivity.start(com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.event.shared.EventBus)protected abstract void updateBreadcrumb(BreadcrumbPanel breadcrumbPanel)
breadcrumbPanel - the breadcrumb panelprotected abstract V createView(com.google.gwt.event.shared.EventBus eventBus)
eventBus -
protected void doStart(com.google.gwt.user.client.ui.AcceptsOneWidget panel,
com.google.gwt.event.shared.EventBus eventBus)
panel - eventBus -
protected <T extends IService> T getService(Class<T> serviceType)
throws ServiceNotFoundException
serviceType - the type of service desired
ServiceNotFoundExceptionprotected ILocalizationService i18n()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||