Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6093 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -28,24 +28,20 @@ import com.threerings.crowd.data.PlaceObject;
|
|||||||
import static com.threerings.crowd.Log.log;
|
import static com.threerings.crowd.Log.log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a mechanism for dispatching notifications to all user
|
* Provides a mechanism for dispatching notifications to all user interface elements in a
|
||||||
* interface elements in a hierarchy that implement the {@link PlaceView}
|
* hierarchy that implement the {@link PlaceView} interface. Look at the documentation for
|
||||||
* interface. Look at the documentation for {@link PlaceView} for more
|
* {@link PlaceView} for more explanation.
|
||||||
* explanation.
|
|
||||||
*/
|
*/
|
||||||
public class PlaceViewUtil
|
public class PlaceViewUtil
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Dispatches a call to {@link PlaceView#willEnterPlace} to all UI
|
* Dispatches a call to {@link PlaceView#willEnterPlace} to all UI elements in the hierarchy
|
||||||
* elements in the hierarchy rooted at the component provided via the
|
* rooted at the component provided via the <code>root</code> parameter.
|
||||||
* <code>root</code> parameter.
|
|
||||||
*
|
*
|
||||||
* @param root the component at which to start traversing the UI
|
* @param root the component at which to start traversing the UI hierarchy.
|
||||||
* hierarchy.
|
|
||||||
* @param plobj the place object that is about to be entered.
|
* @param plobj the place object that is about to be entered.
|
||||||
*/
|
*/
|
||||||
public static void dispatchWillEnterPlace (
|
public static void dispatchWillEnterPlace (Object root, PlaceObject plobj)
|
||||||
Object root, PlaceObject plobj)
|
|
||||||
{
|
{
|
||||||
// dispatch the call on this component if it implements PlaceView
|
// dispatch the call on this component if it implements PlaceView
|
||||||
if (root instanceof PlaceView) {
|
if (root instanceof PlaceView) {
|
||||||
@@ -53,7 +49,7 @@ public class PlaceViewUtil
|
|||||||
((PlaceView)root).willEnterPlace(plobj);
|
((PlaceView)root).willEnterPlace(plobj);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning("Component choked on willEnterPlace()", "component", root,
|
log.warning("Component choked on willEnterPlace()", "component", root,
|
||||||
"plobj", plobj, e);
|
"plobj", plobj, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,16 +64,13 @@ public class PlaceViewUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dispatches a call to {@link PlaceView#didLeavePlace} to all UI
|
* Dispatches a call to {@link PlaceView#didLeavePlace} to all UI elements in the hierarchy
|
||||||
* elements in the hierarchy rooted at the component provided via the
|
* rooted at the component provided via the <code>root</code> parameter.
|
||||||
* <code>root</code> parameter.
|
|
||||||
*
|
*
|
||||||
* @param root the component at which to start traversing the UI
|
* @param root the component at which to start traversing the UI hierarchy.
|
||||||
* hierarchy.
|
|
||||||
* @param plobj the place object that is about to be entered.
|
* @param plobj the place object that is about to be entered.
|
||||||
*/
|
*/
|
||||||
public static void dispatchDidLeavePlace (
|
public static void dispatchDidLeavePlace (Object root, PlaceObject plobj)
|
||||||
Object root, PlaceObject plobj)
|
|
||||||
{
|
{
|
||||||
// dispatch the call on this component if it implements PlaceView
|
// dispatch the call on this component if it implements PlaceView
|
||||||
if (root instanceof PlaceView) {
|
if (root instanceof PlaceView) {
|
||||||
@@ -85,7 +78,7 @@ public class PlaceViewUtil
|
|||||||
((PlaceView)root).didLeavePlace(plobj);
|
((PlaceView)root).didLeavePlace(plobj);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning("Component choked on didLeavePlace()", "component", root,
|
log.warning("Component choked on didLeavePlace()", "component", root,
|
||||||
"plobj", plobj, e);
|
"plobj", plobj, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user