SubformScript.java
4.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.template.containers;
import com.adobe.xfa.Arg;
import com.adobe.xfa.ArrayNodeList;
import com.adobe.xfa.DependencyTracker;
import com.adobe.xfa.NodeList;
import com.adobe.xfa.Obj;
import com.adobe.xfa.ScriptFuncObj;
import com.adobe.xfa.ScriptPropObj;
import com.adobe.xfa.ScriptTable;
import com.adobe.xfa.data.DataNode;
import com.adobe.xfa.template.containers.ContainerScript;
import com.adobe.xfa.template.containers.Subform;
public class SubformScript
extends ContainerScript {
static final ScriptTable moScriptTable = new ScriptTable(ContainerScript.moScriptTable, "subform", new ScriptPropObj[]{new ScriptPropObj(SubformScript.class, "message", "getMessage", "setMessage", 6, 21, 0, 0), new ScriptPropObj(SubformScript.class, "validationMessage", "getMessage", "setMessage", 6, 21, 9, 0), new ScriptPropObj(SubformScript.class, "instanceManager", "getInstanceManager", null, 7, 21, 9, 0), new ScriptPropObj(SubformScript.class, "fillColor", "getBackColor", "setBackColor", 6, 21, 63, 0), new ScriptPropObj(SubformScript.class, "borderColor", "getBorderColor", "setBorderColor", 6, 21, 63, 0), new ScriptPropObj(SubformScript.class, "borderWidth", "getBorderWidth", "setBorderWidth", 6, 21, 63, 0), new ScriptPropObj(SubformScript.class, "dataNode", "dataNode", null, 7, 21, 9, 0), new ScriptPropObj(SubformScript.class, "instanceIndex", "getInstanceIndex", "setInstanceIndex", 4, 25, 9, 0), new ScriptPropObj(SubformScript.class, "errorText", "getErrorText", null, 6, 30, 63, 0)}, new ScriptFuncObj[]{new ScriptFuncObj(SubformScript.class, "execCalculate", "execCalculate", 1, new int[0], 0, 21, 63, 0), new ScriptFuncObj(SubformScript.class, "execValidate", "execValidate", 3, new int[0], 0, 21, 63, 0), new ScriptFuncObj(SubformScript.class, "execInitialize", "execInitialize", 1, new int[0], 0, 21, 63, 0), new ScriptFuncObj(SubformScript.class, "execEvent", "execEvent", 1, new int[]{6}, 1, 21, 63, 0), new ScriptFuncObj(SubformScript.class, "getInvalidObjects", "getInvalidObjects", 7, new int[0], 0, 30, 63, 0)});
public static ScriptTable getScriptTable() {
return moScriptTable;
}
public static void getMessage(Obj pObj, Arg oRetVal) {
oRetVal.setString(((Subform)pObj).getMessage());
}
public static void setMessage(Obj pObj, Arg propertyValue) {
((Subform)pObj).setMessage(propertyValue.getString());
}
public static void getBackColor(Obj pObj, Arg oRetVal) {
oRetVal.setString(((Subform)pObj).getBackColor());
}
public static void setBackColor(Obj pObj, Arg propertyValue) {
((Subform)pObj).setBackColor(propertyValue.getString());
}
public static void getBorderColor(Obj pObj, Arg oRetVal) {
oRetVal.setString(((Subform)pObj).getBorderColor());
}
public static void setBorderColor(Obj pObj, Arg propertyValue) {
((Subform)pObj).setBorderColor(propertyValue.getString());
}
public static void getBorderWidth(Obj pObj, Arg oRetVal) {
oRetVal.setString(((Subform)pObj).getBorderWidth());
}
public static void setBorderWidth(Obj pObj, Arg propertyValue) {
((Subform)pObj).setBorderWidth(propertyValue.getString());
}
public static void getInstanceManager(Obj pObj, Arg oRetVal) {
oRetVal.setObject(((Subform)pObj).getInstanceManager());
}
public static void dataNode(Obj pObj, Arg oRetVal) {
oRetVal.setObject(((Subform)pObj).getDataNode());
}
public static void getInstanceIndex(Obj pObj, Arg oRetVal, DependencyTracker pDepTrack) {
oRetVal.setInteger(((Subform)pObj).getInstanceIndex(pDepTrack));
}
public static void setInstanceIndex(Obj pObj, Arg propertyValue) {
if (propertyValue.getArgType() != 2) {
((Subform)pObj).setInstanceIndex(propertyValue.getInteger());
}
}
public static void getErrorText(Obj pObj, Arg oRetVal) {
oRetVal.setString(((Subform)pObj).getErrorText());
}
public static void execCalculate(Obj pObj, Arg oRetVal, Arg[] pArgs) {
((Subform)pObj).execEvent("calculate");
}
public static void execValidate(Obj pObj, Arg oRetVal, Arg[] pArgs) {
oRetVal.setBool(((Subform)pObj).execValidate());
}
public static void execInitialize(Obj pObj, Arg oRetVal, Arg[] pArgs) {
((Subform)pObj).execEvent("initialize");
}
public static void execEvent(Obj pObj, Arg oRetVal, Arg[] pArgs) {
((Subform)pObj).execEvent(pArgs[0].getString());
}
public static void getInvalidObjects(Obj pObj, Arg oRetVal, Arg[] pArgs) {
ArrayNodeList invalidObjects = new ArrayNodeList();
((Subform)pObj).getInvalidObjects(invalidObjects);
oRetVal.setObject(invalidObjects);
}
}