-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
__init__.py
200 lines (136 loc) 路 3.88 KB
/
__init__.py
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
from __future__ import print_function, unicode_literals
__all__ = [
"INavUtilities",
"NavUtilities",
"PrintUtilities",
"WindowUtilities",
]
from java.awt.image import BufferedImage
from java.lang import Object
class INavUtilities(object):
"""Parent interface to coordinate the functions between NavUtilities
and NavUtilitiesDispatcher.
"""
def centerWindow(self, arg):
raise NotImplementedError
def closeParentWindow(self, event):
raise NotImplementedError
def closeWindow(self, arg):
raise NotImplementedError
def getCurrentWindow(self):
raise NotImplementedError
def goBack(self):
raise NotImplementedError
def goForward(self):
raise NotImplementedError
def goHome(self):
raise NotImplementedError
def openWindow(self, *args):
raise NotImplementedError
def openWindowImpl(self, path, params, openAdditional):
raise NotImplementedError
def openWindowInstance(self, *args):
raise NotImplementedError
def swapTo(self, *args):
raise NotImplementedError
def swapWindow(self, *args):
raise NotImplementedError
class NavUtilities(INavUtilities):
def centerWindow(self, arg):
pass
def closeParentWindow(self, event):
pass
def closeWindow(self, arg):
pass
def getCurrentWindow(self):
pass
def goBack(self):
pass
def goForward(self):
pass
def goHome(self):
pass
def openWindow(self, *args):
pass
def openWindowImpl(self, path, params, openAdditional):
pass
def openWindowInstance(self, *args):
pass
def swapTo(self, *args):
pass
def swapWindow(self, *args):
pass
class PrintUtilities(Object):
def __init__(self, app):
print(self, app)
def createImage(self, c):
print(self, c)
width = height = imageType = 1
return BufferedImage(width, height, imageType)
def createPrintJob(self, c):
pass
def printToImage(self, c, fileName=None):
pass
class JythonPrintJob(Object):
def getBottomMargin(self):
pass
def getLeftMargin(self):
pass
def getOrientation(self):
pass
def getPageHeight(self):
pass
def getPageWidth(self):
pass
def getPrinterName(self):
pass
def getRightMargin(self):
pass
def getTopMargin(self):
pass
def getZoomFactor(self):
pass
def isFitToPage(self):
pass
def isShowPrintDialog(self):
pass
def setBottomMargin(self, bottomMargin):
pass
def setFitToPage(self, fitToPage):
pass
def setLeftMargin(self, leftMargin):
pass
def setMargins(self, m):
pass
def setOrientation(self, orientation):
pass
def setPageHeight(self, pageHeight):
pass
def setPageWidth(self, pageWidth):
pass
def setPrinterName(self, printerName):
pass
def setRightMargin(self, rightMargin):
pass
def setShowPrintDialog(self, showPrintDialog):
pass
def setZoomFactor(self, zoomFactor):
pass
class WindowUtilities(Object):
"""These are the scripting functions mounted at system.gui.*.
Changes to this class must be made carefully, as some of the true
implementations actually reside in the subclass,
WindowUtilitiesForDesktop.
"""
def confirm(self, *args):
pass
def errorBox(self, *args):
pass
def inputBox(self, *args):
pass
def messageBox(self, *args):
pass
def passwordBox(self, *args):
pass
def warningBox(self, *args):
pass