java-api 17.25.0__py2-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- java/__init__.py +0 -0
- java/awt/__init__.py +265 -0
- java/awt/event/__init__.py +184 -0
- java/awt/geom/__init__.py +116 -0
- java/awt/image/__init__.py +14 -0
- java/awt/print/__init__.py +93 -0
- java/beans/__init__.py +38 -0
- java/io/__init__.py +442 -0
- java/lang/__init__.py +868 -0
- java/lang/reflect/__init__.py +9 -0
- java/math/__init__.py +93 -0
- java/net/__init__.py +504 -0
- java/net/http/__init__.py +15 -0
- java/nio/__init__.py +667 -0
- java/nio/channels/__init__.py +352 -0
- java/nio/charset/__init__.py +146 -0
- java/nio/file/__init__.py +728 -0
- java/nio/file/attribute/__init__.py +141 -0
- java/org/__init__.py +0 -0
- java/org/jdesktop/__init__.py +0 -0
- java/org/jdesktop/core/__init__.py +0 -0
- java/org/jdesktop/core/animation/__init__.py +0 -0
- java/org/jdesktop/core/animation/timing/__init__.py +17 -0
- java/security/__init__.py +27 -0
- java/text/__init__.py +543 -0
- java/time/__init__.py +575 -0
- java/time/chrono/__init__.py +319 -0
- java/time/format/__init__.py +72 -0
- java/time/temporal/__init__.py +353 -0
- java/util/__init__.py +1479 -0
- java/util/concurrent/__init__.py +147 -0
- java/util/function/__init__.py +131 -0
- java/util/regex/__init__.py +197 -0
- java/util/stream/__init__.py +128 -0
- java_api-17.25.0.dist-info/LICENSE +21 -0
- java_api-17.25.0.dist-info/METADATA +150 -0
- java_api-17.25.0.dist-info/RECORD +46 -0
- java_api-17.25.0.dist-info/WHEEL +5 -0
- java_api-17.25.0.dist-info/top_level.txt +2 -0
- javax/__init__.py +0 -0
- javax/security/__init__.py +0 -0
- javax/security/auth/__init__.py +14 -0
- javax/swing/__init__.py +483 -0
- javax/swing/event/__init__.py +43 -0
- javax/swing/plaf/__init__.py +28 -0
- javax/swing/text/__init__.py +19 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: java-api
|
|
3
|
+
Version: 17.25.0
|
|
4
|
+
Summary: Java API Specification for ignition-api
|
|
5
|
+
Home-page: https://github.com/ignition-devs/java-api
|
|
6
|
+
Author: César Román
|
|
7
|
+
Author-email: cesar@coatl.dev
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Source, https://github.com/ignition-devs/java-api/tree/main
|
|
10
|
+
Project-URL: Documentation, https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions
|
|
11
|
+
Project-URL: Funding, https://github.com/sponsors/cesarcoatl
|
|
12
|
+
Project-URL: Tracker, https://github.com/ignition-devs/java-api/issues
|
|
13
|
+
Keywords: coatl.dev,ignition,inductive automation,java
|
|
14
|
+
Platform: UNKNOWN
|
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Information Technology
|
|
18
|
+
Classifier: Intended Audience :: Manufacturing
|
|
19
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
20
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
21
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
22
|
+
Classifier: Programming Language :: Python
|
|
23
|
+
Classifier: Programming Language :: Python :: 2
|
|
24
|
+
Classifier: Programming Language :: Python :: 2 :: Only
|
|
25
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
26
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
+
Classifier: Topic :: Software Development :: Testing :: Mocking
|
|
28
|
+
Requires-Python: ==2.7.18
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
Requires-Dist: typing
|
|
31
|
+
|
|
32
|
+
# java-api
|
|
33
|
+
|
|
34
|
+
<!--- Badges --->
|
|
35
|
+
[](https://pypi.org/project/java-api/)
|
|
36
|
+
[](https://pypi.org/project/java-api/)
|
|
37
|
+
[](https://pepy.tech/projects/java-api)
|
|
38
|
+
[](https://results.pre-commit.ci/latest/github/ignition-devs/java-api/main)
|
|
39
|
+
[](https://github.com/ignition-devs/java-api/actions/workflows/ci.yml)
|
|
40
|
+
[](https://github.com/orgs/ignition-devs/discussions)
|
|
41
|
+
|
|
42
|
+
java-api is a Python package that allows developers to get code completion
|
|
43
|
+
for Java 17 API Specification functions and classes in their IDE of choice.
|
|
44
|
+
|
|
45
|
+
## Table of contents
|
|
46
|
+
|
|
47
|
+
- [Prerequisites](#prerequisites)
|
|
48
|
+
- [Installation and usage](#installation-and-usage)
|
|
49
|
+
- [Installing with pip](#installing-with-pip)
|
|
50
|
+
- [Project structure](#project-structure)
|
|
51
|
+
- [Packages](#packages)
|
|
52
|
+
- [Contributing](#contributing)
|
|
53
|
+
- [Discussions](#discussions)
|
|
54
|
+
- [Contributors](#contributors)
|
|
55
|
+
- [License](#license)
|
|
56
|
+
- [Code of conduct](#code-of-conduct)
|
|
57
|
+
|
|
58
|
+
## Prerequisites
|
|
59
|
+
|
|
60
|
+
Before you begin, ensure you have met the following requirements:
|
|
61
|
+
|
|
62
|
+
- You have installed [Python 2.7.18]
|
|
63
|
+
|
|
64
|
+
## Installation and usage
|
|
65
|
+
|
|
66
|
+
To use java-api, you may install it using the following method.
|
|
67
|
+
|
|
68
|
+
### Installing with `pip`
|
|
69
|
+
|
|
70
|
+
> [!NOTE]
|
|
71
|
+
> For stub files for this package, look for [`java-api-stubs`].
|
|
72
|
+
|
|
73
|
+
The preferred method is to install it by running `pip`. It requires Python
|
|
74
|
+
2.7.18.
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
python2 -m pip install java-api
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
This will install it as package to your Python installation, which will allow
|
|
81
|
+
you to call Ignition Scripting functions from Python's REPL, and get code
|
|
82
|
+
completion using an IDE such as PyCharm and Visual Studio Code.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
$ python2
|
|
86
|
+
Python 2.7.18 (default, Sep 23 2024, 13:23:35)
|
|
87
|
+
[GCC Apple LLVM 16.0.0 (clang-1600.0.26.3)] on darwin
|
|
88
|
+
Type "help", "copyright", "credits" or "license" for more information.
|
|
89
|
+
>>> from __future__ import print_function
|
|
90
|
+
>>> import java.lang
|
|
91
|
+
>>> print(java.lang.__doc__)
|
|
92
|
+
Provides classes that are fundamental to the design of the Java
|
|
93
|
+
programming language.
|
|
94
|
+
|
|
95
|
+
>>> quit()
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
And to uninstall:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
python2 -m pip uninstall java-api
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Project structure
|
|
105
|
+
|
|
106
|
+
### Packages
|
|
107
|
+
|
|
108
|
+
This project consists of the following packages:
|
|
109
|
+
|
|
110
|
+
- [java](#javajavax)
|
|
111
|
+
- [javax](#javajavax)
|
|
112
|
+
|
|
113
|
+
#### java/javax
|
|
114
|
+
|
|
115
|
+
These packages include supporting Java classes and interfaces. For more
|
|
116
|
+
information, see documentation here:
|
|
117
|
+
<https://docs.oracle.com/en/java/javase/17/docs/api/index.html>.
|
|
118
|
+
|
|
119
|
+
## Contributing
|
|
120
|
+
|
|
121
|
+
See [CONTRIBUTING.md].
|
|
122
|
+
|
|
123
|
+
## Discussions
|
|
124
|
+
|
|
125
|
+
Feel free to post your questions and/or ideas at [Discussions].
|
|
126
|
+
|
|
127
|
+
## Contributors
|
|
128
|
+
|
|
129
|
+
Thanks to everyone who has contributed to this project.
|
|
130
|
+
|
|
131
|
+
Up-to-date list of contributors can be found here: [CONTRIBUTORS].
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
See the [LICENSE].
|
|
136
|
+
|
|
137
|
+
## Code of conduct
|
|
138
|
+
|
|
139
|
+
This project has adopted the [Microsoft Open Source Code of Conduct].
|
|
140
|
+
|
|
141
|
+
<!-- Links -->
|
|
142
|
+
[CONTRIBUTING.md]: https://github.com/ignition-devs/java-api/blob/main/CONTRIBUTING.md#contributing-to-java-api
|
|
143
|
+
[CONTRIBUTORS]: https://github.com/ignition-devs/java-api/graphs/contributors
|
|
144
|
+
[Discussions]: https://github.com/orgs/ignition-devs/discussions
|
|
145
|
+
[`java-api-stubs`]: https://pypi.org/project/java-api-stubs/
|
|
146
|
+
[LICENSE]: https://github.com/ignition-devs/java-api/blob/main/LICENSE
|
|
147
|
+
[Microsoft Open Source Code of Conduct]: https://opensource.microsoft.com/codeofconduct/
|
|
148
|
+
[Python 2.7.18]: https://www.python.org/downloads/release/python-2718/
|
|
149
|
+
|
|
150
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
java/__init__.py,SHA256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
java/awt/__init__.py,SHA256=VwA-JQFUs20UJRYo0C8ICXOPCgTULLaibrZ3msA3u28,5437
|
|
3
|
+
java/awt/event/__init__.py,SHA256=lMB6712DIx9DFNqB6ZSxD-s4cl0flTW5kGB62npAWEc,4387
|
|
4
|
+
java/awt/geom/__init__.py,SHA256=aYwEU-vRJQyTTygQuzjF44YQGO2I1jGTxpYRHJInLKI,2545
|
|
5
|
+
java/awt/image/__init__.py,SHA256=X8ycKnpLb5IagTy11RYm5C503_vNPiWRTaSLnFKU9po,277
|
|
6
|
+
java/awt/print/__init__.py,SHA256=qo80_7FFoXSqBkMFyiMqPKB-iwVfsvlcwdVuP7u2f7k,1698
|
|
7
|
+
java/beans/__init__.py,SHA256=ibOy3bc4N84kfDrw4Sxqj_BYZgYUvHN9XFybMqJ5cIM,1086
|
|
8
|
+
java/io/__init__.py,SHA256=SItpMdrKQ-VHUniXNTOomfNjyjTBMphX1D9v171VjFM,9266
|
|
9
|
+
java/lang/__init__.py,SHA256=W2x_s8BRCqW1xORruNprOsHo3hSYFiE76N5_QdOpH-0,20505
|
|
10
|
+
java/lang/reflect/__init__.py,SHA256=1JbQrNW001Ixelukj3ZBoshgaNiAglkTQbDuzzo51FA,170
|
|
11
|
+
java/math/__init__.py,SHA256=gzab0BiZlBO3qAmiN6TPDbIwqXMLdBwBRbidWybSulo,2020
|
|
12
|
+
java/net/__init__.py,SHA256=_Iu8_w2wul09Vkp8YJGMvBlg1SyZmkf0LZiS9e8O-wk,11135
|
|
13
|
+
java/net/http/__init__.py,SHA256=TvJOHvdiYI4EDx7RyhjXaz-_3IHoldEwTlvUSA5zycw,200
|
|
14
|
+
java/nio/__init__.py,SHA256=0mpzaakLydsTEBeHRUCWayjfGBibtUtJKXINM7OlVzI,12452
|
|
15
|
+
java/nio/channels/__init__.py,SHA256=SEwJ8RDEmzadHd_mTF2LtLh6tO4eeMgmB7oo2iISBOM,7201
|
|
16
|
+
java/nio/charset/__init__.py,SHA256=npSXicNRFGTczVs-Q6DRTXOM0XvN-EhLHQC0s2atmw0,3076
|
|
17
|
+
java/nio/file/__init__.py,SHA256=lSbiO-84-Q113q2vkpOkuGMvJXNjtWuUmpAKtf4nMjI,17270
|
|
18
|
+
java/nio/file/attribute/__init__.py,SHA256=wiqoNyqIIxBlwc_8la2HLYURw9uZ6dACraZWK0kZlFw,3120
|
|
19
|
+
java/org/__init__.py,SHA256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
+
java/org/jdesktop/__init__.py,SHA256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
+
java/org/jdesktop/core/__init__.py,SHA256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
+
java/org/jdesktop/core/animation/__init__.py,SHA256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
+
java/org/jdesktop/core/animation/timing/__init__.py,SHA256=pOMTOZ5_TMMroLieQhNGIzy6f9TWj89tTWs7bGervOE,273
|
|
24
|
+
java/security/__init__.py,SHA256=LTk7M6PgC9lgAxdFG_Jqbhvcb8kGfOq9CdEKrkkwI3U,617
|
|
25
|
+
java/text/__init__.py,SHA256=hxhE5wMdW15NPiI0DT6d5B3vE55Az7SXGZmw6LYHEgc,13153
|
|
26
|
+
java/time/__init__.py,SHA256=2fdyxml6hQM_MchluwWeNEr3ara5gU9_RSpIrq_LsLA,12268
|
|
27
|
+
java/time/chrono/__init__.py,SHA256=Ex3FlEQWEG1zW2yyefLeM5rJ7SOEvkWZtqkJMD16PPg,7584
|
|
28
|
+
java/time/format/__init__.py,SHA256=zpOYyIPc6JeRfiORstcUPU25-rTOzz5jR3Rb1WocbYk,2154
|
|
29
|
+
java/time/temporal/__init__.py,SHA256=0_iPeETT9IEmw2fQy6UTuIMuvElXPR1FsZeMQ_WOuDo,8958
|
|
30
|
+
java/util/__init__.py,SHA256=Y4zbA5Y1Qu7T60_k9npx_iNwY0ccEfm5u-QwFxrOzFg,33037
|
|
31
|
+
java/util/concurrent/__init__.py,SHA256=1FG4SNedSAKHRkdJZxTZwIgdcNOIwBqYMEa13cq-qBo,3295
|
|
32
|
+
java/util/function/__init__.py,SHA256=9dm8Nl1svo_WSgzqrvA4ykgLAA55em7hoex_KCXKo-M,2550
|
|
33
|
+
java/util/regex/__init__.py,SHA256=YHPXiIvC6GP7dXs0mEV0Kz4vdklW8aLUSKKaRR5csWs,4489
|
|
34
|
+
java/util/stream/__init__.py,SHA256=v8l7GOQa0MgwuIaKIAKZM_NO2Z0c-F32_GtJyYtpRzs,2674
|
|
35
|
+
javax/__init__.py,SHA256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
+
javax/security/__init__.py,SHA256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
+
javax/security/auth/__init__.py,SHA256=EmJC26NEuKCgAf2QOBofizLkeH5kej7VjxQaQWCzN1Y,262
|
|
38
|
+
javax/swing/__init__.py,SHA256=8KcCYh314Woye128yQe0I4zdssIvpm4b5zYYQIbduzU,12325
|
|
39
|
+
javax/swing/event/__init__.py,SHA256=d4DTi36deUvh4DRps76FJeV3dc4P3UJ4FGO_AGZrzMk,1201
|
|
40
|
+
javax/swing/plaf/__init__.py,SHA256=mujUSR0nHMp_xFgYyJmTgFSjMRTFCZnTTebN7A-Q4v8,646
|
|
41
|
+
javax/swing/text/__init__.py,SHA256=2NyK8jNMvcZHsjXxvnDLVzHnpOQmE7Wy-5LXXRLfvq8,440
|
|
42
|
+
java_api-17.25.0.dist-info/LICENSE,SHA256=9JbwJjgJlv29-ztnD_uX7tXuD4N1nvRaZaFYtYn8IZ8,1067
|
|
43
|
+
java_api-17.25.0.dist-info/METADATA,SHA256=iDbEVvKsVX26EozmFR1Gm7fDtDMf4CvP5oxisd5WITo,5112
|
|
44
|
+
java_api-17.25.0.dist-info/WHEEL,SHA256=1VPi6hfNQaRRNuEdK_3dv9o8COtLGnHWJghhj4CQ28k,92
|
|
45
|
+
java_api-17.25.0.dist-info/top_level.txt,SHA256=ULMl8dxVE3DpTgZToR95hVaQmkl-LPtCbMSiiQAmdck,11
|
|
46
|
+
java_api-17.25.0.dist-info/RECORD,,
|
javax/__init__.py
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import print_function
|
|
2
|
+
|
|
3
|
+
__all__ = ["Subject"]
|
|
4
|
+
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from java.lang import Object
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Subject(Object):
|
|
11
|
+
def __init__(self, *args):
|
|
12
|
+
# type: (*Any) -> None
|
|
13
|
+
super(Subject, self).__init__()
|
|
14
|
+
print(args)
|
javax/swing/__init__.py
ADDED
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
from __future__ import print_function
|
|
2
|
+
|
|
3
|
+
__all__ = [
|
|
4
|
+
"DesktopManager",
|
|
5
|
+
"Icon",
|
|
6
|
+
"JComponent",
|
|
7
|
+
"JDesktopPane",
|
|
8
|
+
"JFrame",
|
|
9
|
+
"JInternalFrame",
|
|
10
|
+
"JLabel",
|
|
11
|
+
"JLayeredPane",
|
|
12
|
+
"JOptionPane",
|
|
13
|
+
"JPanel",
|
|
14
|
+
"JPasswordField",
|
|
15
|
+
"JPopupMenu",
|
|
16
|
+
"JRootPane",
|
|
17
|
+
"JTextField",
|
|
18
|
+
"JToolTip",
|
|
19
|
+
"RootPaneContainer",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
import array
|
|
23
|
+
import warnings
|
|
24
|
+
from typing import Any, List, Optional, Union
|
|
25
|
+
|
|
26
|
+
from java.awt import Component, Container, Frame, Graphics
|
|
27
|
+
from java.util import Locale
|
|
28
|
+
from javax.swing.event import AncestorListener
|
|
29
|
+
from javax.swing.plaf import DesktopPaneUI
|
|
30
|
+
from javax.swing.text import JTextComponent
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class DesktopManager(object):
|
|
34
|
+
def activateFrame(self, f):
|
|
35
|
+
# type: (JInternalFrame) -> None
|
|
36
|
+
raise NotImplementedError
|
|
37
|
+
|
|
38
|
+
def beginDragginFrame(self, f):
|
|
39
|
+
# type: (JComponent) -> None
|
|
40
|
+
raise NotImplementedError
|
|
41
|
+
|
|
42
|
+
def beginResizingFrame(self, f, direction):
|
|
43
|
+
# type: (JComponent, int) -> None
|
|
44
|
+
raise NotImplementedError
|
|
45
|
+
|
|
46
|
+
def closeFrame(self, f):
|
|
47
|
+
# type: (JInternalFrame) -> None
|
|
48
|
+
raise NotImplementedError
|
|
49
|
+
|
|
50
|
+
def deactivateFrame(self, f):
|
|
51
|
+
# type: (JInternalFrame) -> None
|
|
52
|
+
raise NotImplementedError
|
|
53
|
+
|
|
54
|
+
def deiconifyFrame(self, f):
|
|
55
|
+
# type: (JInternalFrame) -> None
|
|
56
|
+
raise NotImplementedError
|
|
57
|
+
|
|
58
|
+
def dragFrame(self, f, newX, newY):
|
|
59
|
+
# type: (JComponent, int, int) -> None
|
|
60
|
+
raise NotImplementedError
|
|
61
|
+
|
|
62
|
+
def endDraggingFrame(self, f):
|
|
63
|
+
# type: (JComponent) -> None
|
|
64
|
+
raise NotImplementedError
|
|
65
|
+
|
|
66
|
+
def endResizing(self, f):
|
|
67
|
+
# type: (JComponent) -> None
|
|
68
|
+
raise NotImplementedError
|
|
69
|
+
|
|
70
|
+
def iconifyFrame(self, f):
|
|
71
|
+
# type: (JInternalFrame) -> None
|
|
72
|
+
raise NotImplementedError
|
|
73
|
+
|
|
74
|
+
def maximizeFrame(self, f):
|
|
75
|
+
# type: (JInternalFrame) -> None
|
|
76
|
+
raise NotImplementedError
|
|
77
|
+
|
|
78
|
+
def minimizeFrame(self, f):
|
|
79
|
+
# type: (JInternalFrame) -> None
|
|
80
|
+
raise NotImplementedError
|
|
81
|
+
|
|
82
|
+
def openFrame(self, f):
|
|
83
|
+
# type: (JInternalFrame) -> None
|
|
84
|
+
raise NotImplementedError
|
|
85
|
+
|
|
86
|
+
def resizeFrame(self, f, newX, newY, newWidth, newHeight):
|
|
87
|
+
# type: (JComponent, int, int, int, int) -> None
|
|
88
|
+
raise NotImplementedError
|
|
89
|
+
|
|
90
|
+
def setBoundsForFrame(self, f, newX, newY, newWidth, newHeight):
|
|
91
|
+
# type: (JComponent, int, int, int, int) -> None
|
|
92
|
+
raise NotImplementedError
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class Icon(object):
|
|
96
|
+
def getIconHeight(self):
|
|
97
|
+
# type: () -> int
|
|
98
|
+
raise NotImplementedError
|
|
99
|
+
|
|
100
|
+
def getIconWidth(self):
|
|
101
|
+
# type: () -> int
|
|
102
|
+
raise NotImplementedError
|
|
103
|
+
|
|
104
|
+
def paintIcon(self, c, g, x, y):
|
|
105
|
+
# type: (Component, Graphics, int, int) -> None
|
|
106
|
+
raise NotImplementedError
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
class RootPaneContainer(object):
|
|
110
|
+
def getContentPane(self):
|
|
111
|
+
# type: () -> Container
|
|
112
|
+
raise NotImplementedError
|
|
113
|
+
|
|
114
|
+
def getGlassPane(self):
|
|
115
|
+
# type: () -> Component
|
|
116
|
+
raise NotImplementedError
|
|
117
|
+
|
|
118
|
+
def getLayeredPane(self):
|
|
119
|
+
# type: () -> JLayeredPane
|
|
120
|
+
raise NotImplementedError
|
|
121
|
+
|
|
122
|
+
def getRootPane(self):
|
|
123
|
+
# type: () -> JRootPane
|
|
124
|
+
raise NotImplementedError
|
|
125
|
+
|
|
126
|
+
def setContentPane(self, contentPane):
|
|
127
|
+
# type: (Container) -> None
|
|
128
|
+
raise NotImplementedError
|
|
129
|
+
|
|
130
|
+
def setGlassPane(self, glassPane):
|
|
131
|
+
# type: (Component) -> None
|
|
132
|
+
raise NotImplementedError
|
|
133
|
+
|
|
134
|
+
def setLayeredPane(self, rootPane):
|
|
135
|
+
# type: (JLayeredPane) -> None
|
|
136
|
+
raise NotImplementedError
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class JComponent(Container):
|
|
140
|
+
TOOL_TIP_TEXT_KEY = None # type: Union[str, unicode]
|
|
141
|
+
UNDEFINED_CONDITION = None # type: int
|
|
142
|
+
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT = None # type: int
|
|
143
|
+
WHEN_FOCUSED = None # type: int
|
|
144
|
+
WHEN_IN_FOCUSED_WINDOW = None # type: int
|
|
145
|
+
|
|
146
|
+
def __init__(self):
|
|
147
|
+
# type: () -> None
|
|
148
|
+
super(JComponent, self).__init__()
|
|
149
|
+
|
|
150
|
+
def addAncestorListener(self, listener):
|
|
151
|
+
# type: (AncestorListener) -> None
|
|
152
|
+
pass
|
|
153
|
+
|
|
154
|
+
def addNotify(self):
|
|
155
|
+
# type: () -> None
|
|
156
|
+
pass
|
|
157
|
+
|
|
158
|
+
def createToolTip(self):
|
|
159
|
+
# type: () -> JToolTip
|
|
160
|
+
pass
|
|
161
|
+
|
|
162
|
+
@staticmethod
|
|
163
|
+
def getDefaultLocale():
|
|
164
|
+
# type: () -> Locale
|
|
165
|
+
pass
|
|
166
|
+
|
|
167
|
+
@staticmethod
|
|
168
|
+
def isLightweightComponent(c):
|
|
169
|
+
# type: (Component) -> bool
|
|
170
|
+
return True
|
|
171
|
+
|
|
172
|
+
@staticmethod
|
|
173
|
+
def setDefaultLocale(l):
|
|
174
|
+
# type: (Locale) -> None
|
|
175
|
+
pass
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class JFrame(Frame):
|
|
179
|
+
def __init__(self, *args):
|
|
180
|
+
# type: (*Any) -> None
|
|
181
|
+
super(JFrame, self).__init__(*args)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class JInternalFrame(JComponent):
|
|
185
|
+
def __init__(
|
|
186
|
+
self,
|
|
187
|
+
title=None, # type: Union[str, unicode, None]
|
|
188
|
+
resizable=None, # type: Optional[bool]
|
|
189
|
+
closable=None, # type: Optional[bool]
|
|
190
|
+
maximizable=None, # type: Optional[bool]
|
|
191
|
+
iconifiable=None, # type: Optional[bool]
|
|
192
|
+
):
|
|
193
|
+
# type: (...) -> None
|
|
194
|
+
super(JInternalFrame, self).__init__()
|
|
195
|
+
print(title, resizable, closable, maximizable, iconifiable)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class JLabel(JComponent):
|
|
199
|
+
"""A display area for a short text string or an image, or both."""
|
|
200
|
+
|
|
201
|
+
def __init__(self, *args):
|
|
202
|
+
# type: (*Any) -> None
|
|
203
|
+
super(JLabel, self).__init__()
|
|
204
|
+
print(args)
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class JLayeredPane(JComponent):
|
|
208
|
+
DEFAULT_LAYER = 0
|
|
209
|
+
DRAG_LAYER = 400
|
|
210
|
+
FRAME_CONTENT_LAYER = -30000
|
|
211
|
+
LAYER_PROPERTY = "layeredContainerLayer"
|
|
212
|
+
MODAL_LAYER = 200
|
|
213
|
+
PALETTE_LAYER = 100
|
|
214
|
+
POPUP_LAYER = 300
|
|
215
|
+
|
|
216
|
+
def __init__(self):
|
|
217
|
+
# type: () -> None
|
|
218
|
+
super(JLayeredPane, self).__init__()
|
|
219
|
+
|
|
220
|
+
def getComponentCountInLayer(self, layer):
|
|
221
|
+
# type: (int) -> int
|
|
222
|
+
pass
|
|
223
|
+
|
|
224
|
+
def getLayer(self, c):
|
|
225
|
+
# type: (Component) -> int
|
|
226
|
+
pass
|
|
227
|
+
|
|
228
|
+
def highestLayer(self):
|
|
229
|
+
# type: () -> int
|
|
230
|
+
pass
|
|
231
|
+
|
|
232
|
+
def lowestLayer(self):
|
|
233
|
+
# type: () -> int
|
|
234
|
+
pass
|
|
235
|
+
|
|
236
|
+
def setPosition(self, c, position):
|
|
237
|
+
# type: (Component, int) -> None
|
|
238
|
+
pass
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
class JDesktopPane(JLayeredPane):
|
|
242
|
+
LIVE_DRAG_MODE = None # type: int
|
|
243
|
+
OUTLINE_DRAG_MODE = None # type: int
|
|
244
|
+
|
|
245
|
+
def __init__(self):
|
|
246
|
+
# type: () -> None
|
|
247
|
+
super(JDesktopPane, self).__init__()
|
|
248
|
+
|
|
249
|
+
def getAllFrames(self):
|
|
250
|
+
# type: () -> List[JInternalFrame]
|
|
251
|
+
pass
|
|
252
|
+
|
|
253
|
+
def getAllFramesInLayer(self, layer):
|
|
254
|
+
# type: (int) -> List[JInternalFrame]
|
|
255
|
+
pass
|
|
256
|
+
|
|
257
|
+
def getDesktopManager(self):
|
|
258
|
+
# type: () -> DesktopManager
|
|
259
|
+
pass
|
|
260
|
+
|
|
261
|
+
def getDragMode(self):
|
|
262
|
+
# type: () -> int
|
|
263
|
+
pass
|
|
264
|
+
|
|
265
|
+
def getSelectedFrame(self):
|
|
266
|
+
# type: () -> JInternalFrame
|
|
267
|
+
pass
|
|
268
|
+
|
|
269
|
+
def getUI(self):
|
|
270
|
+
# type: () -> DesktopPaneUI
|
|
271
|
+
pass
|
|
272
|
+
|
|
273
|
+
def getUIClassID(self):
|
|
274
|
+
# type: () -> Union[str, unicode]
|
|
275
|
+
pass
|
|
276
|
+
|
|
277
|
+
def updateUI(self):
|
|
278
|
+
# type: () -> None
|
|
279
|
+
pass
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
class JOptionPane(JComponent):
|
|
283
|
+
"""JOptionPane makes it easy to pop up a standard dialog box that
|
|
284
|
+
prompts users for a value or informs them of something.
|
|
285
|
+
|
|
286
|
+
For information about using JOptionPane, see How to Make Dialogs, a
|
|
287
|
+
section in The Java Tutorial.
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
# messageType.
|
|
291
|
+
PLAIN_MESSAGE = -1
|
|
292
|
+
ERROR_MESSAGE = 0
|
|
293
|
+
INFORMATION_MESSAGE = 1
|
|
294
|
+
WARNING_MESSAGE = 2
|
|
295
|
+
QUESTION_MESSAGE = 3
|
|
296
|
+
|
|
297
|
+
# optionType.
|
|
298
|
+
DEFAULT_OPTION = -1
|
|
299
|
+
YES_NO_OPTION = 0
|
|
300
|
+
YES_NO_CANCEL_OPTION = 1
|
|
301
|
+
OK_CANCEL_OPTION = 2
|
|
302
|
+
|
|
303
|
+
# When one of the showXxxDialog methods returns an integer, the
|
|
304
|
+
# possible values are:
|
|
305
|
+
CLOSED_OPTION = -1
|
|
306
|
+
OK_OPTION = 0
|
|
307
|
+
YES_OPTION = 0
|
|
308
|
+
NO_OPTION = 1
|
|
309
|
+
CANCEL_OPTION = 2
|
|
310
|
+
|
|
311
|
+
@staticmethod
|
|
312
|
+
def showConfirmDialog(
|
|
313
|
+
parentComponent, # type: Optional[Any]
|
|
314
|
+
message, # type: Any
|
|
315
|
+
title=None, # type: Union[str, unicode, None]
|
|
316
|
+
optionType=None, # type: Optional[int]
|
|
317
|
+
messageType=None, # type: Optional[int]
|
|
318
|
+
icon=None, # type: Optional[Icon]
|
|
319
|
+
):
|
|
320
|
+
# type: (...) -> int
|
|
321
|
+
print(parentComponent, message, title, optionType, messageType, icon)
|
|
322
|
+
return JOptionPane.YES_OPTION
|
|
323
|
+
|
|
324
|
+
@staticmethod
|
|
325
|
+
def showInputDialog(
|
|
326
|
+
parentComponent, # type: Optional[Any]
|
|
327
|
+
message, # type: Any
|
|
328
|
+
title=None, # type: Union[str, unicode, None]
|
|
329
|
+
messageType=None, # type: Optional[int]
|
|
330
|
+
icon=None, # type: Optional[Icon]
|
|
331
|
+
selectionValues=None, # type: Optional[List[Any]]
|
|
332
|
+
initialSelectionValue=None, # type: Optional[Any]
|
|
333
|
+
):
|
|
334
|
+
# type: (...) -> Union[str, unicode]
|
|
335
|
+
print(
|
|
336
|
+
parentComponent,
|
|
337
|
+
message,
|
|
338
|
+
title,
|
|
339
|
+
messageType,
|
|
340
|
+
icon,
|
|
341
|
+
selectionValues,
|
|
342
|
+
initialSelectionValue,
|
|
343
|
+
)
|
|
344
|
+
return "Input"
|
|
345
|
+
|
|
346
|
+
@staticmethod
|
|
347
|
+
def showMessageDialog(
|
|
348
|
+
parentComponent, # type: Optional[Any]
|
|
349
|
+
message, # type: Any
|
|
350
|
+
title=None, # type: Union[str, unicode, None]
|
|
351
|
+
messageType=None, # type: Optional[int]
|
|
352
|
+
icon=None, # type: Optional[Icon]
|
|
353
|
+
):
|
|
354
|
+
# type: (...) -> None
|
|
355
|
+
print(parentComponent, message, title, messageType, icon)
|
|
356
|
+
|
|
357
|
+
@staticmethod
|
|
358
|
+
def showOptionDialog(
|
|
359
|
+
parentComponent, # type: Optional[Any]
|
|
360
|
+
message, # type: Any
|
|
361
|
+
title=None, # type: Union[str, unicode, None]
|
|
362
|
+
optionType=None, # type: Optional[int]
|
|
363
|
+
messageType=None, # type: Optional[int]
|
|
364
|
+
icon=None, # type: Optional[Icon]
|
|
365
|
+
options=None, # type: Optional[List[Any]]
|
|
366
|
+
initialValue=None, # type: Optional[Any]
|
|
367
|
+
):
|
|
368
|
+
# type: (...) -> int
|
|
369
|
+
print(
|
|
370
|
+
parentComponent,
|
|
371
|
+
message,
|
|
372
|
+
title,
|
|
373
|
+
optionType,
|
|
374
|
+
messageType,
|
|
375
|
+
icon,
|
|
376
|
+
options,
|
|
377
|
+
initialValue,
|
|
378
|
+
)
|
|
379
|
+
return JOptionPane.YES_OPTION
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
class JPanel(JComponent):
|
|
383
|
+
def __init__(self, *args):
|
|
384
|
+
# type: (*Any) -> None
|
|
385
|
+
super(JPanel, self).__init__()
|
|
386
|
+
print(args)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class JToolTip(JComponent):
|
|
390
|
+
def __init__(self):
|
|
391
|
+
# type: () -> None
|
|
392
|
+
super(JToolTip, self).__init__()
|
|
393
|
+
|
|
394
|
+
def getComponent(self):
|
|
395
|
+
# type: () -> JComponent
|
|
396
|
+
pass
|
|
397
|
+
|
|
398
|
+
def getTipText(self):
|
|
399
|
+
# type: () -> Union[str, unicode]
|
|
400
|
+
pass
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
class JPopupMenu(JComponent):
|
|
404
|
+
"""An implementation of a popup menu -- a small window that pops up
|
|
405
|
+
and displays a series of choices.
|
|
406
|
+
|
|
407
|
+
A JPopupMenu is used for the menu that appears when the user selects
|
|
408
|
+
an item on the menu bar. It is also used for "pull-right" menu that
|
|
409
|
+
appears when the selects a menu item that activates it. Finally, a
|
|
410
|
+
JPopupMenu can also be used anywhere else you want a menu to appear.
|
|
411
|
+
For example, when the user right-clicks in a specified area.
|
|
412
|
+
"""
|
|
413
|
+
|
|
414
|
+
def __init__(self, label=None):
|
|
415
|
+
# type: (Union[str, unicode, None]) -> None
|
|
416
|
+
super(JPopupMenu, self).__init__()
|
|
417
|
+
print(label)
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
class JRootPane(JComponent):
|
|
421
|
+
"""A lightweight container used behind the scenes by JFrame,
|
|
422
|
+
JDialog, JWindow, JApplet, and JInternalFrame.
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
def __init__(self):
|
|
426
|
+
# type: () -> None
|
|
427
|
+
super(JRootPane, self).__init__()
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
class JTextField(JTextComponent):
|
|
431
|
+
"""JTextField is a lightweight component that allows the editing of
|
|
432
|
+
a single line of text.
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
def __init__(self, *args):
|
|
436
|
+
# type: (*Any) -> None
|
|
437
|
+
super(JTextField, self).__init__()
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
class JPasswordField(JTextField):
|
|
441
|
+
def __init__(self, *args):
|
|
442
|
+
# type: (*Any) -> None
|
|
443
|
+
super(JPasswordField, self).__init__(*args)
|
|
444
|
+
|
|
445
|
+
def copy(self):
|
|
446
|
+
# type: () -> None
|
|
447
|
+
pass
|
|
448
|
+
|
|
449
|
+
def cut(self):
|
|
450
|
+
# type: () -> None
|
|
451
|
+
pass
|
|
452
|
+
|
|
453
|
+
def echoCharIsSet(self):
|
|
454
|
+
# type: () -> bool
|
|
455
|
+
return True
|
|
456
|
+
|
|
457
|
+
def getEchoChar(self):
|
|
458
|
+
# type: () -> Union[str, unicode]
|
|
459
|
+
pass
|
|
460
|
+
|
|
461
|
+
def getPassword(self):
|
|
462
|
+
# type: () -> Any
|
|
463
|
+
return array.array("c", "password")
|
|
464
|
+
|
|
465
|
+
def getText(self, *args):
|
|
466
|
+
# type: (*int) -> unicode
|
|
467
|
+
warnings.warn(
|
|
468
|
+
"As of Java 2 platform v1.2, replaced by getPassword.",
|
|
469
|
+
DeprecationWarning,
|
|
470
|
+
)
|
|
471
|
+
return unicode("password")
|
|
472
|
+
|
|
473
|
+
def getUIClassID(self):
|
|
474
|
+
# type: () -> Union[str, unicode]
|
|
475
|
+
pass
|
|
476
|
+
|
|
477
|
+
def setEchoChar(self, c):
|
|
478
|
+
# type: (Union[str, unicode]) -> None
|
|
479
|
+
pass
|
|
480
|
+
|
|
481
|
+
def updateUI(self):
|
|
482
|
+
# type: () -> None
|
|
483
|
+
pass
|