1 / 13

BlueJScript @ the First BlueJ Day Houston, 2006

BlueJScript @ the First BlueJ Day Houston, 2006. Matthew C. Jadud University of Kent. Outline. What is it? Demo: Purple Cow “Hello World” Wherefore BlueJScript? Demo: Trails. What is BlueJScript?. It’s just Javascript… With privileges! What can it do? Full access to extensions API

haddock
Télécharger la présentation

BlueJScript @ the First BlueJ Day Houston, 2006

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BlueJScript @ theFirst BlueJ DayHouston, 2006 Matthew C. Jadud University of Kent

  2. Outline • What is it? • Demo: Purple Cow • “Hello World” • Wherefore BlueJScript? • Demo: Trails First BlueJ Day, Houston, Texas, 1st March 2006

  3. What is BlueJScript? • It’s just Javascript… • With privileges! • What can it do? • Full access to extensions API • Full access to standard Java libraries (java.*, javax.*) • BlueJ überscripting environment First BlueJ Day, Houston, Texas, 1st March 2006

  4. Demo: Purple Cow First BlueJ Day, Houston, Texas, 1st March 2006

  5. “Hello World” • In the project folder: • extensions/bluejscript.jar • profile.js • What do these do? • Without the BlueJScript extension, there is no BlueJScript • The profile.js is where the magic happens First BlueJ Day, Houston, Texas, 1st March 2006

  6. A simple profile.js • A “hello, world” if you will • Shows the BlueJScript console • Prints something to it • This is the BlueJ project I’ve called “SimpleProfile” First BlueJ Day, Houston, Texas, 1st March 2006

  7. A less simple profile.js • You’ll probably find yourself listening to BlueJ events a lot • This BlueJScript application: • Listens for any events from BlueJ • Prints out their name • This is the BlueJ project I’ve called “WatchingEvents” First BlueJ Day, Houston, Texas, 1st March 2006

  8. What you get • You have the full extensions API (effectively bluej.*) • BlueJScript provided support classes (the jsConsole, htmlPane, event handling…) • All of java.*, javax.* First BlueJ Day, Houston, Texas, 1st March 2006

  9. Start brainstorming… • You have full access to all of the Java class libraries from a dynamic scripting language! • In NetDemo, I grab data from external sources • In SwingDemo, I illustrate what might be a BlueJ bug, or BlueJScript worst-practice… First BlueJ Day, Houston, Texas, 1st March 2006

  10. Wherefore? • Low cost of entry • Neat things can be done simply as BlueJScript extensions • Full access to BlueJ • We can inspect classes and objects • Create objects, invoke methods • Windows, dialogs, etc… First BlueJ Day, Houston, Texas, 1st March 2006

  11. Take over world, contd. • Functional, dynamic language for driving BlueJ • Treat BlueJ, Java libs as a “rich API” for creating interactive instructional applications • Easy, lightweight deployment option for interacting with student code First BlueJ Day, Houston, Texas, 1st March 2006

  12. Demo: Trails • Provide scaffolding for adult learners tackling Java in a condensed course of study • Tackle syntax and semantics at a finer grain than Objects First • Represents a starting point for a class of applications, not an endpoint First BlueJ Day, Houston, Texas, 1st March 2006

  13. More questions? • bluej.org (Documentation) • bluej-discuss (mailing list) • mcj4@kent.ac.uk • Consider the list first… First BlueJ Day, Houston, Texas, 1st March 2006

More Related