Allow subclasses to translate the status if a nonstandard one is in use.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4911 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -222,10 +222,19 @@ public class BodyObject extends ClientObject
|
||||
{
|
||||
buf.append(getOid());
|
||||
if (status != OccupantInfo.ACTIVE) {
|
||||
buf.append(" ").append(OccupantInfo.X_STATUS[status]);
|
||||
buf.append(" ").append(getStatusTranslation());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a translation suffix for this occupant's status.
|
||||
* Can be overridden to translate nonstandard statuses.
|
||||
*/
|
||||
protected String getStatusTranslation ()
|
||||
{
|
||||
return OccupantInfo.X_STATUS[status];
|
||||
}
|
||||
|
||||
/** The default (no tokens) access control. */
|
||||
protected static final TokenRing EMPTY_TOKENS = new TokenRing();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user