GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java_awt/Sources/DesktopPeer.swift at master · SwiftJava/java_awt

Expand file tree

/

DesktopPeer.swift

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
153 lines (107 loc) · 7.08 KB
/

DesktopPeer.swift

Copy path

File metadata and controls

153 lines (107 loc) · 7.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.awt.peer.DesktopPeer ///
public protocol DesktopPeer: JavaProtocol {
/// public abstract void java.awt.peer.DesktopPeer.browse(java.net.URI) throws java.io.IOException
func browse( uri: /* class java.net.URI */ UnavailableObject? ) throws /* java.io.IOException */
/// public abstract void java.awt.peer.DesktopPeer.edit(java.io.File) throws java.io.IOException
func edit( file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */
/// public abstract boolean java.awt.peer.DesktopPeer.isSupported(java.awt.Desktop$Action)
func isSupported( action: Desktop_Action? ) -> Bool
/// public abstract void java.awt.peer.DesktopPeer.mail(java.net.URI) throws java.io.IOException
func mail( mailtoURL: /* class java.net.URI */ UnavailableObject? ) throws /* java.io.IOException */
/// public abstract void java.awt.peer.DesktopPeer.open(java.io.File) throws java.io.IOException
func open( file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */
/// public abstract void java.awt.peer.DesktopPeer.print(java.io.File) throws java.io.IOException
func print( file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */
}
open class DesktopPeerForward: JNIObjectForward, DesktopPeer {
private static var DesktopPeerJNIClass: jclass?
/// public abstract void java.awt.peer.DesktopPeer.browse(java.net.URI) throws java.io.IOException
private static var browse_MethodID_7: jmethodID?
open func browse( uri: /* class java.net.URI */ UnavailableObject? ) throws /* java.io.IOException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: uri, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "browse", methodSig: "(Ljava/net/URI;)V", methodCache: &DesktopPeerForward.browse_MethodID_7, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.io.IOException */ UnavailableObject( javaObject: throwable )
}
}
open func browse( _ _uri: /* class java.net.URI */ UnavailableObject? ) throws /* java.io.IOException */ {
try browse( uri: _uri )
}
/// public abstract void java.awt.peer.DesktopPeer.edit(java.io.File) throws java.io.IOException
private static var edit_MethodID_8: jmethodID?
open func edit( file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: file, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "edit", methodSig: "(Ljava/io/File;)V", methodCache: &DesktopPeerForward.edit_MethodID_8, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.io.IOException */ UnavailableObject( javaObject: throwable )
}
}
open func edit( _ _file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */ {
try edit( file: _file )
}
/// public abstract boolean java.awt.peer.DesktopPeer.isSupported(java.awt.Desktop$Action)
private static var isSupported_MethodID_9: jmethodID?
open func isSupported( action: Desktop_Action? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: action, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isSupported", methodSig: "(Ljava/awt/Desktop$Action;)Z", methodCache: &DesktopPeerForward.isSupported_MethodID_9, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
open func isSupported( _ _action: Desktop_Action? ) -> Bool {
return isSupported( action: _action )
}
/// public abstract void java.awt.peer.DesktopPeer.mail(java.net.URI) throws java.io.IOException
private static var mail_MethodID_10: jmethodID?
open func mail( mailtoURL: /* class java.net.URI */ UnavailableObject? ) throws /* java.io.IOException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: mailtoURL, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "mail", methodSig: "(Ljava/net/URI;)V", methodCache: &DesktopPeerForward.mail_MethodID_10, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.io.IOException */ UnavailableObject( javaObject: throwable )
}
}
open func mail( _ _mailtoURL: /* class java.net.URI */ UnavailableObject? ) throws /* java.io.IOException */ {
try mail( mailtoURL: _mailtoURL )
}
/// public abstract void java.awt.peer.DesktopPeer.open(java.io.File) throws java.io.IOException
private static var open_MethodID_11: jmethodID?
open func open( file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: file, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "open", methodSig: "(Ljava/io/File;)V", methodCache: &DesktopPeerForward.open_MethodID_11, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.io.IOException */ UnavailableObject( javaObject: throwable )
}
}
open func open( _ _file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */ {
try open( file: _file )
}
/// public abstract void java.awt.peer.DesktopPeer.print(java.io.File) throws java.io.IOException
private static var print_MethodID_12: jmethodID?
open func print( file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: file, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "print", methodSig: "(Ljava/io/File;)V", methodCache: &DesktopPeerForward.print_MethodID_12, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.io.IOException */ UnavailableObject( javaObject: throwable )
}
}
open func print( _ _file: /* class java.io.File */ UnavailableObject? ) throws /* java.io.IOException */ {
try print( file: _file )
}
}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.