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/ActionListener.swift at master · SwiftJava/java_awt

Expand file tree

/

ActionListener.swift

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
90 lines (56 loc) · 3.46 KB
/

ActionListener.swift

Copy path

File metadata and controls

90 lines (56 loc) · 3.46 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
import java_swift
import java_util
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.awt.event.ActionListener ///
public protocol ActionListener: java_util.EventListener {
/// public abstract void java.awt.event.ActionListener.actionPerformed(java.awt.event.ActionEvent)
func actionPerformed( e: ActionEvent? )
}
open class ActionListenerForward: java_util.EventListenerForward, ActionListener {
private static var ActionListenerJNIClass: jclass?
/// public abstract void java.awt.event.ActionListener.actionPerformed(java.awt.event.ActionEvent)
private static var actionPerformed_MethodID_2: jmethodID?
open func actionPerformed( e: ActionEvent? ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: e, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "actionPerformed", methodSig: "(Ljava/awt/event/ActionEvent;)V", methodCache: &ActionListenerForward.actionPerformed_MethodID_2, args: &__args, locals: &__locals )
}
open func actionPerformed( _ _e: ActionEvent? ) {
actionPerformed( e: _e )
}
}
private typealias ActionListener_actionPerformed_0_type = @convention(c) ( _: UnsafeMutablePointer<JNIEnv?>, _: jobject?, _: jlong, _: jobject? ) -> ()
private func ActionListener_actionPerformed_0( _ __env: UnsafeMutablePointer<JNIEnv?>, _ __this: jobject?, _ __swiftObject: jlong, _ e: jobject? ) -> () {
ActionListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).actionPerformed( e: e != nil ? ActionEvent( javaObject: e ) : nil )
}
fileprivate class ActionListenerLocal_: JNILocalProxy<ActionListener, Any> {
fileprivate static let _proxyClass: jclass = {
var natives = [JNINativeMethod]()
let ActionListener_actionPerformed_0_thunk: ActionListener_actionPerformed_0_type = ActionListener_actionPerformed_0
natives.append( JNINativeMethod( name: strdup("__actionPerformed"), signature: strdup("(JLjava/awt/event/ActionEvent;)V"), fnPtr: unsafeBitCast( ActionListener_actionPerformed_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
let clazz = JNI.FindClass( proxyClassName() )
natives.withUnsafeBufferPointer {
nativesPtr in
if JNI.api.RegisterNatives( JNI.env, clazz, nativesPtr.baseAddress, jint(nativesPtr.count) ) != jint(JNI_OK) {
JNI.report( "Unable to register java natives" )
}
}
defer { JNI.DeleteLocalRef( clazz ) }
return JNI.api.NewGlobalRef( JNI.env, clazz )!
}()
override open class func proxyClassName() -> String { return "org/swiftjava/java_awt/ActionListenerProxy" }
override open class func proxyClass() -> jclass? { return _proxyClass }
}
extension ActionListener {
public func localJavaObject( _ locals: UnsafeMutablePointer<[jobject]> ) -> jobject? {
return ActionListenerLocal_( owned: self, proto: self ).localJavaObject( locals )
}
}
open class ActionListenerBase: ActionListener {
public init() {}
/// public abstract void java.awt.event.ActionListener.actionPerformed(java.awt.event.ActionEvent)
open func actionPerformed( e: ActionEvent? ) /**/ {
}
}
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.