|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jeters.util.AssistedComponent
public abstract class AssistedComponent
superclass offering the combined benefits of
AssistedConfigurable
and AssistedTranslatable
Constructor Summary | |
---|---|
AssistedComponent()
|
Method Summary | |
---|---|
Configuration |
getConfiguration()
this method is called to retrieve the current configuration for this component. |
void |
setConfiguration(Configuration configuration)
sets the configuration for this object. |
void |
setLanguageResourceBundle(java.util.ResourceBundle langRB)
sets the ResourceBundle that contains the messages to use |
protected java.lang.String |
str(java.lang.String key)
returns the language-specific string identified by the given key |
protected java.lang.String |
str(java.lang.String key,
java.lang.Object... arguments)
returns the language-specific string identified by the given key and replaces placeholders ({0}, {1}, ...) in the string with the arguments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssistedComponent()
Method Detail |
---|
public Configuration getConfiguration()
Configurable
setConfiguration
, a default configuration for this
component is expected to be returned (which is used, among other things,
for creating the initial config file).
getConfiguration
in interface Configurable
public void setConfiguration(Configuration configuration)
Configurable
setConfiguration
in interface Configurable
configuration
- configuration to be used by the component; not nullpublic void setLanguageResourceBundle(java.util.ResourceBundle langRB)
Translatable
setLanguageResourceBundle
in interface Translatable
langRB
- ResourceBundle to retrieve Strings fromprotected java.lang.String str(java.lang.String key)
key
- string identifier used in the properties files
protected java.lang.String str(java.lang.String key, java.lang.Object... arguments)
key
- string identifier used in the properties filesarguments
- object whose .toString() output is used to replace
placeholders in the string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |