java.lang.Object
java.util.ResourceBundle
java.util.ListResourceBundle
de.zocher_regel.util.UtilNls
This class displays messages with internal variable names (useful for
debugging).
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.ResourceBundle
ResourceBundle.Control -
Feldübersicht
FelderModifizierer und TypFeldBeschreibung(Package privat) static final StringThe head of all help areas in HTML format.Von Klasse geerbte Felder java.util.ResourceBundle
parent -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringembedBodyInHtml(String body) The special help consists of the HTML body only.static booleanfindRecursive(File javaFile, String nlsKey) Checks if the NLS translation is used.protected Object[][]The super class needs this.static voidOnly for internal use.static Object[][]setValToKey(Object[][] originalContents) For debugging the keys (variable names) are shown instead of NLS names.static voidtoStringsWithPlaceholders(Object[][] contents) The number of placeholders is a property of an KeyAble (e. g.Von Klasse geerbte Methoden java.util.ListResourceBundle
getKeys, handleGetObject, handleKeySetVon Klasse geerbte Methoden java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
-
Felddetails
-
htmlBegin
The head of all help areas in HTML format. The special body is to be concatenated.- Siehe auch:
-
-
Konstruktordetails
-
UtilNls
public UtilNls()Create an instance of this class.
-
-
Methodendetails
-
findRecursive
Checks if the NLS translation is used.- Parameter:
javaFile- where the NLS translation is looked fornlsKey- to be looked for- Gibt zurück:
- if the nlsKey is used
-
main
Only for internal use. Does not work outside dev environment.- Parameter:
args- ignored
-
setValToKey
For debugging the keys (variable names) are shown instead of NLS names.- Parameter:
originalContents- the NLS keys- Gibt zurück:
- the keys copied to the value array.
-
toStringsWithPlaceholders
The number of placeholders is a property of an KeyAble (e. g. UtilSetting). Replace the KeyAble by the concatenation of its name and placholders (:%1$s:%2$s...). In case of message level, replace the level by its name. If the key is a string already, do not change it.- Parameter:
contents- the 2-dimensional array of keys an natural language messages
-
embedBodyInHtml
The special help consists of the HTML body only. It is embedded in a complete html with head.- Parameter:
body- the special body of the help- Gibt zurück:
- the body surrounded by hthm
-
getContents
The super class needs this.- Angegeben von:
getContentsin KlasseListResourceBundle- Gibt zurück:
- the 2-dimensional array of keys and natural language templates.
-