Sha256: 8d7c92e8a2f36b55cc8362476ec1a7cc7621cd96de38ab1aec3062f8ff42ca2f
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
include Java module Swing # Class that implements ActionListener interface around a given block class ActionListener java_implements java.awt.event.ActionListener def initialize &block @action_block = block end java_signature 'public void actionPerformed(ActionEvent event)' # from ActionListener interface: Invoked when an action event occurs. def actionPerformed event @action_block.call event end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swing-0.0.5 | lib/swing/action_listener.rb |
swing-0.0.3 | lib/swing/action_listener.rb |