net.customware.gwt.presenter.client.place
Interface PlaceManager

All Known Implementing Classes:
DefaultPlaceManager

public interface PlaceManager

Place managers work as an intermediary between the GWT History API and Places. It sets up event listener relationships to synchronize them.

Author:
David Peterson

Method Summary
 boolean deregisterPlace(Place place)
          Deregisters the place from the manager.
 boolean fireCurrentPlace()
          Fires an event for the current place.
 boolean registerPlace(Place place)
          Registers the place with the manager.
 

Method Detail

fireCurrentPlace

boolean fireCurrentPlace()
Fires an event for the current place.

Returns:
false if there was no current place to fire.

registerPlace

boolean registerPlace(Place place)
Registers the place with the manager. This allows the place to be updated when the browser's history token is updated. Only a single instance of a given concrete Place implementation is registered

Parameters:
place - The place to register.
Returns:
true if an instance of the Place class had not already been registered.

deregisterPlace

boolean deregisterPlace(Place place)
Deregisters the place from the manager. Any instance of a given concrete Place will cause the deregistration - it doesn't have to be the original Place.

Parameters:
place - The place to deregister.
Returns:
true if the place was registered and has been successfully deregistered.


Copyright © 2010 customware.net. All Rights Reserved.