ScriptDispatcher.java
1.19 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa;
import com.adobe.xfa.Dispatcher;
import com.adobe.xfa.Element;
import com.adobe.xfa.EventManager;
public class ScriptDispatcher
extends Dispatcher {
private final String msContentType;
private final String msScript;
public ScriptDispatcher(Element poScriptContextNode, String sEventContext, int nEventID, EventManager poEventManager, String sScript, String sContentType) {
super(poScriptContextNode, sEventContext, nEventID, poEventManager);
this.msScript = sScript;
this.msContentType = sContentType;
}
@Override
public void dispatch() {
this.getActionContextNode().evaluate(this.msScript, this.msContentType, 0, true);
}
public String getContentType() {
return this.msContentType;
}
@Override
public String getDispatcherType() {
return "script";
}
@Override
public String getParameter(int nParam) {
if (nParam == 0) {
return this.getContentType();
}
if (nParam == 1) {
return this.getScript();
}
return "";
}
public String getScript() {
return this.msScript;
}
}