programação gui com jruby
TRANSCRIPT
Programação GUI com jRuby
porque não só de web vive o Ruby
Wednesday, June 8, 2011
SubDB
Match de legendas baseado em algoritmo de hash
SubDB API
Wednesday, June 8, 2011
The jRuby!
Wednesday, June 8, 2011
Java APIWednesday, June 8, 2011
Conversão de Java Beans
x.getSomething() -> x.something
x.setSomething(3) -> x.something = 3
x.methodName() -> x.method_name
Wednesday, June 8, 2011
Conversão de Tipos
Wednesday, June 8, 2011
Acessando classes Java
import javax.swing.JButton
include_package “javax.swing”
Wednesday, June 8, 2011
Implementando Interfaces
class SomeJRubyObject include java.lang.Runnable include java.lang.Comparableend
Wednesday, June 8, 2011
Closure Conversion
Wednesday, June 8, 2011
Closure ConversionJava
Wednesday, June 8, 2011
Closure Conversion
button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Execute when button is pressed System.out.println("You clicked the button"); }});
Java
Wednesday, June 8, 2011
Closure Conversion
button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Execute when button is pressed System.out.println("You clicked the button"); }});
Java
jRuby
Wednesday, June 8, 2011
Closure Conversion
button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Execute when button is pressed System.out.println("You clicked the button"); }});
button.add_action_listener do |e| puts "You clicked the button"end
Java
jRuby
Wednesday, June 8, 2011
SubDB Sync
Wednesday, June 8, 2011
UI Design
Wednesday, June 8, 2011
Documentação!
Wednesday, June 8, 2011
Documentação!
Wednesday, June 8, 2011
OS Drag & Drop
FileDrop!Wednesday, June 8, 2011
Deploy
Standalone Jar
Mac Application
DMG para Mac
Windows exe
Geração automática atravéz de Rake
Wednesday, June 8, 2011
One More Thing...
Wednesday, June 8, 2011
Não esqueça a flag “b” ao tratar
arquivos!
One More Thing...
Wednesday, June 8, 2011
LinksjRuby - http://www.jruby.org
Scripting jRuby - https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby
SubDB: http://www.thesubdb.com
SubDB Sync: https://github.com/wilkerlucio/subdb-sync
Wednesday, June 8, 2011