Programação GUI com jRuby

973 views
889 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
973
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Programação GUI com jRuby

  1. 1. Programação GUI com jRuby porque não só de web vive o RubyWednesday, June 8, 2011
  2. 2. SubDB Match de legendas baseado em algoritmo de hash SubDB APIWednesday, June 8, 2011
  3. 3. The jRuby!Wednesday, June 8, 2011
  4. 4. Java APIWednesday, June 8, 2011
  5. 5. Conversão de Java Beans x.getSomething() -> x.something x.setSomething(3) -> x.something = 3 x.methodName() -> x.method_nameWednesday, June 8, 2011
  6. 6. Conversão de TiposWednesday, June 8, 2011
  7. 7. Acessando classes Java import javax.swing.JButton include_package “javax.swing”Wednesday, June 8, 2011
  8. 8. Implementando Interfaces class SomeJRubyObject include java.lang.Runnable include java.lang.Comparable endWednesday, June 8, 2011
  9. 9. Closure ConversionWednesday, June 8, 2011
  10. 10. Closure Conversion JavaWednesday, June 8, 2011
  11. 11. Closure Conversion Java button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Execute when button is pressed System.out.println("You clicked the button"); } });Wednesday, June 8, 2011
  12. 12. Closure Conversion Java button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Execute when button is pressed System.out.println("You clicked the button"); } }); jRubyWednesday, June 8, 2011
  13. 13. Closure Conversion Java button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Execute when button is pressed System.out.println("You clicked the button"); } }); jRuby button.add_action_listener do |e| puts "You clicked the button" endWednesday, June 8, 2011
  14. 14. SubDB SyncWednesday, June 8, 2011
  15. 15. UI DesignWednesday, June 8, 2011
  16. 16. Documentação!Wednesday, June 8, 2011
  17. 17. Documentação!Wednesday, June 8, 2011
  18. 18. OS Drag & Drop FileDrop!Wednesday, June 8, 2011
  19. 19. Deploy Standalone Jar Mac Application DMG para Mac Windows exe Geração automática atravéz de RakeWednesday, June 8, 2011
  20. 20. One More Thing...Wednesday, June 8, 2011
  21. 21. One More Thing... Não esqueça a flag “b” ao tratar arquivos!Wednesday, June 8, 2011
  22. 22. Links jRuby - 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-syncWednesday, June 8, 2011
  23. 23. Valeu! Wilker Lúcio <wilkerlucio@gmail.com>Wednesday, June 8, 2011

×