profligacy 0.3.1-jruby → 0.3.2-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 +1 -1
- data/doc/rdoc/classes/Profligacy/Swing/Build.html +35 -35
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000003.html +20 -0
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000004.html +18 -0
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html +26 -7
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html +5 -5
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html +9 -26
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html +8 -5
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html +11 -9
- data/doc/rdoc/classes/Profligacy/Swing/LEL.html +10 -10
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/{M000012.html → M000010.html} +0 -0
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/{M000013.html → M000011.html} +0 -0
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.html +10 -10
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000003.html → M000012.html} +0 -0
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000004.html → M000013.html} +0 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/COPYING.html +1 -1
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +1 -1
- data/doc/rdoc/files/lib/profligacy/lel_rb.html +1 -1
- data/doc/rdoc/files/lib/profligacy/swing_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +13 -13
- data/examples/layout_test.rb +8 -2
- data/lib/profligacy/LELParser.class +0 -0
- data/lib/profligacy/LELParser.java +80 -38
- data/lib/profligacy/LELParser.rl +1 -1
- data/lib/profligacy/parser.jar +0 -0
- metadata +54 -60
- 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/Rakefile
CHANGED
@@ -86,13 +86,13 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
89
|
+
<a href="#M000005">build</a>
|
90
|
+
<a href="#M000009">configure_interactions_for</a>
|
91
|
+
<a href="#M000007">each_or_one</a>
|
92
|
+
<a href="#M000004">interactions</a>
|
93
|
+
<a href="#M000006">method_missing</a>
|
94
|
+
<a href="#M000003">new</a>
|
95
|
+
<a href="#M000008">setup_children_and_interactions</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -147,12 +147,12 @@
|
|
147
147
|
<div id="methods">
|
148
148
|
<h3 class="section-bar">Public Class methods</h3>
|
149
149
|
|
150
|
-
<div id="method-
|
151
|
-
<a name="
|
150
|
+
<div id="method-M000003" class="method-detail">
|
151
|
+
<a name="M000003"></a>
|
152
152
|
|
153
153
|
<div class="method-heading">
|
154
|
-
<a href="Build.src/
|
155
|
-
onclick="popupCode('Build.src/
|
154
|
+
<a href="Build.src/M000003.html" target="Code" class="method-signature"
|
155
|
+
onclick="popupCode('Build.src/M000003.html');return false;">
|
156
156
|
<span class="method-name">new</span><span class="method-args">(*children) {|@contents, @interactions| ...}</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
@@ -163,12 +163,12 @@
|
|
163
163
|
|
164
164
|
<h3 class="section-bar">Public Instance methods</h3>
|
165
165
|
|
166
|
-
<div id="method-
|
167
|
-
<a name="
|
166
|
+
<div id="method-M000005" class="method-detail">
|
167
|
+
<a name="M000005"></a>
|
168
168
|
|
169
169
|
<div class="method-heading">
|
170
|
-
<a href="Build.src/
|
171
|
-
onclick="popupCode('Build.src/
|
170
|
+
<a href="Build.src/M000005.html" target="Code" class="method-signature"
|
171
|
+
onclick="popupCode('Build.src/M000005.html');return false;">
|
172
172
|
<span class="method-name">build</span><span class="method-args">(*args)</span>
|
173
173
|
</a>
|
174
174
|
</div>
|
@@ -177,12 +177,12 @@
|
|
177
177
|
</div>
|
178
178
|
</div>
|
179
179
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
180
|
+
<div id="method-M000004" class="method-detail">
|
181
|
+
<a name="M000004"></a>
|
182
182
|
|
183
183
|
<div class="method-heading">
|
184
|
-
<a href="Build.src/
|
185
|
-
onclick="popupCode('Build.src/
|
184
|
+
<a href="Build.src/M000004.html" target="Code" class="method-signature"
|
185
|
+
onclick="popupCode('Build.src/M000004.html');return false;">
|
186
186
|
<span class="method-name">interactions</span><span class="method-args">() {|@contents, @interactions| ...}</span>
|
187
187
|
</a>
|
188
188
|
</div>
|
@@ -191,12 +191,12 @@
|
|
191
191
|
</div>
|
192
192
|
</div>
|
193
193
|
|
194
|
-
<div id="method-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000006" class="method-detail">
|
195
|
+
<a name="M000006"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="Build.src/
|
199
|
-
onclick="popupCode('Build.src/
|
198
|
+
<a href="Build.src/M000006.html" target="Code" class="method-signature"
|
199
|
+
onclick="popupCode('Build.src/M000006.html');return false;">
|
200
200
|
<span class="method-name">method_missing</span><span class="method-args">(symb, *args)</span>
|
201
201
|
</a>
|
202
202
|
</div>
|
@@ -207,12 +207,12 @@
|
|
207
207
|
|
208
208
|
<h3 class="section-bar">Protected Instance methods</h3>
|
209
209
|
|
210
|
-
<div id="method-
|
211
|
-
<a name="
|
210
|
+
<div id="method-M000009" class="method-detail">
|
211
|
+
<a name="M000009"></a>
|
212
212
|
|
213
213
|
<div class="method-heading">
|
214
|
-
<a href="Build.src/
|
215
|
-
onclick="popupCode('Build.src/
|
214
|
+
<a href="Build.src/M000009.html" target="Code" class="method-signature"
|
215
|
+
onclick="popupCode('Build.src/M000009.html');return false;">
|
216
216
|
<span class="method-name">configure_interactions_for</span><span class="method-args">(child,component)</span>
|
217
217
|
</a>
|
218
218
|
</div>
|
@@ -221,12 +221,12 @@
|
|
221
221
|
</div>
|
222
222
|
</div>
|
223
223
|
|
224
|
-
<div id="method-
|
225
|
-
<a name="
|
224
|
+
<div id="method-M000007" class="method-detail">
|
225
|
+
<a name="M000007"></a>
|
226
226
|
|
227
227
|
<div class="method-heading">
|
228
|
-
<a href="Build.src/
|
229
|
-
onclick="popupCode('Build.src/
|
228
|
+
<a href="Build.src/M000007.html" target="Code" class="method-signature"
|
229
|
+
onclick="popupCode('Build.src/M000007.html');return false;">
|
230
230
|
<span class="method-name">each_or_one</span><span class="method-args">(component) {|c| ...}</span>
|
231
231
|
</a>
|
232
232
|
</div>
|
@@ -239,12 +239,12 @@ to each, or just on one item
|
|
239
239
|
</div>
|
240
240
|
</div>
|
241
241
|
|
242
|
-
<div id="method-
|
243
|
-
<a name="
|
242
|
+
<div id="method-M000008" class="method-detail">
|
243
|
+
<a name="M000008"></a>
|
244
244
|
|
245
245
|
<div class="method-heading">
|
246
|
-
<a href="Build.src/
|
247
|
-
onclick="popupCode('Build.src/
|
246
|
+
<a href="Build.src/M000008.html" target="Code" class="method-signature"
|
247
|
+
onclick="popupCode('Build.src/M000008.html');return false;">
|
248
248
|
<span class="method-name">setup_children_and_interactions</span><span class="method-args">(children)</span>
|
249
249
|
</a>
|
250
250
|
</div>
|
@@ -0,0 +1,20 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>new (Profligacy::Swing::Build)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 67</span>
|
14
|
+
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">children</span>)
|
15
|
+
68: <span class="ruby-ivar">@container_class</span> = <span class="ruby-identifier">children</span>.<span class="ruby-identifier">shift</span>
|
16
|
+
69: <span class="ruby-identifier">setup_children_and_interactions</span>(<span class="ruby-identifier">children</span>)
|
17
|
+
70: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@contents</span>, <span class="ruby-ivar">@interactions</span>
|
18
|
+
71: <span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>interactions (Profligacy::Swing::Build)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 73</span>
|
14
|
+
73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">interactions</span>
|
15
|
+
74: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@contents</span>, <span class="ruby-ivar">@interactions</span>
|
16
|
+
75: <span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -5,16 +5,35 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>build (Profligacy::Swing::Build)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 77</span>
|
14
|
+
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
+
78: <span class="ruby-comment cmt"># create the container they ask for with these args</span>
|
16
|
+
79: <span class="ruby-ivar">@container</span> = <span class="ruby-ivar">@container_class</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
17
|
+
80: <span class="ruby-comment cmt"># tack on the layout they wanted</span>
|
18
|
+
81: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">layout</span> = <span class="ruby-identifier">layout</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">layout</span>
|
19
|
+
82:
|
20
|
+
83: <span class="ruby-comment cmt"># go through all the children, add them on and tack on the callbacks</span>
|
21
|
+
84: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">child</span><span class="ruby-operator">|</span>
|
22
|
+
85: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">child</span>]
|
23
|
+
86: <span class="ruby-comment cmt"># if this component answers the each call then go through all</span>
|
24
|
+
87: <span class="ruby-identifier">component</span> = <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">child</span>]
|
25
|
+
88: <span class="ruby-identifier">each_or_one</span>(<span class="ruby-identifier">component</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">c</span>) }
|
26
|
+
89:
|
27
|
+
90: <span class="ruby-identifier">configure_interactions_for</span> <span class="ruby-identifier">child</span>, <span class="ruby-identifier">component</span>
|
28
|
+
91: <span class="ruby-keyword kw">end</span>
|
29
|
+
92: }
|
30
|
+
93:
|
31
|
+
94: <span class="ruby-comment cmt"># even though swing doesn't do this, we do</span>
|
32
|
+
95: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">pack</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:pack</span>
|
33
|
+
96: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">visible</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:visible</span>
|
34
|
+
97:
|
35
|
+
98: <span class="ruby-comment cmt"># and now they can do whatever they want to the container</span>
|
36
|
+
99: <span class="ruby-ivar">@container</span>
|
37
|
+
100: <span class="ruby-keyword kw">end</span></pre>
|
19
38
|
</body>
|
20
39
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>method_missing (Profligacy::Swing::Build)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre>
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 102</span>
|
14
|
+
102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">symb</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
+
103: <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">symb</span>]
|
16
|
+
104: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,35 +5,18 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>each_or_one (Profligacy::Swing::Build)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
84: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">child</span><span class="ruby-operator">|</span>
|
22
|
-
85: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">child</span>]
|
23
|
-
86: <span class="ruby-comment cmt"># if this component answers the each call then go through all</span>
|
24
|
-
87: <span class="ruby-identifier">component</span> = <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">child</span>]
|
25
|
-
88: <span class="ruby-identifier">each_or_one</span>(<span class="ruby-identifier">component</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">c</span>) }
|
26
|
-
89:
|
27
|
-
90: <span class="ruby-identifier">configure_interactions_for</span> <span class="ruby-identifier">child</span>, <span class="ruby-identifier">component</span>
|
28
|
-
91: <span class="ruby-keyword kw">end</span>
|
29
|
-
92: }
|
30
|
-
93:
|
31
|
-
94: <span class="ruby-comment cmt"># even though swing doesn't do this, we do</span>
|
32
|
-
95: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">pack</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:pack</span>
|
33
|
-
96: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">visible</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:visible</span>
|
34
|
-
97:
|
35
|
-
98: <span class="ruby-comment cmt"># and now they can do whatever they want to the container</span>
|
36
|
-
99: <span class="ruby-ivar">@container</span>
|
37
|
-
100: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 110</span>
|
14
|
+
110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_or_one</span>(<span class="ruby-identifier">component</span>)
|
15
|
+
111: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">component</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:each</span>
|
16
|
+
112: <span class="ruby-identifier">component</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">c</span> }
|
17
|
+
113: <span class="ruby-keyword kw">else</span>
|
18
|
+
114: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">component</span>
|
19
|
+
115: <span class="ruby-keyword kw">end</span>
|
20
|
+
116: <span class="ruby-keyword kw">end</span></pre>
|
38
21
|
</body>
|
39
22
|
</html>
|
@@ -5,14 +5,17 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>setup_children_and_interactions (Profligacy::Swing::Build)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 118</span>
|
14
|
+
118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_children_and_interactions</span>(<span class="ruby-identifier">children</span>)
|
15
|
+
119: <span class="ruby-ivar">@children</span> = <span class="ruby-identifier">children</span>
|
16
|
+
120: <span class="ruby-ivar">@klass</span> = <span class="ruby-constant">Struct</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">*</span><span class="ruby-ivar">@children</span>
|
17
|
+
121: <span class="ruby-ivar">@contents</span> = <span class="ruby-ivar">@klass</span>.<span class="ruby-identifier">new</span>
|
18
|
+
122: <span class="ruby-ivar">@interactions</span> = <span class="ruby-ivar">@klass</span>.<span class="ruby-identifier">new</span>
|
19
|
+
123: <span class="ruby-keyword kw">end</span></pre>
|
17
20
|
</body>
|
18
21
|
</html>
|
@@ -5,18 +5,20 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>configure_interactions_for (Profligacy::Swing::Build)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 125</span>
|
14
|
+
125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure_interactions_for</span>(<span class="ruby-identifier">child</span>,<span class="ruby-identifier">component</span>)
|
15
|
+
126: <span class="ruby-identifier">actions</span> = <span class="ruby-ivar">@interactions</span>[<span class="ruby-identifier">child</span>]
|
16
|
+
127: <span class="ruby-comment cmt"># now we tack on the callback</span>
|
17
|
+
128: <span class="ruby-identifier">actions</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span><span class="ruby-operator">|</span>
|
18
|
+
129: <span class="ruby-identifier">each_or_one</span>(<span class="ruby-identifier">component</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
19
|
+
130: <span class="ruby-identifier">c</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">"add_#{type}_listener"</span>, <span class="ruby-identifier">callback</span>.<span class="ruby-identifier">to_proc</span>.<span class="ruby-identifier">to_listener</span>(<span class="ruby-identifier">type</span>))
|
20
|
+
131: <span class="ruby-keyword kw">end</span>
|
21
|
+
132: } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">actions</span>
|
22
|
+
133: <span class="ruby-keyword kw">end</span></pre>
|
21
23
|
</body>
|
22
24
|
</html>
|
@@ -88,8 +88,8 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
91
|
+
<a href="#M000011">build</a>
|
92
|
+
<a href="#M000010">new</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -124,12 +124,12 @@
|
|
124
124
|
<div id="methods">
|
125
125
|
<h3 class="section-bar">Public Class methods</h3>
|
126
126
|
|
127
|
-
<div id="method-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000010" class="method-detail">
|
128
|
+
<a name="M000010"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="LEL.src/
|
132
|
-
onclick="popupCode('LEL.src/
|
131
|
+
<a href="LEL.src/M000010.html" target="Code" class="method-signature"
|
132
|
+
onclick="popupCode('LEL.src/M000010.html');return false;">
|
133
133
|
<span class="method-name">new</span><span class="method-args">(type, expr) {|@contents, @interactions| ...}</span>
|
134
134
|
</a>
|
135
135
|
</div>
|
@@ -140,12 +140,12 @@
|
|
140
140
|
|
141
141
|
<h3 class="section-bar">Public Instance methods</h3>
|
142
142
|
|
143
|
-
<div id="method-
|
144
|
-
<a name="
|
143
|
+
<div id="method-M000011" class="method-detail">
|
144
|
+
<a name="M000011"></a>
|
145
145
|
|
146
146
|
<div class="method-heading">
|
147
|
-
<a href="LEL.src/
|
148
|
-
onclick="popupCode('LEL.src/
|
147
|
+
<a href="LEL.src/M000011.html" target="Code" class="method-signature"
|
148
|
+
onclick="popupCode('LEL.src/M000011.html');return false;">
|
149
149
|
<span class="method-name">build</span><span class="method-args">(prefs={})</span>
|
150
150
|
</a>
|
151
151
|
</div>
|
File without changes
|
File without changes
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000012">new</a>
|
90
|
+
<a href="#M000013">run</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -116,12 +116,12 @@
|
|
116
116
|
<div id="methods">
|
117
117
|
<h3 class="section-bar">Public Class methods</h3>
|
118
118
|
|
119
|
-
<div id="method-
|
120
|
-
<a name="
|
119
|
+
<div id="method-M000012" class="method-detail">
|
120
|
+
<a name="M000012"></a>
|
121
121
|
|
122
122
|
<div class="method-heading">
|
123
|
-
<a href="RunnableProc.src/
|
124
|
-
onclick="popupCode('RunnableProc.src/
|
123
|
+
<a href="RunnableProc.src/M000012.html" target="Code" class="method-signature"
|
124
|
+
onclick="popupCode('RunnableProc.src/M000012.html');return false;">
|
125
125
|
<span class="method-name">new</span><span class="method-args">(&block)</span>
|
126
126
|
</a>
|
127
127
|
</div>
|
@@ -132,12 +132,12 @@
|
|
132
132
|
|
133
133
|
<h3 class="section-bar">Public Instance methods</h3>
|
134
134
|
|
135
|
-
<div id="method-
|
136
|
-
<a name="
|
135
|
+
<div id="method-M000013" class="method-detail">
|
136
|
+
<a name="M000013"></a>
|
137
137
|
|
138
138
|
<div class="method-heading">
|
139
|
-
<a href="RunnableProc.src/
|
140
|
-
onclick="popupCode('RunnableProc.src/
|
139
|
+
<a href="RunnableProc.src/M000013.html" target="Code" class="method-signature"
|
140
|
+
onclick="popupCode('RunnableProc.src/M000013.html');return false;">
|
141
141
|
<span class="method-name">run</span><span class="method-args">()</span>
|
142
142
|
</a>
|
143
143
|
</div>
|
File without changes
|
File without changes
|
data/doc/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Sat
|
1
|
+
Sat Jul 07 15:00:47 EDT 2007
|
data/doc/rdoc/files/COPYING.html
CHANGED
data/doc/rdoc/files/LICENSE.html
CHANGED
data/doc/rdoc/files/README.html
CHANGED
@@ -21,28 +21,28 @@
|
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
22
22
|
<div id="index-entries">
|
23
23
|
<a href="classes/Profligacy/LELGroupLayout.html#M000020">align (Profligacy::LELGroupLayout)</a><br />
|
24
|
-
<a href="classes/Profligacy/Swing/Build.html#
|
25
|
-
<a href="classes/Profligacy/Swing/LEL.html#
|
24
|
+
<a href="classes/Profligacy/Swing/Build.html#M000005">build (Profligacy::Swing::Build)</a><br />
|
25
|
+
<a href="classes/Profligacy/Swing/LEL.html#M000011">build (Profligacy::Swing::LEL)</a><br />
|
26
26
|
<a href="classes/Profligacy/LELGroupLayout.html#M000015">col (Profligacy::LELGroupLayout)</a><br />
|
27
|
-
<a href="classes/Profligacy/Swing/Build.html#
|
28
|
-
<a href="classes/Profligacy/Swing/Build.html#
|
27
|
+
<a href="classes/Profligacy/Swing/Build.html#M000009">configure_interactions_for (Profligacy::Swing::Build)</a><br />
|
28
|
+
<a href="classes/Profligacy/Swing/Build.html#M000007">each_or_one (Profligacy::Swing::Build)</a><br />
|
29
29
|
<a href="classes/Profligacy/LELGroupLayout.html#M000023">expand (Profligacy::LELGroupLayout)</a><br />
|
30
30
|
<a href="classes/Profligacy/LELGroupLayout.html#M000024">finished (Profligacy::LELGroupLayout)</a><br />
|
31
|
-
<a href="classes/Profligacy/LELNameScanner.html#M000026">id (Profligacy::LELNameScanner)</a><br />
|
32
31
|
<a href="classes/Profligacy/LELGroupLayout.html#M000018">id (Profligacy::LELGroupLayout)</a><br />
|
33
|
-
<a href="classes/Profligacy/
|
32
|
+
<a href="classes/Profligacy/LELNameScanner.html#M000026">id (Profligacy::LELNameScanner)</a><br />
|
33
|
+
<a href="classes/Profligacy/Swing/Build.html#M000004">interactions (Profligacy::Swing::Build)</a><br />
|
34
34
|
<a href="classes/Profligacy/LELGroupLayout.html#M000016">ltab (Profligacy::LELGroupLayout)</a><br />
|
35
|
-
<a href="classes/Profligacy/Swing/Build.html#
|
35
|
+
<a href="classes/Profligacy/Swing/Build.html#M000006">method_missing (Profligacy::Swing::Build)</a><br />
|
36
36
|
<a href="classes/Profligacy/LELNameScanner.html#M000027">method_missing (Profligacy::LELNameScanner)</a><br />
|
37
|
-
<a href="classes/Profligacy/Swing/Build.html#
|
38
|
-
<a href="classes/Profligacy/Swing/LEL.html#
|
39
|
-
<a href="classes/Profligacy/Swing/RunnableProc.html#
|
40
|
-
<a href="classes/Profligacy/LELNameScanner.html#M000025">new (Profligacy::LELNameScanner)</a><br />
|
37
|
+
<a href="classes/Profligacy/Swing/Build.html#M000003">new (Profligacy::Swing::Build)</a><br />
|
38
|
+
<a href="classes/Profligacy/Swing/LEL.html#M000010">new (Profligacy::Swing::LEL)</a><br />
|
39
|
+
<a href="classes/Profligacy/Swing/RunnableProc.html#M000012">new (Profligacy::Swing::RunnableProc)</a><br />
|
41
40
|
<a href="classes/Profligacy/LELGroupLayout.html#M000014">new (Profligacy::LELGroupLayout)</a><br />
|
41
|
+
<a href="classes/Profligacy/LELNameScanner.html#M000025">new (Profligacy::LELNameScanner)</a><br />
|
42
42
|
<a href="classes/Profligacy/LELGroupLayout.html#M000019">row (Profligacy::LELGroupLayout)</a><br />
|
43
|
-
<a href="classes/Profligacy/Swing/RunnableProc.html#
|
43
|
+
<a href="classes/Profligacy/Swing/RunnableProc.html#M000013">run (Profligacy::Swing::RunnableProc)</a><br />
|
44
44
|
<a href="classes/Profligacy/LELGroupLayout.html#M000022">setheight (Profligacy::LELGroupLayout)</a><br />
|
45
|
-
<a href="classes/Profligacy/Swing/Build.html#
|
45
|
+
<a href="classes/Profligacy/Swing/Build.html#M000008">setup_children_and_interactions (Profligacy::Swing::Build)</a><br />
|
46
46
|
<a href="classes/Profligacy/LELGroupLayout.html#M000021">setwidth (Profligacy::LELGroupLayout)</a><br />
|
47
47
|
<a href="classes/Proc.html#M000001">to_listener (Proc)</a><br />
|
48
48
|
<a href="classes/Proc.html#M000002">to_runnable (Proc)</a><br />
|
data/examples/layout_test.rb
CHANGED
@@ -5,8 +5,14 @@ module Test
|
|
5
5
|
include_package 'javax.swing'
|
6
6
|
include Profligacy
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
layout = "
|
9
|
+
[ label_1 | label3 ]
|
10
|
+
[ (300,300)*text1 | (150)people ]
|
11
|
+
[ <label2 | _ ]
|
12
|
+
[ message | buttons ]
|
13
|
+
"
|
14
|
+
|
15
|
+
ui = Swing::LEL.new(JFrame,layout) do |c,i|
|
10
16
|
c.label_1 = JLabel.new "The chat:"
|
11
17
|
c.label2 = JLabel.new "What you're saying:"
|
12
18
|
c.label3 = JLabel.new "The people:"
|
Binary file
|
@@ -26,15 +26,15 @@ public class LELParser {
|
|
26
26
|
// line 27 "lib/profligacy/LELParser.java"
|
27
27
|
private static void init__LayoutExpressionLanguage_actions_0( byte[] r )
|
28
28
|
{
|
29
|
-
r[0]=0; r[1]=1; r[2]=
|
30
|
-
r[8]=
|
31
|
-
r[16]=
|
32
|
-
r[24]=5;
|
29
|
+
r[0]=0; r[1]=1; r[2]=1; r[3]=1; r[4]=2; r[5]=1; r[6]=3; r[7]=1;
|
30
|
+
r[8]=4; r[9]=1; r[10]=5; r[11]=1; r[12]=6; r[13]=1; r[14]=9; r[15]=1;
|
31
|
+
r[16]=10; r[17]=1; r[18]=11; r[19]=2; r[20]=0; r[21]=7; r[22]=2; r[23]=0;
|
32
|
+
r[24]=8; r[25]=2; r[26]=4; r[27]=1; r[28]=2; r[29]=4; r[30]=5;
|
33
33
|
}
|
34
34
|
|
35
35
|
private static byte[] create__LayoutExpressionLanguage_actions( )
|
36
36
|
{
|
37
|
-
byte[] r = new byte[
|
37
|
+
byte[] r = new byte[31];
|
38
38
|
init__LayoutExpressionLanguage_actions_0( r );
|
39
39
|
return r;
|
40
40
|
}
|
@@ -44,13 +44,14 @@ private static final byte _LayoutExpressionLanguage_actions[] = create__LayoutEx
|
|
44
44
|
|
45
45
|
private static void init__LayoutExpressionLanguage_key_offsets_0( byte[] r )
|
46
46
|
{
|
47
|
-
r[0]=0; r[1]=0; r[2]=4; r[3]=
|
48
|
-
r[8]=
|
47
|
+
r[0]=0; r[1]=0; r[2]=4; r[3]=18; r[4]=20; r[5]=24; r[6]=35; r[7]=47;
|
48
|
+
r[8]=52; r[9]=66; r[10]=68; r[11]=72; r[12]=83; r[13]=95; r[14]=99; r[15]=101;
|
49
|
+
r[16]=104; r[17]=106; r[18]=109;
|
49
50
|
}
|
50
51
|
|
51
52
|
private static byte[] create__LayoutExpressionLanguage_key_offsets( )
|
52
53
|
{
|
53
|
-
byte[] r = new byte[
|
54
|
+
byte[] r = new byte[19];
|
54
55
|
init__LayoutExpressionLanguage_key_offsets_0( r );
|
55
56
|
return r;
|
56
57
|
}
|
@@ -60,16 +61,26 @@ private static final byte _LayoutExpressionLanguage_key_offsets[] = create__Layo
|
|
60
61
|
|
61
62
|
private static void init__LayoutExpressionLanguage_trans_keys_0( char[] r )
|
62
63
|
{
|
63
|
-
r[0]=32; r[1]=91; r[2]=9; r[3]=13; r[4]=
|
64
|
-
r[8]=
|
65
|
-
r[16]=
|
66
|
-
r[24]=
|
67
|
-
r[32]=90; r[33]=97; r[34]=122; r[35]=32; r[36]=
|
64
|
+
r[0]=32; r[1]=91; r[2]=9; r[3]=13; r[4]=32; r[5]=40; r[6]=42; r[7]=46;
|
65
|
+
r[8]=60; r[9]=62; r[10]=94; r[11]=95; r[12]=9; r[13]=13; r[14]=65; r[15]=90;
|
66
|
+
r[16]=97; r[17]=122; r[18]=48; r[19]=57; r[20]=41; r[21]=44; r[22]=48; r[23]=57;
|
67
|
+
r[24]=40; r[25]=42; r[26]=46; r[27]=60; r[28]=62; r[29]=94; r[30]=95; r[31]=65;
|
68
|
+
r[32]=90; r[33]=97; r[34]=122; r[35]=32; r[36]=93; r[37]=95; r[38]=124; r[39]=9;
|
69
|
+
r[40]=13; r[41]=48; r[42]=57; r[43]=65; r[44]=90; r[45]=97; r[46]=122; r[47]=32;
|
70
|
+
r[48]=93; r[49]=124; r[50]=9; r[51]=13; r[52]=32; r[53]=40; r[54]=42; r[55]=46;
|
71
|
+
r[56]=60; r[57]=62; r[58]=94; r[59]=95; r[60]=9; r[61]=13; r[62]=65; r[63]=90;
|
72
|
+
r[64]=97; r[65]=122; r[66]=48; r[67]=57; r[68]=41; r[69]=44; r[70]=48; r[71]=57;
|
73
|
+
r[72]=40; r[73]=42; r[74]=46; r[75]=60; r[76]=62; r[77]=94; r[78]=95; r[79]=65;
|
74
|
+
r[80]=90; r[81]=97; r[82]=122; r[83]=32; r[84]=93; r[85]=95; r[86]=124; r[87]=9;
|
75
|
+
r[88]=13; r[89]=48; r[90]=57; r[91]=65; r[92]=90; r[93]=97; r[94]=122; r[95]=32;
|
76
|
+
r[96]=93; r[97]=9; r[98]=13; r[99]=48; r[100]=57; r[101]=41; r[102]=48; r[103]=57;
|
77
|
+
r[104]=48; r[105]=57; r[106]=41; r[107]=48; r[108]=57; r[109]=32; r[110]=91; r[111]=9;
|
78
|
+
r[112]=13; r[113]=0;
|
68
79
|
}
|
69
80
|
|
70
81
|
private static char[] create__LayoutExpressionLanguage_trans_keys( )
|
71
82
|
{
|
72
|
-
char[] r = new char[
|
83
|
+
char[] r = new char[114];
|
73
84
|
init__LayoutExpressionLanguage_trans_keys_0( r );
|
74
85
|
return r;
|
75
86
|
}
|
@@ -79,13 +90,14 @@ private static final char _LayoutExpressionLanguage_trans_keys[] = create__Layou
|
|
79
90
|
|
80
91
|
private static void init__LayoutExpressionLanguage_single_lengths_0( byte[] r )
|
81
92
|
{
|
82
|
-
r[0]=0; r[1]=2; r[2]=
|
83
|
-
r[8]=2;
|
93
|
+
r[0]=0; r[1]=2; r[2]=8; r[3]=0; r[4]=2; r[5]=7; r[6]=4; r[7]=3;
|
94
|
+
r[8]=8; r[9]=0; r[10]=2; r[11]=7; r[12]=4; r[13]=2; r[14]=0; r[15]=1;
|
95
|
+
r[16]=0; r[17]=1; r[18]=2;
|
84
96
|
}
|
85
97
|
|
86
98
|
private static byte[] create__LayoutExpressionLanguage_single_lengths( )
|
87
99
|
{
|
88
|
-
byte[] r = new byte[
|
100
|
+
byte[] r = new byte[19];
|
89
101
|
init__LayoutExpressionLanguage_single_lengths_0( r );
|
90
102
|
return r;
|
91
103
|
}
|
@@ -95,13 +107,14 @@ private static final byte _LayoutExpressionLanguage_single_lengths[] = create__L
|
|
95
107
|
|
96
108
|
private static void init__LayoutExpressionLanguage_range_lengths_0( byte[] r )
|
97
109
|
{
|
98
|
-
r[0]=0; r[1]=1; r[2]=
|
99
|
-
r[8]=1;
|
110
|
+
r[0]=0; r[1]=1; r[2]=3; r[3]=1; r[4]=1; r[5]=2; r[6]=4; r[7]=1;
|
111
|
+
r[8]=3; r[9]=1; r[10]=1; r[11]=2; r[12]=4; r[13]=1; r[14]=1; r[15]=1;
|
112
|
+
r[16]=1; r[17]=1; r[18]=1;
|
100
113
|
}
|
101
114
|
|
102
115
|
private static byte[] create__LayoutExpressionLanguage_range_lengths( )
|
103
116
|
{
|
104
|
-
byte[] r = new byte[
|
117
|
+
byte[] r = new byte[19];
|
105
118
|
init__LayoutExpressionLanguage_range_lengths_0( r );
|
106
119
|
return r;
|
107
120
|
}
|
@@ -111,13 +124,14 @@ private static final byte _LayoutExpressionLanguage_range_lengths[] = create__La
|
|
111
124
|
|
112
125
|
private static void init__LayoutExpressionLanguage_index_offsets_0( byte[] r )
|
113
126
|
{
|
114
|
-
r[0]=0; r[1]=0; r[2]=4; r[3]=
|
115
|
-
r[8]=
|
127
|
+
r[0]=0; r[1]=0; r[2]=4; r[3]=16; r[4]=18; r[5]=22; r[6]=32; r[7]=41;
|
128
|
+
r[8]=46; r[9]=58; r[10]=60; r[11]=64; r[12]=74; r[13]=83; r[14]=87; r[15]=89;
|
129
|
+
r[16]=92; r[17]=94; r[18]=97;
|
116
130
|
}
|
117
131
|
|
118
132
|
private static byte[] create__LayoutExpressionLanguage_index_offsets( )
|
119
133
|
{
|
120
|
-
byte[] r = new byte[
|
134
|
+
byte[] r = new byte[19];
|
121
135
|
init__LayoutExpressionLanguage_index_offsets_0( r );
|
122
136
|
return r;
|
123
137
|
}
|
@@ -125,18 +139,45 @@ private static byte[] create__LayoutExpressionLanguage_index_offsets( )
|
|
125
139
|
private static final byte _LayoutExpressionLanguage_index_offsets[] = create__LayoutExpressionLanguage_index_offsets();
|
126
140
|
|
127
141
|
|
142
|
+
private static void init__LayoutExpressionLanguage_indicies_0( byte[] r )
|
143
|
+
{
|
144
|
+
r[0]=0; r[1]=2; r[2]=0; r[3]=1; r[4]=3; r[5]=4; r[6]=5; r[7]=6;
|
145
|
+
r[8]=7; r[9]=7; r[10]=6; r[11]=8; r[12]=3; r[13]=8; r[14]=8; r[15]=1;
|
146
|
+
r[16]=9; r[17]=1; r[18]=10; r[19]=11; r[20]=12; r[21]=1; r[22]=4; r[23]=5;
|
147
|
+
r[24]=6; r[25]=7; r[26]=7; r[27]=6; r[28]=8; r[29]=8; r[30]=8; r[31]=1;
|
148
|
+
r[32]=13; r[33]=15; r[34]=14; r[35]=16; r[36]=13; r[37]=14; r[38]=14; r[39]=14;
|
149
|
+
r[40]=1; r[41]=17; r[42]=18; r[43]=19; r[44]=17; r[45]=1; r[46]=20; r[47]=21;
|
150
|
+
r[48]=22; r[49]=23; r[50]=24; r[51]=24; r[52]=23; r[53]=25; r[54]=20; r[55]=25;
|
151
|
+
r[56]=25; r[57]=1; r[58]=26; r[59]=1; r[60]=27; r[61]=28; r[62]=29; r[63]=1;
|
152
|
+
r[64]=21; r[65]=22; r[66]=23; r[67]=24; r[68]=24; r[69]=23; r[70]=25; r[71]=25;
|
153
|
+
r[72]=25; r[73]=1; r[74]=30; r[75]=15; r[76]=31; r[77]=16; r[78]=30; r[79]=31;
|
154
|
+
r[80]=31; r[81]=31; r[82]=1; r[83]=32; r[84]=18; r[85]=32; r[86]=1; r[87]=33;
|
155
|
+
r[88]=1; r[89]=34; r[90]=35; r[91]=1; r[92]=36; r[93]=1; r[94]=37; r[95]=38;
|
156
|
+
r[96]=1; r[97]=39; r[98]=2; r[99]=39; r[100]=1; r[101]=0;
|
157
|
+
}
|
158
|
+
|
159
|
+
private static byte[] create__LayoutExpressionLanguage_indicies( )
|
160
|
+
{
|
161
|
+
byte[] r = new byte[102];
|
162
|
+
init__LayoutExpressionLanguage_indicies_0( r );
|
163
|
+
return r;
|
164
|
+
}
|
165
|
+
|
166
|
+
private static final byte _LayoutExpressionLanguage_indicies[] = create__LayoutExpressionLanguage_indicies();
|
167
|
+
|
168
|
+
|
128
169
|
private static void init__LayoutExpressionLanguage_trans_targs_wi_0( byte[] r )
|
129
170
|
{
|
130
|
-
r[0]=1; r[1]=
|
131
|
-
r[8]=
|
132
|
-
r[16]=
|
133
|
-
r[24]=
|
134
|
-
r[32]=
|
171
|
+
r[0]=1; r[1]=0; r[2]=2; r[3]=2; r[4]=3; r[5]=5; r[6]=5; r[7]=5;
|
172
|
+
r[8]=6; r[9]=4; r[10]=5; r[11]=16; r[12]=4; r[13]=7; r[14]=6; r[15]=18;
|
173
|
+
r[16]=8; r[17]=7; r[18]=18; r[19]=8; r[20]=8; r[21]=9; r[22]=11; r[23]=11;
|
174
|
+
r[24]=11; r[25]=12; r[26]=10; r[27]=11; r[28]=14; r[29]=10; r[30]=13; r[31]=12;
|
175
|
+
r[32]=13; r[33]=15; r[34]=11; r[35]=15; r[36]=17; r[37]=5; r[38]=17; r[39]=18;
|
135
176
|
}
|
136
177
|
|
137
178
|
private static byte[] create__LayoutExpressionLanguage_trans_targs_wi( )
|
138
179
|
{
|
139
|
-
byte[] r = new byte[
|
180
|
+
byte[] r = new byte[40];
|
140
181
|
init__LayoutExpressionLanguage_trans_targs_wi_0( r );
|
141
182
|
return r;
|
142
183
|
}
|
@@ -146,16 +187,16 @@ private static final byte _LayoutExpressionLanguage_trans_targs_wi[] = create__L
|
|
146
187
|
|
147
188
|
private static void init__LayoutExpressionLanguage_trans_actions_wi_0( byte[] r )
|
148
189
|
{
|
149
|
-
r[0]=0; r[1]=
|
150
|
-
r[8]=
|
151
|
-
r[16]=
|
152
|
-
r[24]=
|
153
|
-
r[32]=0; r[33]=
|
190
|
+
r[0]=0; r[1]=0; r[2]=3; r[3]=0; r[4]=0; r[5]=13; r[6]=5; r[7]=11;
|
191
|
+
r[8]=17; r[9]=15; r[10]=19; r[11]=19; r[12]=0; r[13]=7; r[14]=0; r[15]=28;
|
192
|
+
r[16]=25; r[17]=0; r[18]=9; r[19]=1; r[20]=0; r[21]=0; r[22]=13; r[23]=5;
|
193
|
+
r[24]=11; r[25]=17; r[26]=15; r[27]=19; r[28]=19; r[29]=0; r[30]=7; r[31]=0;
|
194
|
+
r[32]=0; r[33]=15; r[34]=22; r[35]=0; r[36]=15; r[37]=22; r[38]=0; r[39]=0;
|
154
195
|
}
|
155
196
|
|
156
197
|
private static byte[] create__LayoutExpressionLanguage_trans_actions_wi( )
|
157
198
|
{
|
158
|
-
byte[] r = new byte[
|
199
|
+
byte[] r = new byte[40];
|
159
200
|
init__LayoutExpressionLanguage_trans_actions_wi_0( r );
|
160
201
|
return r;
|
161
202
|
}
|
@@ -178,7 +219,7 @@ static final int LayoutExpressionLanguage_en_main = 1;
|
|
178
219
|
String tk = null;
|
179
220
|
|
180
221
|
|
181
|
-
// line
|
222
|
+
// line 223 "lib/profligacy/LELParser.java"
|
182
223
|
{
|
183
224
|
cs = LayoutExpressionLanguage_start;
|
184
225
|
}
|
@@ -188,7 +229,7 @@ static final int LayoutExpressionLanguage_en_main = 1;
|
|
188
229
|
char data[] = input.toCharArray();
|
189
230
|
|
190
231
|
|
191
|
-
// line
|
232
|
+
// line 233 "lib/profligacy/LELParser.java"
|
192
233
|
{
|
193
234
|
int _klen;
|
194
235
|
int _trans;
|
@@ -249,6 +290,7 @@ static final int LayoutExpressionLanguage_en_main = 1;
|
|
249
290
|
}
|
250
291
|
} while (false);
|
251
292
|
|
293
|
+
_trans = _LayoutExpressionLanguage_indicies[_trans];
|
252
294
|
cs = _LayoutExpressionLanguage_trans_targs_wi[_trans];
|
253
295
|
|
254
296
|
if ( _LayoutExpressionLanguage_trans_actions_wi[_trans] == 0 )
|
@@ -308,7 +350,7 @@ static final int LayoutExpressionLanguage_en_main = 1;
|
|
308
350
|
// line 45 "lib/profligacy/LELParser.rl"
|
309
351
|
{tk_start = p;}
|
310
352
|
break;
|
311
|
-
// line
|
353
|
+
// line 354 "lib/profligacy/LELParser.java"
|
312
354
|
}
|
313
355
|
}
|
314
356
|
|
data/lib/profligacy/LELParser.rl
CHANGED
@@ -43,7 +43,7 @@ public class LELParser {
|
|
43
43
|
setw = ("(" number %setwidth ("," number %setheight)? ")") ;
|
44
44
|
modifiers = (expand | valign | halign | setw);
|
45
45
|
id = modifiers* ((alpha | '_')+ :>> (alnum | '_')*) >{tk_start = fpc;} %id;
|
46
|
-
row = space* ltab id (col id)* rtab space*;
|
46
|
+
row = space* ltab space* id space* (col space* id)* space* rtab space*;
|
47
47
|
|
48
48
|
main := row+;
|
49
49
|
}%%
|
data/lib/profligacy/parser.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,46 +1,50 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
2
|
-
|
3
|
-
specification_version: 1
|
4
|
-
name: profligacy
|
5
|
-
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.1
|
7
|
-
date: 2007-07-07 00:00:00 -04:00
|
8
|
-
summary: Profligacy The Swing Reducer.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email:
|
12
|
-
homepage:
|
13
|
-
rubyforge_project:
|
14
|
-
description: Profligacy The Swing Reducer.
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
3
|
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
4
|
+
- - '>'
|
5
|
+
- !ruby/object:Gem::Version
|
23
6
|
version: 0.0.0
|
24
7
|
version:
|
25
|
-
|
26
|
-
signing_key:
|
8
|
+
email:
|
27
9
|
cert_chain:
|
10
|
+
summary: Profligacy The Swing Reducer.
|
28
11
|
post_install_message:
|
29
|
-
|
30
|
-
|
12
|
+
homepage:
|
13
|
+
extra_rdoc_files:
|
14
|
+
- README
|
15
|
+
signing_key:
|
16
|
+
name: profligacy
|
17
|
+
rdoc_options: []
|
18
|
+
rubyforge_project:
|
19
|
+
autorequire:
|
20
|
+
executables: []
|
21
|
+
description: Profligacy The Swing Reducer.
|
22
|
+
default_executable:
|
31
23
|
files:
|
32
24
|
- COPYING
|
33
25
|
- LICENSE
|
34
26
|
- README
|
35
27
|
- Rakefile
|
36
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
|
37
36
|
- doc/rdoc/classes/Proc.html
|
38
37
|
- doc/rdoc/classes/Proc.src
|
38
|
+
- doc/rdoc/classes/Profligacy
|
39
|
+
- doc/rdoc/classes/Profligacy.html
|
39
40
|
- doc/rdoc/classes/Proc.src/M000001.html
|
40
41
|
- doc/rdoc/classes/Proc.src/M000002.html
|
41
|
-
- doc/rdoc/classes/Profligacy
|
42
42
|
- doc/rdoc/classes/Profligacy/LELGroupLayout.html
|
43
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
|
44
48
|
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000014.html
|
45
49
|
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000015.html
|
46
50
|
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000016.html
|
@@ -52,34 +56,27 @@ files:
|
|
52
56
|
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000022.html
|
53
57
|
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000023.html
|
54
58
|
- doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000024.html
|
55
|
-
- doc/rdoc/classes/Profligacy/LELNameScanner.html
|
56
|
-
- doc/rdoc/classes/Profligacy/LELNameScanner.src
|
57
59
|
- doc/rdoc/classes/Profligacy/LELNameScanner.src/M000025.html
|
58
60
|
- doc/rdoc/classes/Profligacy/LELNameScanner.src/M000026.html
|
59
61
|
- doc/rdoc/classes/Profligacy/LELNameScanner.src/M000027.html
|
60
|
-
- doc/rdoc/classes/Profligacy/Swing
|
61
62
|
- doc/rdoc/classes/Profligacy/Swing/Build.html
|
62
63
|
- doc/rdoc/classes/Profligacy/Swing/Build.src
|
63
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html
|
64
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html
|
65
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html
|
66
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html
|
67
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html
|
68
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000010.html
|
69
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000011.html
|
70
64
|
- doc/rdoc/classes/Profligacy/Swing/LEL.html
|
71
65
|
- doc/rdoc/classes/Profligacy/Swing/LEL.src
|
72
|
-
- doc/rdoc/classes/Profligacy/Swing/LEL.src/M000012.html
|
73
|
-
- doc/rdoc/classes/Profligacy/Swing/LEL.src/M000013.html
|
74
66
|
- doc/rdoc/classes/Profligacy/Swing/Listeners.html
|
75
67
|
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.html
|
76
68
|
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.src
|
77
|
-
- doc/rdoc/classes/Profligacy/Swing/
|
78
|
-
- doc/rdoc/classes/Profligacy/Swing/
|
79
|
-
- doc/rdoc/classes/Profligacy/Swing.html
|
80
|
-
- doc/rdoc/classes/Profligacy.html
|
81
|
-
- doc/rdoc/
|
82
|
-
- doc/rdoc/
|
69
|
+
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000003.html
|
70
|
+
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000004.html
|
71
|
+
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html
|
72
|
+
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html
|
73
|
+
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html
|
74
|
+
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html
|
75
|
+
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html
|
76
|
+
- doc/rdoc/classes/Profligacy/Swing/LEL.src/M000010.html
|
77
|
+
- doc/rdoc/classes/Profligacy/Swing/LEL.src/M000011.html
|
78
|
+
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000012.html
|
79
|
+
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000013.html
|
83
80
|
- doc/rdoc/files/COPYING.html
|
84
81
|
- doc/rdoc/files/LICENSE.html
|
85
82
|
- doc/rdoc/files/README.html
|
@@ -87,11 +84,6 @@ files:
|
|
87
84
|
- doc/rdoc/files/lib/profligacy
|
88
85
|
- doc/rdoc/files/lib/profligacy/lel_rb.html
|
89
86
|
- doc/rdoc/files/lib/profligacy/swing_rb.html
|
90
|
-
- doc/rdoc/fr_class_index.html
|
91
|
-
- doc/rdoc/fr_file_index.html
|
92
|
-
- doc/rdoc/fr_method_index.html
|
93
|
-
- doc/rdoc/index.html
|
94
|
-
- doc/rdoc/rdoc-style.css
|
95
87
|
- examples/layout_test.rb
|
96
88
|
- examples/prefuse_sample.rb
|
97
89
|
- examples/swing1.rb
|
@@ -111,17 +103,19 @@ files:
|
|
111
103
|
- lib/profligacy/LELParser$LELEventListener.class
|
112
104
|
- lib/profligacy/LELParser.class
|
113
105
|
- lib/profligacy/parser.jar
|
114
|
-
|
115
|
-
|
116
|
-
rdoc_options: []
|
117
|
-
|
118
|
-
extra_rdoc_files:
|
119
|
-
- README
|
120
|
-
executables: []
|
121
|
-
|
106
|
+
specification_version: 1
|
122
107
|
extensions: []
|
123
|
-
|
108
|
+
rubygems_version: 0.9.4
|
124
109
|
requirements: []
|
125
|
-
|
110
|
+
authors:
|
111
|
+
- Zed A. Shaw
|
112
|
+
platform: jruby
|
113
|
+
date: 2007-07-07 04:00:00 +00:00
|
114
|
+
require_paths:
|
115
|
+
- lib
|
116
|
+
version: !ruby/object:Gem::Version
|
117
|
+
version: 0.3.2
|
118
|
+
test_files: []
|
119
|
+
bindir: bin
|
126
120
|
dependencies: []
|
127
|
-
|
121
|
+
has_rdoc: true
|
@@ -1,21 +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>
|
7
|
-
<head>
|
8
|
-
<title>setup_children_and_interactions (Profligacy::Swing::Build)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 118</span>
|
14
|
-
118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_children_and_interactions</span>(<span class="ruby-identifier">children</span>)
|
15
|
-
119: <span class="ruby-ivar">@children</span> = <span class="ruby-identifier">children</span>
|
16
|
-
120: <span class="ruby-ivar">@klass</span> = <span class="ruby-constant">Struct</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">*</span><span class="ruby-ivar">@children</span>
|
17
|
-
121: <span class="ruby-ivar">@contents</span> = <span class="ruby-ivar">@klass</span>.<span class="ruby-identifier">new</span>
|
18
|
-
122: <span class="ruby-ivar">@interactions</span> = <span class="ruby-ivar">@klass</span>.<span class="ruby-identifier">new</span>
|
19
|
-
123: <span class="ruby-keyword kw">end</span></pre>
|
20
|
-
</body>
|
21
|
-
</html>
|
@@ -1,24 +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>
|
7
|
-
<head>
|
8
|
-
<title>configure_interactions_for (Profligacy::Swing::Build)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 125</span>
|
14
|
-
125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure_interactions_for</span>(<span class="ruby-identifier">child</span>,<span class="ruby-identifier">component</span>)
|
15
|
-
126: <span class="ruby-identifier">actions</span> = <span class="ruby-ivar">@interactions</span>[<span class="ruby-identifier">child</span>]
|
16
|
-
127: <span class="ruby-comment cmt"># now we tack on the callback</span>
|
17
|
-
128: <span class="ruby-identifier">actions</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span><span class="ruby-operator">|</span>
|
18
|
-
129: <span class="ruby-identifier">each_or_one</span>(<span class="ruby-identifier">component</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
19
|
-
130: <span class="ruby-identifier">c</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">"add_#{type}_listener"</span>, <span class="ruby-identifier">callback</span>.<span class="ruby-identifier">to_proc</span>.<span class="ruby-identifier">to_listener</span>(<span class="ruby-identifier">type</span>))
|
20
|
-
131: <span class="ruby-keyword kw">end</span>
|
21
|
-
132: } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">actions</span>
|
22
|
-
133: <span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|