|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.toybox.util.ToyBoxContext
public abstract class ToyBoxContext
Aggregates the various bits that are needed on the ToyBox client.
| Constructor Summary | |
|---|---|
ToyBoxContext()
|
|
| Method Summary | |
|---|---|
abstract FrameManager |
getFrameManager()
Returns a reference to our frame manager (used for media services). |
abstract KeyDispatcher |
getKeyDispatcher()
Returns a reference to our key dispatcher. |
abstract MessageManager |
getMessageManager()
Returns a reference to the message manager used by the client to generate localized messages. |
ResourceManager |
getResourceManager()
Returns the resource manager which is used to load media resources. |
abstract ToyBoxDirector |
getToyBoxDirector()
Returns a reference to our ToyBox director. |
Name |
getUsername()
Convenience method to get the username of the currently logged on user. |
BufferedImage |
loadImage(String rsrcPath)
Convenience method to load an image from our resource bundles. |
String |
xlate(String bundle,
String message)
Translates the specified message using the specified message bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.threerings.parlor.util.ParlorContext |
|---|
getParlorDirector |
| Methods inherited from interface com.threerings.crowd.util.CrowdContext |
|---|
clearPlaceView, getChatDirector, getLocationDirector, getOccupantDirector, setPlaceView |
| Methods inherited from interface com.threerings.presents.util.PresentsContext |
|---|
getClient, getConfig, getDObjectManager |
| Constructor Detail |
|---|
public ToyBoxContext()
| Method Detail |
|---|
public abstract MessageManager getMessageManager()
getMessageManager in interface CrowdContextgetMessageManager in interface com.whirled.game.util.WhirledGameContextpublic abstract ToyBoxDirector getToyBoxDirector()
public abstract FrameManager getFrameManager()
public abstract KeyDispatcher getKeyDispatcher()
public ResourceManager getResourceManager()
public String xlate(String bundle,
String message)
public Name getUsername()
public BufferedImage loadImage(String rsrcPath)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||