public abstract class

AbstractPlaceHistoryMapper

extends Object
implements PlaceHistoryMapperWithFactory<F>
java.lang.Object
   ↳ com.google.gwt.place.impl.AbstractPlaceHistoryMapper<F>

Class Overview

Abstract implementation of PlaceHistoryMapper.

Summary

Nested Classes
class AbstractPlaceHistoryMapper.PrefixAndToken Return value for getPrefixAndToken(Place)
Fields
protected F factory
Public Constructors
AbstractPlaceHistoryMapper()
Public Methods
Place getPlace(String token)
Returns the Place associated with the given token.
String getToken(Place place)
Returns the String token associated with the given Place.
void setFactory(F factory)
Sets the factory to be used to generate PlaceTokenizer instances.
Protected Methods
abstract AbstractPlaceHistoryMapper.PrefixAndToken getPrefixAndToken(Place newPlace)
abstract PlaceTokenizer<?> getTokenizer(String prefix)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.place.shared.PlaceHistoryMapper
From interface com.google.gwt.place.shared.PlaceHistoryMapperWithFactory

Fields

protected F factory

Public Constructors

public AbstractPlaceHistoryMapper ()

Public Methods

public Place getPlace (String token)

Returns the Place associated with the given token.

Parameters
token a String token
Returns

public String getToken (Place place)

Returns the String token associated with the given Place.

Parameters
place a Place instance
Returns
  • a String token

public void setFactory (F factory)

Sets the factory to be used to generate PlaceTokenizer instances.

Parameters
factory a factory of type F

Protected Methods

protected abstract AbstractPlaceHistoryMapper.PrefixAndToken getPrefixAndToken (Place newPlace)

Parameters
newPlace what needs tokenizing
Returns
  • the token, or null

protected abstract PlaceTokenizer<?> getTokenizer (String prefix)

Parameters
prefix the prefix found on the history token
Returns
  • the PlaceTokenizer registered with that token, or null