return either unmodified passed-in getDataValue object (O), or GUIComponentArray with added/substituted of HTMLComponents [H] or [H,O] or [H,O,H] or [O,H] (or even [H,H]).
within the html text of the file being inserted the following caseinsensitive placeholders are replaced:
key | value
|
---|
__ID__ | component_id
|
__MODE__ | VIEW or CREATE or EDIT
|
__TYPE__ | fully qualified type name, e.g. WTTYPE|wt.part.WTPart|de.sulis.TestPart
|
__LOCALE__ | browser locale, e.g. de, en (not!en_US)
|
__VAL__ | the current (String) value being rendered
|
_!full.class.Name:methodName__ | returns the String value of the method call, argument is a map of the form:
key | value
|
---|
InjectHtml.LOCALE | short locale String e.g., de, en
| InjectHtml._LOCALE | Locale Object
| InjectHtml.MODE | mode if screen (VIEW/EDIT/CREATE)
| InjectHtml.TYPE | if not null: type name of object (e.g., during create)
| InjectHtml.DATUM | if not null: datum object (has attribute being rendered)
| InjectHtml.VAL | AbstractGuiComponent's getInternalValue()
| InjectHtml.OBID | obid of main object or the String NULL
| InjectHtml.OBJ | main object or null (if OBID is NULL)
|
|
from the Map created in fiddleApart it is check if a value is found with the mode (EDIT etc.) as key, and if a value exists it is interpreted as follows:
skip means only output the superclass component, ignore the html for this mode.
html means only output a HTMLComponent from this file, omit the passed-in component.