Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Object REXX
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Java === [[File:BSF4ooREXX awt.png|alt=Java Swing via BSF4ooRexx|thumb|300x300px|Multi-platform GUIs via BSF4ooRexx]] Using the C++ APIs, BSF4ooRexx was developed as a bidirectional Java bridge based on the [[Bean Scripting Framework]]. This bridge enables ooRexx to communicate with Java objects and Java to interact with Rexx applications.<ref name=":10">{{Cite web |title=BSF4ooRexx |url=https://sourceforge.net/projects/bsf4oorexx/ |access-date=2024-11-10 |website=sourceforge.net|date=12 August 2024 }}</ref><ref name=":11">{{Cite news |last=Flatscher |first=Rony G. |date=2009 |title=The 2009 Edition of BSF4Rexx Part I |url=https://www.rexxla.org/presentations/2009/2009_orx20_BSF4Rexx_01.pdf |work=20th Rexx Language Symposium |publisher=RexxLA}}</ref> The bridge is realized by requiring the ooRexx package <code>BSF.CLS</code>, which defines public routines, classes and the environment symbol <code>.BSF4REXX</code>.<ref name=":11" /> Examples are provided for the use of Java classes in connection with [[Abstract Window Toolkit|AWT]], [[Swing (Java)|Swing]], [[JavaFX]], [[Java Database Connectivity|JDBC]], [[Java 2D]] and some others.<ref name=":10" /><syntaxhighlight lang="oorexx" style="background-color: #ffffff; !important" line="1">/* create Java object */ frame=.bsf~new("javax.swing.JFrame", "Hello, my beloved world - from ooRexx!") frame~setSize(410,20) /* set width and height */ frame~visible=.true /* make JFrame visible */ call SysSleep 10 /* sleep for ten seconds */ ::requires "BSF.CLS" /* get Java support */</syntaxhighlight> Based on BSF4ooRexx, interaction with [[Universal Network Objects]] (UNO), as used in [[OpenOffice.org|OpenOffice]] and [[LibreOffice]], is supported via the <code>UNO.CLS</code> package.<ref>{{Cite book |last=Waglechner |first=Christoph |url=https://wi.wu.ac.at/rgf/diplomarbeiten/BakkStuff/2009/20090621-Waglechner-Pitonyak-OOo/Waglechner_PitonyakNutshells.pdf |title=OpenOffice.org Automation Using ooRexx Scripting Language by means of Selected Nutshell Examples by Andrew Pitonyak |date=2009}}</ref> In addition, the <code>CLR.CLS</code> package together with [https://github.com/jni4net/jni4net Jini4Net] enables the use of the [[.NET Framework|.NET framework]].<ref>{{Cite book |last=Baginski |first=Adrian |url=https://wi.wu.ac.at/rgf/diplomarbeiten/BakkStuooR2016/20160723_Baginski-Adrian-ooRexx-Net-Cookbook.pdf |title=A .NET Cookbook Using ooRexx.NET |date=2016}}</ref> Communication with processes via the [[D-Bus]] [[middleware]] under Linux is possible using the <code>DBUS.CLS</code> package.<ref>{{Cite book |last=Lagler |first=Richard |url=https://wi.wu.ac.at/rgf/diplomarbeiten/Seminararbeiten/2015/20150220-Lagler-DBus.pdf |title=D-Bus Language Binding for ooRexx: An Introduction on Nutshell Examples |date=2015}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)