|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jogre.util.AbstractProperties
Abstract class which provides various methods which are common to GameProperties, GameLabels and JogreLabels.
Constructor Summary | |
protected |
AbstractProperties(String filename)
Private constructor (Can only be called by the getInstance() method. |
Method Summary | |
String |
get(String key)
Return the "value" for a specified "key" inside the resource bundle as a String. |
String |
get(String key,
String defaultValue)
Return the "value" for a specified "key" inside the resource bundle as a String. |
boolean |
getBoolean(String key)
Return a boolean value from a key. |
boolean |
getBoolean(String key,
boolean defaultValue)
Return a boolean value from a key. |
int |
getInt(String key)
Return the "value" for a specified "key" inside the resource bundle as an int value. |
int |
getInt(String key,
int defaultValue)
Return the "value" for a specified "key" inside the resource bundle as an int value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractProperties(String filename)
filename
- Method Detail |
public String get(String key)
key
- public String get(String key, String defaultValue)
key
- defaultValue
- public int getInt(String key)
key
- public int getInt(String key, int defaultValue)
key
- defaultValue
- public boolean getBoolean(String key)
key
- public boolean getBoolean(String key, boolean defaultValue)
key
- defaultValue
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |