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,43 @@
|
|
|
1
|
+
__all__ = ["AncestorEvent", "AncestorListener"]
|
|
2
|
+
|
|
3
|
+
from java.awt import AWTEvent, Component, Container
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AncestorEvent(AWTEvent):
|
|
7
|
+
ANCESTOR_ADDED = None # type: int
|
|
8
|
+
ANCESTOR_MOVED = None # type: int
|
|
9
|
+
ANCESTOR_REMOVED = None # type: int
|
|
10
|
+
|
|
11
|
+
def __init__(self, source, id, ancestor, ancestorParent):
|
|
12
|
+
# type: (Component, int, Container, Container) -> None
|
|
13
|
+
self._ancestor = ancestor
|
|
14
|
+
self._ancestorParent = ancestorParent
|
|
15
|
+
self._id = id
|
|
16
|
+
self._source = source
|
|
17
|
+
super(AncestorEvent, self).__init__(source, id)
|
|
18
|
+
|
|
19
|
+
def getAncestor(self):
|
|
20
|
+
# type: () -> Container
|
|
21
|
+
return self._ancestor
|
|
22
|
+
|
|
23
|
+
def getAncestorParent(self):
|
|
24
|
+
# type: () -> Container
|
|
25
|
+
return self._ancestorParent
|
|
26
|
+
|
|
27
|
+
def getComponent(self):
|
|
28
|
+
# type: () -> Component
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class AncestorListener(object):
|
|
33
|
+
def ancestorAdded(self, event):
|
|
34
|
+
# type: (AncestorEvent) -> None
|
|
35
|
+
raise NotImplementedError
|
|
36
|
+
|
|
37
|
+
def ancestorMoved(self, event):
|
|
38
|
+
# type: (AncestorEvent) -> None
|
|
39
|
+
raise NotImplementedError
|
|
40
|
+
|
|
41
|
+
def ancestorRemoved(self, event):
|
|
42
|
+
# type: (AncestorEvent) -> None
|
|
43
|
+
raise NotImplementedError
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
__all__ = ["ComponentUI", "DesktopPaneUI"]
|
|
2
|
+
|
|
3
|
+
from java.awt import Component, Graphics
|
|
4
|
+
from java.lang import Object
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ComponentUI(Object):
|
|
8
|
+
def __init__(self):
|
|
9
|
+
# type: () -> None
|
|
10
|
+
super(ComponentUI, self).__init__()
|
|
11
|
+
|
|
12
|
+
def contains(self, c, x, y):
|
|
13
|
+
# type: (Component, int, int) -> bool
|
|
14
|
+
return True
|
|
15
|
+
|
|
16
|
+
def paint(self, g, c):
|
|
17
|
+
# type: (Graphics, Component) -> None
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
def update(self, g, c):
|
|
21
|
+
# type: (Graphics, Component) -> None
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class DesktopPaneUI(ComponentUI):
|
|
26
|
+
def __init__(self):
|
|
27
|
+
# type: () -> None
|
|
28
|
+
super(DesktopPaneUI, self).__init__()
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
__all__ = ["JTextComponent"]
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
|
|
5
|
+
from java.awt import Container
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class JTextComponent(Container):
|
|
9
|
+
"""JTextComponent is the base class for swing text components."""
|
|
10
|
+
|
|
11
|
+
_text = "Text" # type: Union[str, unicode]
|
|
12
|
+
|
|
13
|
+
def getText(self, *args):
|
|
14
|
+
# type: (*int) -> Union[str, unicode]
|
|
15
|
+
return self._text
|
|
16
|
+
|
|
17
|
+
def setText(self, t):
|
|
18
|
+
# type: (Union[str, unicode]) -> None
|
|
19
|
+
self._text = t
|