|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrle.core.vm.View
rle.core.vm.InfoView
public class InfoView
Provides a view of an InfoNode.
Field Summary |
---|
Fields inherited from class rle.core.vm.View |
---|
context, owner |
Constructor Summary | |
---|---|
InfoView(InfoNode owner,
GameContext context)
Initializes a view of an owner InfoNode. |
Method Summary | |
---|---|
boolean |
check(java.lang.String s)
Attempt to retrieve the boolean value s. |
PlugIn |
createPlugIn()
Creates a PlugIn assuming that this node uses the "plug-in" attribute set. |
PlugIn |
createPlugIn(java.lang.String key)
Creates a PlugIn with the specified key. |
java.lang.Object |
get(java.lang.String s)
Retrieve a value directly from the underlying node's map. |
java.awt.Color |
getColor(java.lang.String s)
|
java.lang.Double |
getDouble(java.lang.String s)
Attempt to retrieve a double value from the underlying node. |
java.lang.Integer |
getInt(java.lang.String s)
Attempt to retrieve an int value from the underlying node. |
java.lang.Long |
getLong(java.lang.String s)
Attempt to retrieve a long value from the underlying node. |
java.lang.Number |
getNumber(java.lang.String key)
|
java.lang.Number |
getNumber(java.lang.String key,
java.lang.Number def)
|
java.lang.String |
getString(java.lang.String s)
|
java.lang.String |
getTranslation(java.lang.String key)
Return a translation in the specified language, if one is provided, or the English value if no translation is found. |
Methods inherited from class rle.core.vm.View |
---|
equals, findGroup, findInfo, getContext, hashCode, id, infoGroupList, infoList, infoListRecursive, node, pathId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfoView(InfoNode owner, GameContext context)
owner
- lang
- - the language to useMethod Detail |
---|
public boolean check(java.lang.String s)
s
-
public java.awt.Color getColor(java.lang.String s)
public java.lang.Integer getInt(java.lang.String s)
s
-
public java.lang.Double getDouble(java.lang.String s)
s
-
public java.lang.Number getNumber(java.lang.String key)
public java.lang.Number getNumber(java.lang.String key, java.lang.Number def)
public java.lang.String getString(java.lang.String s)
public java.lang.Long getLong(java.lang.String s)
s
-
public java.lang.Object get(java.lang.String s)
s
-
public java.lang.String getTranslation(java.lang.String key)
key
-
public PlugIn createPlugIn()
public PlugIn createPlugIn(java.lang.String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |