org.overlord.sramp.ui.client.services.place
Class PlaceService

java.lang.Object
  extended by org.overlord.sramp.ui.client.services.AbstractService
      extended by org.overlord.sramp.ui.client.services.place.PlaceService
All Implemented Interfaces:
IService, IPlaceService

public class PlaceService
extends AbstractService
implements IPlaceService

Concrete implementation of the place service (IPlaceService).

Author:
eric.wittmann@redhat.com

Constructor Summary
PlaceService()
          Constructor.
 
Method Summary
 String generatePlaceToken(com.google.gwt.place.shared.Place place)
          Generates a place token (suitable for use in hyperlinks, for example).
 com.google.gwt.place.shared.PlaceController getPlaceController()
          Gets the place controller.
 com.google.gwt.place.shared.PlaceHistoryMapper getPlaceHistoryMapper()
          Gets the place history mapper.
 void goTo(com.google.gwt.place.shared.Place place)
          Navigates to the given place.
 void start(ServiceLifecycleContext context, IServiceLifecycleListener serviceListener)
          Called to start the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceService

public PlaceService()
Constructor.

Method Detail

goTo

public void goTo(com.google.gwt.place.shared.Place place)
Description copied from interface: IPlaceService
Navigates to the given place.

Specified by:
goTo in interface IPlaceService
See Also:
IPlaceService.goTo(com.google.gwt.place.shared.Place)

start

public void start(ServiceLifecycleContext context,
                  IServiceLifecycleListener serviceListener)
Description copied from interface: IService
Called to start the service. The service *must* call the IServiceListener back when it is done starting. This provides the Service with an opportunity to do asynchronous start logic.

Specified by:
start in interface IService
Overrides:
start in class AbstractService
See Also:
IService.start(org.overlord.sramp.ui.client.services.ServiceLifecycleContext, org.overlord.sramp.ui.client.services.IServiceLifecycleListener)

getPlaceHistoryMapper

public com.google.gwt.place.shared.PlaceHistoryMapper getPlaceHistoryMapper()
Description copied from interface: IPlaceService
Gets the place history mapper.

Specified by:
getPlaceHistoryMapper in interface IPlaceService
See Also:
IPlaceService.getPlaceHistoryMapper()

generatePlaceToken

public String generatePlaceToken(com.google.gwt.place.shared.Place place)
Description copied from interface: IPlaceService
Generates a place token (suitable for use in hyperlinks, for example).

Specified by:
generatePlaceToken in interface IPlaceService
Parameters:
place - the place to tokenize
Returns:
a place token
See Also:
IPlaceService.generatePlaceToken(com.google.gwt.place.shared.Place)

getPlaceController

public com.google.gwt.place.shared.PlaceController getPlaceController()
Description copied from interface: IPlaceService
Gets the place controller.

Specified by:
getPlaceController in interface IPlaceService
See Also:
IPlaceService.getPlaceController()


Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.