public class PlaceImpl extends Object implements Place
| 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.
|
String[] |
getNameTokens() |
int |
hashCode() |
boolean |
matchesRequest(PlaceRequest request)
Makes sure the method matches the passed request.
|
String |
toString() |
public PlaceImpl(String... nameTokens)
public boolean canReveal()
Placetrue,
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.public final boolean equals(Object o)
Placepublic String getNameToken()
PlacegetNameToken in interface Placepublic String[] getNameTokens()
public final int hashCode()
public final boolean matchesRequest(PlaceRequest request)
PlacematchesRequest in interface Placerequest - The request to check.true if the ID matches this place's name.Copyright © 2010–2014 Arcbees. All rights reserved.