ContainerScript.java
1.43 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.template.containers;
import com.adobe.xfa.Arg;
import com.adobe.xfa.Element;
import com.adobe.xfa.Model;
import com.adobe.xfa.Node;
import com.adobe.xfa.Obj;
import com.adobe.xfa.ProtoableNodeScript;
import com.adobe.xfa.ScriptFuncObj;
import com.adobe.xfa.ScriptPropObj;
import com.adobe.xfa.ScriptTable;
import com.adobe.xfa.template.containers.Container;
public class ContainerScript
extends ProtoableNodeScript {
protected static final ScriptTable moScriptTable = new ScriptTable(ProtoableNodeScript.moScriptTable, "container", null, new ScriptFuncObj[]{new ScriptFuncObj(ContainerScript.class, "getDeltas", "getDeltas", 7, new int[0], 0, 25, 9, 0), new ScriptFuncObj(ContainerScript.class, "getDelta", "getDelta", 7, new int[]{6}, 1, 25, 9, 0)});
public static ScriptTable getScriptTable() {
return moScriptTable;
}
public static void getDeltas(Obj pObj, Arg oRetVal, Arg[] pArgs) {
Model oModel = ((Container)pObj).getModel();
if (oModel != null) {
Obj oList = oModel.getDeltas((Container)pObj);
oRetVal.setObject(oList);
}
}
public static void getDelta(Obj pObj, Arg oRetVal, Arg[] pArgs) {
Model oModel = ((Container)pObj).getModel();
if (oModel != null) {
Obj oDelta = oModel.getDelta((Container)pObj, pArgs[0].getString());
oRetVal.setObject(oDelta);
}
}
}