public class UIXInject
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
_LOCALE |
static int |
C |
static String |
CGI |
static String |
CLASS |
static String |
DATUM |
static int |
E |
static String |
FILE_HOME |
static String |
FORMULA |
static String |
FULLID |
static String |
GETTER |
static String |
HTML |
static String |
ID |
static String |
INVOKE |
static String |
LOCALE |
static int |
MAJOR |
static String |
METHOD |
static int |
MINOR |
static String |
MODE |
static int |
N |
static String |
OBID |
static String |
OBJ |
static String |
SKIP |
static String |
SKIP_IF |
static String |
TEXT |
static String |
TYPE |
static String |
UWGM |
static int |
V |
static String |
VAL |
Constructor and Description |
---|
UIXInject() |
Modifier and Type | Method and Description |
---|---|
static Map |
flushCache(Map in)
allows BCast to ask for cache reset
|
static Object |
getCalculated(String formula,
AttributeTypeIdentifier ati,
Persistable persistable) |
static Object |
getDataValue(Object origIn,
String callingClass,
String component_id,
Object datum,
ModelContext mc)
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]).
|
public static final int MAJOR
public static final int MINOR
public static final int N
public static final int C
public static final int E
public static final int V
public static final String FILE_HOME
public static final String TEXT
public static final String METHOD
public static final String GETTER
public static final String CLASS
public static final String OBID
public static final String ID
public static final String FULLID
public static final String LOCALE
public static final String _LOCALE
public static final String MODE
public static final String TYPE
public static final String DATUM
public static final String UWGM
public static final String VAL
public static final String SKIP
public static final String SKIP_IF
public static final String HTML
public static final String OBJ
public static final String FORMULA
public static final String INVOKE
public static final String CGI
public static Object getDataValue(Object origIn, String callingClass, String component_id, Object datum, ModelContext mc) throws WTException
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:
|
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.
origIn
- result of some other class' getDataValue(...) callcomponent_id
- from calling classdatum
- from calling classmc
- from calling classWTException
public static Map flushCache(Map in)
in
- Map (so PES might call this too)public static Object getCalculated(String formula, AttributeTypeIdentifier ati, Persistable persistable) throws Exception
Exception