profligacy 0.4-jruby → 0.4.1-jruby
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +3 -3
- data/examples/utu_main.rb +113 -0
- data/lib/profligacy/LELParser$LELEventListener.class +0 -0
- data/lib/profligacy/LELParser.class +0 -0
- data/lib/profligacy/lel.rb +17 -18
- data/lib/profligacy/parser.jar +0 -0
- data/lib/profligacy/swing-layout.jar +0 -0
- metadata +4 -61
- data/doc/rdoc/classes/Proc.html +0 -152
- data/doc/rdoc/classes/Proc.src/M000001.html +0 -18
- data/doc/rdoc/classes/Proc.src/M000002.html +0 -18
- data/doc/rdoc/classes/Profligacy.html +0 -117
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.html +0 -296
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000014.html +0 -28
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000015.html +0 -18
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000016.html +0 -19
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000017.html +0 -23
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000018.html +0 -27
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000019.html +0 -19
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000020.html +0 -23
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000021.html +0 -18
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000022.html +0 -18
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000023.html +0 -18
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000024.html +0 -21
- data/doc/rdoc/classes/Profligacy/LELNameScanner.html +0 -189
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000025.html +0 -18
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000026.html +0 -18
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000027.html +0 -18
- data/doc/rdoc/classes/Profligacy/Swing.html +0 -118
- data/doc/rdoc/classes/Profligacy/Swing/Build.html +0 -268
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html +0 -20
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html +0 -18
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html +0 -43
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html +0 -18
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html +0 -22
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000010.html +0 -21
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000011.html +0 -24
- data/doc/rdoc/classes/Profligacy/Swing/LEL.html +0 -169
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000012.html +0 -33
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000013.html +0 -38
- data/doc/rdoc/classes/Profligacy/Swing/Listeners.html +0 -123
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.html +0 -161
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000003.html +0 -18
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000004.html +0 -18
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/COPYING.html +0 -168
- data/doc/rdoc/files/LICENSE.html +0 -168
- data/doc/rdoc/files/README.html +0 -127
- data/doc/rdoc/files/lib/profligacy/lel_rb.html +0 -108
- data/doc/rdoc/files/lib/profligacy/swing_rb.html +0 -108
- data/doc/rdoc/fr_class_index.html +0 -35
- data/doc/rdoc/fr_file_index.html +0 -31
- data/doc/rdoc/fr_method_index.html +0 -53
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
data/Rakefile
CHANGED
@@ -8,14 +8,14 @@ require 'fileutils'
|
|
8
8
|
include FileUtils
|
9
9
|
|
10
10
|
setup_tests
|
11
|
-
setup_clean ["pkg", "lib/*.bundle", "lib/profligacy/*.class", "*.gem", ".config", "lib/profligacy
|
11
|
+
setup_clean ["pkg", "lib/*.bundle", "lib/profligacy/*.class", "*.gem", ".config", "lib/profligacy/parser.jar"]
|
12
12
|
|
13
13
|
setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
|
14
14
|
|
15
15
|
desc "Does a full compile, test run"
|
16
16
|
task :default => [:ragel, :test]
|
17
17
|
|
18
|
-
version="0.4"
|
18
|
+
version="0.4.1"
|
19
19
|
name="profligacy"
|
20
20
|
|
21
21
|
setup_gem(name, version) do |spec|
|
@@ -32,7 +32,7 @@ end
|
|
32
32
|
|
33
33
|
task :ragel do
|
34
34
|
sh %{/usr/local/bin/ragel -J lib/profligacy/LELParser.rl | /usr/local/bin/rlgen-java -o lib/profligacy/LELParser.java}
|
35
|
-
sh %{javac lib/profligacy/LELParser.java}
|
35
|
+
sh %{javac -target 1.5 lib/profligacy/LELParser.java}
|
36
36
|
Dir.chdir("lib") do
|
37
37
|
sh %{jar -cf profligacy/parser.jar profligacy/*.class}
|
38
38
|
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Prototype for a GUI for a chat client. Just tries out different
|
2
|
+
# layouts and ideas.
|
3
|
+
|
4
|
+
require 'rubygems'
|
5
|
+
require 'profligacy/swing'
|
6
|
+
require 'profligacy/lel'
|
7
|
+
|
8
|
+
|
9
|
+
class ChatInterface
|
10
|
+
include_package 'javax.swing'
|
11
|
+
include_package 'java.awt'
|
12
|
+
|
13
|
+
include Profligacy
|
14
|
+
|
15
|
+
def initialize
|
16
|
+
@styles = {
|
17
|
+
:left => "[*people|(400,300)*chat][buttons|message]",
|
18
|
+
:right => "[(400,300)*chat|*people][message|buttons]",
|
19
|
+
:hidden => "[(400,300)*chat][message]"
|
20
|
+
}
|
21
|
+
|
22
|
+
@ui = Swing::Build.new JFrame, :tabs do |c,i|
|
23
|
+
c.tabs = JTabbedPane.new
|
24
|
+
|
25
|
+
[:right, :left, :hidden].each do |s|
|
26
|
+
c.tabs.add("Tab #{s}", create_chat(s))
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
@frame = @ui.build("Utu Chat Prototype") do |f|
|
31
|
+
f.jmenu_bar = create_menubar
|
32
|
+
f.add(create_toolbar, BorderLayout::NORTH)
|
33
|
+
end
|
34
|
+
|
35
|
+
@frame.resizable = false
|
36
|
+
end
|
37
|
+
|
38
|
+
def create_chat(style=:right)
|
39
|
+
chat = Swing::LEL.new(JPanel,@styles[style]) do |c,i|
|
40
|
+
people = JList.new((["Zed","Frank","Joe","Alex"]*20).to_java)
|
41
|
+
c.people = JScrollPane.new(people) if style != :hidden
|
42
|
+
c.message = JTextField.new
|
43
|
+
|
44
|
+
chat = JTextArea.new
|
45
|
+
chat.editable = false
|
46
|
+
chat.text = "Mary had a little lamb that you should seriously check out 'cause it's sick\n" * 300
|
47
|
+
|
48
|
+
c.chat = JScrollPane.new(chat)
|
49
|
+
c.buttons = create_buttons if style != :hidden
|
50
|
+
end
|
51
|
+
|
52
|
+
chat.build
|
53
|
+
end
|
54
|
+
|
55
|
+
def create_buttons
|
56
|
+
buttons = Swing::LEL.new(JPanel, "[info|hate|block]") do |c,i|
|
57
|
+
c.info = JButton.new "Info"
|
58
|
+
c.hate = JButton.new "Hate"
|
59
|
+
c.block = JButton.new "Block"
|
60
|
+
end
|
61
|
+
|
62
|
+
buttons.build(:auto_create_container_gaps => false)
|
63
|
+
end
|
64
|
+
|
65
|
+
def create_menubar
|
66
|
+
file = Swing::Build.new JMenu, :connect, :rooms, :people, :quit do |c,i|
|
67
|
+
c.connect = JMenuItem.new "Connect..."
|
68
|
+
c.rooms = JMenuItem.new "Rooms..."
|
69
|
+
c.people = JMenuItem.new "People..."
|
70
|
+
c.quit = JMenuItem.new "Quit"
|
71
|
+
end.build("File")
|
72
|
+
|
73
|
+
room = Swing::Build.new JMenu, :who, :search, :join, :sep1, :leave do |c,i|
|
74
|
+
c.who = JMenuItem.new "Who..."
|
75
|
+
c.search = JMenuItem.new "Search..."
|
76
|
+
c.join = JMenuItem.new "Join..."
|
77
|
+
c.sep1 = JSeparator.new
|
78
|
+
c.leave = JMenuItem.new "Leave"
|
79
|
+
end.build("Room")
|
80
|
+
|
81
|
+
help = Swing::Build.new JMenu, :about, :manual, :site do |c,i|
|
82
|
+
c.about = JMenuItem.new "About..."
|
83
|
+
c.manual = JMenuItem.new "Manual..."
|
84
|
+
c.site = JMenuItem.new "Site"
|
85
|
+
end.build("Help")
|
86
|
+
|
87
|
+
@menu_bar = Swing::Build.new JMenuBar, :menus do |c,i|
|
88
|
+
c.menus = [file, room, help]
|
89
|
+
end
|
90
|
+
|
91
|
+
@menu_bar.build
|
92
|
+
end
|
93
|
+
|
94
|
+
def create_toolbar
|
95
|
+
@toolbar = Swing::Build.new(
|
96
|
+
JToolBar,
|
97
|
+
:join, :leave, :hide_show, :who, :info, :sep, :block, :hate
|
98
|
+
) do |c,i|
|
99
|
+
c.join = JButton.new "Join"
|
100
|
+
c.hide_show = JToggleButton.new "Hide"
|
101
|
+
c.who = JButton.new "Who"
|
102
|
+
c.info = JButton.new "Info"
|
103
|
+
c.block = JButton.new "Block"
|
104
|
+
c.hate = JButton.new "Hate"
|
105
|
+
c.leave = JButton.new "Leave"
|
106
|
+
c.sep = JSeparator.new
|
107
|
+
end
|
108
|
+
|
109
|
+
@toolbar.build
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
ChatInterface.new
|
Binary file
|
Binary file
|
data/lib/profligacy/lel.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'profligacy/parser'
|
2
|
+
require 'profligacy/swing-layout'
|
2
3
|
|
3
4
|
module Profligacy
|
4
5
|
include_package 'profligacy'
|
@@ -23,8 +24,7 @@ module Profligacy
|
|
23
24
|
class LELGroupLayout
|
24
25
|
include Profligacy::LELParser::LELEventListener
|
25
26
|
|
26
|
-
|
27
|
-
include_class 'javax.swing.JPanel'
|
27
|
+
include_package 'org.jdesktop.layout'
|
28
28
|
include_class 'java.lang.Short'
|
29
29
|
|
30
30
|
def initialize(layout, components)
|
@@ -47,13 +47,13 @@ module Profligacy
|
|
47
47
|
|
48
48
|
def ltab
|
49
49
|
horizontals_reset
|
50
|
-
@vertical = @layout.
|
50
|
+
@vertical = @layout.createBaselineGroup(true, false)
|
51
51
|
end
|
52
52
|
|
53
53
|
def valign(dir)
|
54
54
|
case dir
|
55
|
-
when "^" then @valign = GroupLayout::
|
56
|
-
when "." then @valign = GroupLayout::
|
55
|
+
when "^" then @valign = GroupLayout::LEADING
|
56
|
+
when "." then @valign = GroupLayout::TRAILING
|
57
57
|
else
|
58
58
|
raise "Invalid Vertical Alignment: #{dir}"
|
59
59
|
end
|
@@ -64,23 +64,22 @@ module Profligacy
|
|
64
64
|
component = @components[name]
|
65
65
|
|
66
66
|
if component
|
67
|
-
|
68
|
-
|
69
|
-
h.addComponent(component, @halign, GroupLayout::DEFAULT_SIZE, @width, @max)
|
67
|
+
@vertical.add(@valign, component, GroupLayout::DEFAULT_SIZE, @height, @max)
|
68
|
+
h.add(@halign, component, GroupLayout::DEFAULT_SIZE, @width, @max)
|
70
69
|
elsif name != "_"
|
71
70
|
raise "Cell named '#{name}' does not have a component set during build."
|
72
71
|
end
|
73
72
|
end
|
74
73
|
|
75
74
|
def row
|
76
|
-
@vgroup.
|
75
|
+
@vgroup.add(@vertical);
|
77
76
|
alignments_reset ; widths_reset ; heights_reset
|
78
77
|
end
|
79
78
|
|
80
79
|
def align(direction)
|
81
80
|
case direction
|
82
|
-
when "<" then @halign = GroupLayout::
|
83
|
-
when ">" then @halign = GroupLayout::
|
81
|
+
when "<" then @halign = GroupLayout::LEADING
|
82
|
+
when ">" then @halign = GroupLayout::TRAILING
|
84
83
|
else
|
85
84
|
raise "Invalid Horizontal Alignment: #{direction}"
|
86
85
|
end
|
@@ -108,8 +107,8 @@ module Profligacy
|
|
108
107
|
private
|
109
108
|
|
110
109
|
def alignments_reset
|
111
|
-
@valign = GroupLayout::
|
112
|
-
@halign = GroupLayout::
|
110
|
+
@valign = GroupLayout::CENTER
|
111
|
+
@halign = GroupLayout::CENTER
|
113
112
|
end
|
114
113
|
|
115
114
|
def widths_reset
|
@@ -131,8 +130,8 @@ module Profligacy
|
|
131
130
|
|
132
131
|
def horizontals_cur
|
133
132
|
if !@horizontals[@htop]
|
134
|
-
@horizontals[@htop] = @layout.createParallelGroup(
|
135
|
-
@hgroup.
|
133
|
+
@horizontals[@htop] = @layout.createParallelGroup()
|
134
|
+
@hgroup.add(@horizontals[@htop])
|
136
135
|
end
|
137
136
|
|
138
137
|
@horizontals[@htop]
|
@@ -143,7 +142,7 @@ module Profligacy
|
|
143
142
|
|
144
143
|
module Swing
|
145
144
|
class LEL < Build
|
146
|
-
|
145
|
+
include_package 'org.jdesktop.layout'
|
147
146
|
attr_reader :prefs
|
148
147
|
|
149
148
|
def initialize(type, expr)
|
@@ -172,8 +171,8 @@ module Profligacy
|
|
172
171
|
pane = @container.respond_to?(:content_pane) ? @container.content_pane : @container
|
173
172
|
layout = GroupLayout.new pane
|
174
173
|
@container.layout = layout
|
175
|
-
layout.
|
176
|
-
layout.
|
174
|
+
layout.autocreate_gaps = prefs[:auto_create_gaps]
|
175
|
+
layout.autocreate_container_gaps = prefs[:auto_create_container_gaps]
|
177
176
|
layout.honors_visibility = prefs[:honors_visibility]
|
178
177
|
|
179
178
|
parse(LELGroupLayout.new(layout, @contents))
|
data/lib/profligacy/parser.jar
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -25,65 +25,6 @@ files:
|
|
25
25
|
- LICENSE
|
26
26
|
- README
|
27
27
|
- Rakefile
|
28
|
-
- doc/rdoc/classes
|
29
|
-
- doc/rdoc/created.rid
|
30
|
-
- doc/rdoc/files
|
31
|
-
- doc/rdoc/fr_class_index.html
|
32
|
-
- doc/rdoc/fr_file_index.html
|
33
|
-
- doc/rdoc/fr_method_index.html
|
34
|
-
- doc/rdoc/index.html
|
35
|
-
- doc/rdoc/rdoc-style.css
|
36
|
-
- doc/rdoc/classes/Proc.html
|
37
|
-
- doc/rdoc/classes/Proc.src
|
38
|
-
- doc/rdoc/classes/Profligacy
|
39
|
-
- doc/rdoc/classes/Profligacy.html
|
40
|
-
- doc/rdoc/classes/Proc.src/M000001.html
|
41
|
-
- doc/rdoc/classes/Proc.src/M000002.html
|
42
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.html
|
43
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src
|
44
|
-
- doc/rdoc/classes/Profligacy/LELNameScanner.html
|
45
|
-
- doc/rdoc/classes/Profligacy/LELNameScanner.src
|
46
|
-
- doc/rdoc/classes/Profligacy/Swing
|
47
|
-
- doc/rdoc/classes/Profligacy/Swing.html
|
48
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000014.html
|
49
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000015.html
|
50
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000016.html
|
51
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000017.html
|
52
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000018.html
|
53
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000019.html
|
54
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000020.html
|
55
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000021.html
|
56
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000022.html
|
57
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000023.html
|
58
|
-
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000024.html
|
59
|
-
- doc/rdoc/classes/Profligacy/LELNameScanner.src/M000025.html
|
60
|
-
- doc/rdoc/classes/Profligacy/LELNameScanner.src/M000026.html
|
61
|
-
- doc/rdoc/classes/Profligacy/LELNameScanner.src/M000027.html
|
62
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.html
|
63
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src
|
64
|
-
- doc/rdoc/classes/Profligacy/Swing/LEL.html
|
65
|
-
- doc/rdoc/classes/Profligacy/Swing/LEL.src
|
66
|
-
- doc/rdoc/classes/Profligacy/Swing/Listeners.html
|
67
|
-
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.html
|
68
|
-
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.src
|
69
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html
|
70
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html
|
71
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html
|
72
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html
|
73
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html
|
74
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000010.html
|
75
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000011.html
|
76
|
-
- doc/rdoc/classes/Profligacy/Swing/LEL.src/M000012.html
|
77
|
-
- doc/rdoc/classes/Profligacy/Swing/LEL.src/M000013.html
|
78
|
-
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000003.html
|
79
|
-
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000004.html
|
80
|
-
- doc/rdoc/files/COPYING.html
|
81
|
-
- doc/rdoc/files/LICENSE.html
|
82
|
-
- doc/rdoc/files/README.html
|
83
|
-
- doc/rdoc/files/lib
|
84
|
-
- doc/rdoc/files/lib/profligacy
|
85
|
-
- doc/rdoc/files/lib/profligacy/lel_rb.html
|
86
|
-
- doc/rdoc/files/lib/profligacy/swing_rb.html
|
87
28
|
- examples/layout_test.rb
|
88
29
|
- examples/prefuse_sample.rb
|
89
30
|
- examples/swing1.rb
|
@@ -95,6 +36,7 @@ files:
|
|
95
36
|
- examples/swing7.rb
|
96
37
|
- examples/swing8.rb
|
97
38
|
- examples/swing8_lel.rb
|
39
|
+
- examples/utu_main.rb
|
98
40
|
- tools/rakehelp.rb
|
99
41
|
- lib/profligacy/lel.rb
|
100
42
|
- lib/profligacy/swing.rb
|
@@ -103,6 +45,7 @@ files:
|
|
103
45
|
- lib/profligacy/LELParser$LELEventListener.class
|
104
46
|
- lib/profligacy/LELParser.class
|
105
47
|
- lib/profligacy/parser.jar
|
48
|
+
- lib/profligacy/swing-layout.jar
|
106
49
|
specification_version: 1
|
107
50
|
extensions: []
|
108
51
|
rubygems_version: 0.9.4
|
@@ -110,11 +53,11 @@ requirements: []
|
|
110
53
|
authors:
|
111
54
|
- Zed A. Shaw
|
112
55
|
platform: jruby
|
113
|
-
date: 2007-07-
|
56
|
+
date: 2007-07-09 04:00:00 +00:00
|
114
57
|
require_paths:
|
115
58
|
- lib
|
116
59
|
version: !ruby/object:Gem::Version
|
117
|
-
version:
|
60
|
+
version: 0.4.1
|
118
61
|
test_files: []
|
119
62
|
bindir: bin
|
120
63
|
dependencies: []
|
data/doc/rdoc/classes/Proc.html
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Proc</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Proc</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/profligacy/swing_rb.html">
|
59
|
-
lib/profligacy/swing.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000001">to_listener</a>
|
90
|
-
<a href="#M000002">to_runnable</a>
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
</div>
|
95
|
-
|
96
|
-
|
97
|
-
<!-- if includes -->
|
98
|
-
|
99
|
-
<div id="section">
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<!-- if method_list -->
|
109
|
-
<div id="methods">
|
110
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
111
|
-
|
112
|
-
<div id="method-M000001" class="method-detail">
|
113
|
-
<a name="M000001"></a>
|
114
|
-
|
115
|
-
<div class="method-heading">
|
116
|
-
<a href="Proc.src/M000001.html" target="Code" class="method-signature"
|
117
|
-
onclick="popupCode('Proc.src/M000001.html');return false;">
|
118
|
-
<span class="method-name">to_listener</span><span class="method-args">(action)</span>
|
119
|
-
</a>
|
120
|
-
</div>
|
121
|
-
|
122
|
-
<div class="method-description">
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
|
126
|
-
<div id="method-M000002" class="method-detail">
|
127
|
-
<a name="M000002"></a>
|
128
|
-
|
129
|
-
<div class="method-heading">
|
130
|
-
<a href="Proc.src/M000002.html" target="Code" class="method-signature"
|
131
|
-
onclick="popupCode('Proc.src/M000002.html');return false;">
|
132
|
-
<span class="method-name">to_runnable</span><span class="method-args">()</span>
|
133
|
-
</a>
|
134
|
-
</div>
|
135
|
-
|
136
|
-
<div class="method-description">
|
137
|
-
</div>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
|
141
|
-
</div>
|
142
|
-
|
143
|
-
|
144
|
-
</div>
|
145
|
-
|
146
|
-
|
147
|
-
<div id="validator-badges">
|
148
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
149
|
-
</div>
|
150
|
-
|
151
|
-
</body>
|
152
|
-
</html>
|