public interface Place
new
.
A place represents a particular 'bookmark' or location inside the
application. A place is stateful - it may represent a location with it's
current settings, such as a particular ID value, or other unique indicators
that will allow a user to track back to that location later, either via a
browser bookmark, or by clicking the 'back' button.Modifier and Type | Method and Description |
---|---|
boolean |
canReveal()
Checks if the associated presenter can be revealed.
|
boolean |
equals(Object o)
Places are equal if their name token matches.
|
String |
getNameToken()
The name token is the first part of the history token, before the
parameters.
|
int |
hashCode() |
boolean |
matchesRequest(PlaceRequest request)
Makes sure the method matches the passed request.
|
String |
toString() |
boolean canReveal()
true
,
but subclasses should override this and check to make sure the current user
has the privileges to see the place. Make sure the places you request in
PlaceManager.revealDefaultPlace()
and
PlaceManager.revealErrorPlace(String)
can reveal themselves,
otherwise your application could get into an infinite loop.true
if the presenter can be revealed,
false
otherwise.boolean equals(Object o)
String getNameToken()
boolean matchesRequest(PlaceRequest request)
request
- The request to check.true
if the ID matches this place's name.Copyright © 2010–2014 Arcbees. All rights reserved.