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.
Files changed (46) hide show
  1. java/__init__.py +0 -0
  2. java/awt/__init__.py +265 -0
  3. java/awt/event/__init__.py +184 -0
  4. java/awt/geom/__init__.py +116 -0
  5. java/awt/image/__init__.py +14 -0
  6. java/awt/print/__init__.py +93 -0
  7. java/beans/__init__.py +38 -0
  8. java/io/__init__.py +442 -0
  9. java/lang/__init__.py +868 -0
  10. java/lang/reflect/__init__.py +9 -0
  11. java/math/__init__.py +93 -0
  12. java/net/__init__.py +504 -0
  13. java/net/http/__init__.py +15 -0
  14. java/nio/__init__.py +667 -0
  15. java/nio/channels/__init__.py +352 -0
  16. java/nio/charset/__init__.py +146 -0
  17. java/nio/file/__init__.py +728 -0
  18. java/nio/file/attribute/__init__.py +141 -0
  19. java/org/__init__.py +0 -0
  20. java/org/jdesktop/__init__.py +0 -0
  21. java/org/jdesktop/core/__init__.py +0 -0
  22. java/org/jdesktop/core/animation/__init__.py +0 -0
  23. java/org/jdesktop/core/animation/timing/__init__.py +17 -0
  24. java/security/__init__.py +27 -0
  25. java/text/__init__.py +543 -0
  26. java/time/__init__.py +575 -0
  27. java/time/chrono/__init__.py +319 -0
  28. java/time/format/__init__.py +72 -0
  29. java/time/temporal/__init__.py +353 -0
  30. java/util/__init__.py +1479 -0
  31. java/util/concurrent/__init__.py +147 -0
  32. java/util/function/__init__.py +131 -0
  33. java/util/regex/__init__.py +197 -0
  34. java/util/stream/__init__.py +128 -0
  35. java_api-17.25.0.dist-info/LICENSE +21 -0
  36. java_api-17.25.0.dist-info/METADATA +150 -0
  37. java_api-17.25.0.dist-info/RECORD +46 -0
  38. java_api-17.25.0.dist-info/WHEEL +5 -0
  39. java_api-17.25.0.dist-info/top_level.txt +2 -0
  40. javax/__init__.py +0 -0
  41. javax/security/__init__.py +0 -0
  42. javax/security/auth/__init__.py +14 -0
  43. javax/swing/__init__.py +483 -0
  44. javax/swing/event/__init__.py +43 -0
  45. javax/swing/plaf/__init__.py +28 -0
  46. 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