com.threerings.crowd.client
Class PlaceViewUtil

java.lang.Object
  extended by com.threerings.crowd.client.PlaceViewUtil

public class PlaceViewUtil
extends Object

Provides a mechanism for dispatching notifications to all user interface elements in a hierarchy that implement the PlaceView interface. Look at the documentation for PlaceView for more explanation.


Constructor Summary
PlaceViewUtil()
           
 
Method Summary
static void dispatchDidLeavePlace(Object root, PlaceObject plobj)
          Dispatches a call to PlaceView.didLeavePlace(com.threerings.crowd.data.PlaceObject) to all UI elements in the hierarchy rooted at the component provided via the root parameter.
static void dispatchWillEnterPlace(Object root, PlaceObject plobj)
          Dispatches a call to PlaceView.willEnterPlace(com.threerings.crowd.data.PlaceObject) to all UI elements in the hierarchy rooted at the component provided via the root parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceViewUtil

public PlaceViewUtil()
Method Detail

dispatchWillEnterPlace

public static void dispatchWillEnterPlace(Object root,
                                          PlaceObject plobj)
Dispatches a call to PlaceView.willEnterPlace(com.threerings.crowd.data.PlaceObject) to all UI elements in the hierarchy rooted at the component provided via the root parameter.

Parameters:
root - the component at which to start traversing the UI hierarchy.
plobj - the place object that is about to be entered.

dispatchDidLeavePlace

public static void dispatchDidLeavePlace(Object root,
                                         PlaceObject plobj)
Dispatches a call to PlaceView.didLeavePlace(com.threerings.crowd.data.PlaceObject) to all UI elements in the hierarchy rooted at the component provided via the root parameter.

Parameters:
root - the component at which to start traversing the UI hierarchy.
plobj - the place object that is about to be entered.