|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.whirled.zone.client.ZoneAdapter
public class ZoneAdapter
The zone adapter makes life easier for a class that really only cares about one or two of the zone observer callbacks and doesn't want to provide empty implementations of the others. One can either extend zone adapter, or create an anonymous instance that overrides the desired callback(s).
ZoneObserver| Constructor Summary | |
|---|---|
ZoneAdapter()
|
|
| Method Summary | |
|---|---|
void |
zoneChangeFailed(String reason)
This is called on all zone observers when a zone change request is rejected by the server or fails for some other reason. |
void |
zoneDidChange(ZoneSummary summary)
Called when we have switched to a new zone. |
void |
zoneWillChange(int zoneId)
Called when we begin the process of switching to a new zone. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZoneAdapter()
| Method Detail |
|---|
public void zoneWillChange(int zoneId)
ZoneObserverZoneObserver.zoneDidChange(com.threerings.whirled.zone.data.ZoneSummary) to indicate
that the change was successful or ZoneObserver.zoneChangeFailed(java.lang.String) if the
change fails.
zoneWillChange in interface ZoneObserverzoneId - the zone id of the zone to which we are changing.public void zoneDidChange(ZoneSummary summary)
ZoneObserver
zoneDidChange in interface ZoneObserversummary - the summary information for the new zone or null if
we have switched to no zone.public void zoneChangeFailed(String reason)
ZoneObserver
zoneChangeFailed in interface ZoneObserverreason - the reason code that explains why the zone change
request was rejected or otherwise failed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||