HostPseudoModel.java
4.52 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa;
import com.adobe.xfa.*;
import com.adobe.xfa.ut.ExFull;
import com.adobe.xfa.ut.ISODateTime;
import com.adobe.xfa.ut.MsgFormatPos;
import com.adobe.xfa.ut.ResId;
import java.util.List;
public abstract class HostPseudoModel
extends PseudoModel {
public HostPseudoModel() {
this.setClass("hostPseudoModel");
}
@Override
public ScriptTable getScriptTable() {
return HostPseudoModelScript.moScriptTable;
}
public String getAppType() {
throw this.unimplemented("appType", true);
}
public int getCurrentPage() {
throw this.unimplemented("currentPage", true);
}
public void setCurrentPage(int nPage) {
throw this.unimplemented("currentPage", true);
}
public String getCurrentDateTime() {
ISODateTime oDateTime = new ISODateTime();
String sNow = oDateTime.format("YYYYMMDDTHHMMSS");
return sNow;
}
public int getDocumentInBatch() {
return 0;
}
public int getDocumentCountInBatch() {
return 1;
}
public String getLanguage() {
throw this.unimplemented("language", true);
}
public String getName() {
throw this.unimplemented("name", true);
}
public int getNumPages() {
throw this.unimplemented("numPages", true);
}
public String getPlatform() {
throw this.unimplemented("platform", true);
}
public String getTitle() {
throw this.unimplemented("title", true);
}
public void setTitle(String sTitle) {
throw this.unimplemented("title", true);
}
public String getVariation() {
throw this.unimplemented("variation", true);
}
public String getVersion() {
throw this.unimplemented("version", true);
}
public boolean getCalculationsEnabled() {
return true;
}
public void setCalculationsEnabled(boolean bEnabled) {
throw this.unimplemented("calculationsEnabled", true);
}
public boolean getValidationsEnabled() {
return true;
}
public void setValidationsEnabled(boolean bEnabled) {
throw this.unimplemented("validationsEnabled", true);
}
public void beep(int nBeep) {
throw this.unimplemented("beep", false);
}
public void exportData(String sFilename, boolean bXDP) {
throw this.unimplemented("exportData", false);
}
public void importData(String sFilename) {
throw this.unimplemented("importData", false);
}
public void gotoURL(String sURL, boolean bNewInstance) {
throw this.unimplemented("gotoURL", false);
}
public int messageBox(String sMessage, String sTitle, int nIcon, int nType) {
throw this.unimplemented("messageBox", false);
}
public void resetData(List<String> oNodes) {
throw this.unimplemented("resetData", false);
}
public void print(boolean bUI, int nStart, int nEnd, boolean bSilent, boolean bShrinkToFit, boolean bPrintAsImage, boolean bReverse, boolean bAnnotation) {
throw this.unimplemented("print", false);
}
public String response(String sQuestion, String sTitle, String sDefault, boolean bPassword) {
throw this.unimplemented("response", false);
}
public Obj getFocus() {
throw this.unimplemented("getFocus", false);
}
public void setFocus(String sSOMExpr) {
throw this.unimplemented("setFocus", false);
}
public void setFocus(Node node) {
throw this.unimplemented("setFocus", false);
}
public void pageDown() {
throw this.unimplemented("pageDown", false);
}
public void pageUp() {
throw this.unimplemented("pageUp", false);
}
public void openList(String sSOMExpr) {
throw this.unimplemented("openList", false);
}
public void openList(Node node) {
throw this.unimplemented("openList", false);
}
public String metaData(int nOutputType) {
return "";
}
public boolean importDataPermsCheck() {
throw this.unimplemented("importDataPermsCheck", false);
}
public boolean resetDataPermsCheck(List<String> nodes) {
throw this.unimplemented("resetDataPermsCheck", false);
}
private ExFull unimplemented(String sName, boolean bProperty) {
int nResId = bProperty ? ResId.InvalidPropertyException : ResId.InvalidMethodException;
MsgFormatPos oMessage = new MsgFormatPos(nResId);
oMessage.format("$host");
oMessage.format(sName);
return new ExFull(oMessage);
}
}