|
@@ -33,11 +33,12 @@ The following Pascal features are supported by pas2jni:
|
|
|
- pointer type;
|
|
|
- string types;
|
|
|
- all numeric types;
|
|
|
-- method pointer.
|
|
|
+- method pointer;
|
|
|
+- setters/getters for array elements.
|
|
|
|
|
|
USUPPORTED features:
|
|
|
-- array;
|
|
|
-- procedure pointer.
|
|
|
+- Full support for arrays;
|
|
|
+- procedure pointer (Not possible to implement. To workaround this limitation create a procedure handler in your Pascal code and call a method pointer declared in some global Pascal class. Then you can assign this method pointer from a Java code).
|
|
|
|
|
|
Shared libraries, generated by pas2jni were tested with Java on Windows and Android. It should work on other systems as well.
|
|
|
|
|
@@ -84,9 +85,7 @@ In a Java code you get the following TMyClass instance:
|
|
|
|
|
|
TMyClass myclass = TMyClass.Create();
|
|
|
|
|
|
-It is possible set a Java handler in 2 ways:
|
|
|
-
|
|
|
-1) Place the handler inline.
|
|
|
+Then you add the event handler in a usual Java way:
|
|
|
|
|
|
...
|
|
|
myclass.setOnChange(
|
|
@@ -98,21 +97,6 @@ It is possible set a Java handler in 2 ways:
|
|
|
);
|
|
|
...
|
|
|
|
|
|
-2) Define the handler as a method in a class.
|
|
|
-
|
|
|
-public class MyJavaClass {
|
|
|
- private void DoOnChange(TObject Sender) {
|
|
|
- // The handler code
|
|
|
- }
|
|
|
-
|
|
|
- public void main() {
|
|
|
- ...
|
|
|
- // Set the handler to the method with the "DoOnChange" name in the current class (this).
|
|
|
- myclass.setOnChange( new TNotifyEvent(this, "DoOnChange") );
|
|
|
- ...
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
COMMAND LINE OPTIONS
|
|
|
|
|
|
Usage: pas2jni [options] <unit> [<unit2> <unit3> ...]
|