profligacy 0.3.2-jruby → 0.4-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/Proc.src/M000001.html +4 -4
- data/doc/rdoc/classes/Proc.src/M000002.html +4 -4
- data/doc/rdoc/classes/Profligacy/Swing/Build.html +36 -36
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html +7 -26
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html +5 -5
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html +30 -9
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html +5 -8
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html +9 -11
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000010.html +21 -0
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000011.html +24 -0
- data/doc/rdoc/classes/Profligacy/Swing/LEL.html +11 -11
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/{M000010.html → M000012.html} +0 -0
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/{M000011.html → M000013.html} +6 -4
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.html +10 -10
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000012.html → M000003.html} +0 -0
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000013.html → M000004.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/lib/profligacy/lel.rb +2 -0
- data/lib/profligacy/parser.jar +0 -0
- data/lib/profligacy/swing.rb +4 -0
- metadata +7 -7
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000003.html +0 -20
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000004.html +0 -18
data/Rakefile
CHANGED
@@ -10,9 +10,9 @@
|
|
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 143</span>
|
14
|
+
143: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_listener</span>(<span class="ruby-identifier">action</span>)
|
15
|
+
144: <span class="ruby-constant">Profligacy</span><span class="ruby-operator">::</span><span class="ruby-constant">Swing</span><span class="ruby-operator">::</span><span class="ruby-constant">Listeners</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-node">"#{action.to_s.capitalize}ListenerProc"</span>).<span class="ruby-identifier">new</span> <span class="ruby-operator">&</span><span class="ruby-keyword kw">self</span>
|
16
|
+
145: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
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 147</span>
|
14
|
+
147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_runnable</span>
|
15
|
+
148: <span class="ruby-constant">Profligacy</span><span class="ruby-operator">::</span><span class="ruby-constant">Swing</span><span class="ruby-operator">::</span><span class="ruby-constant">RunnableProc</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">&</span><span class="ruby-keyword kw">self</span>
|
16
|
+
149: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -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="#M000007">build</a>
|
90
|
+
<a href="#M000011">configure_interactions_for</a>
|
91
|
+
<a href="#M000009">each_or_one</a>
|
92
|
+
<a href="#M000006">interactions</a>
|
93
|
+
<a href="#M000008">method_missing</a>
|
94
|
+
<a href="#M000005">new</a>
|
95
|
+
<a href="#M000010">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-M000005" class="method-detail">
|
151
|
+
<a name="M000005"></a>
|
152
152
|
|
153
153
|
<div class="method-heading">
|
154
|
-
<a href="Build.src/
|
155
|
-
onclick="popupCode('Build.src/
|
154
|
+
<a href="Build.src/M000005.html" target="Code" class="method-signature"
|
155
|
+
onclick="popupCode('Build.src/M000005.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,13 +163,13 @@
|
|
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-M000007" class="method-detail">
|
167
|
+
<a name="M000007"></a>
|
168
168
|
|
169
169
|
<div class="method-heading">
|
170
|
-
<a href="Build.src/
|
171
|
-
onclick="popupCode('Build.src/
|
172
|
-
<span class="method-name">build</span><span class="method-args">(*args)</span>
|
170
|
+
<a href="Build.src/M000007.html" target="Code" class="method-signature"
|
171
|
+
onclick="popupCode('Build.src/M000007.html');return false;">
|
172
|
+
<span class="method-name">build</span><span class="method-args">(*args) {|@container if block_given?| ...}</span>
|
173
173
|
</a>
|
174
174
|
</div>
|
175
175
|
|
@@ -177,12 +177,12 @@
|
|
177
177
|
</div>
|
178
178
|
</div>
|
179
179
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
180
|
+
<div id="method-M000006" class="method-detail">
|
181
|
+
<a name="M000006"></a>
|
182
182
|
|
183
183
|
<div class="method-heading">
|
184
|
-
<a href="Build.src/
|
185
|
-
onclick="popupCode('Build.src/
|
184
|
+
<a href="Build.src/M000006.html" target="Code" class="method-signature"
|
185
|
+
onclick="popupCode('Build.src/M000006.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-M000008" class="method-detail">
|
195
|
+
<a name="M000008"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="Build.src/
|
199
|
-
onclick="popupCode('Build.src/
|
198
|
+
<a href="Build.src/M000008.html" target="Code" class="method-signature"
|
199
|
+
onclick="popupCode('Build.src/M000008.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-M000011" class="method-detail">
|
211
|
+
<a name="M000011"></a>
|
212
212
|
|
213
213
|
<div class="method-heading">
|
214
|
-
<a href="Build.src/
|
215
|
-
onclick="popupCode('Build.src/
|
214
|
+
<a href="Build.src/M000011.html" target="Code" class="method-signature"
|
215
|
+
onclick="popupCode('Build.src/M000011.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-M000009" class="method-detail">
|
225
|
+
<a name="M000009"></a>
|
226
226
|
|
227
227
|
<div class="method-heading">
|
228
|
-
<a href="Build.src/
|
229
|
-
onclick="popupCode('Build.src/
|
228
|
+
<a href="Build.src/M000009.html" target="Code" class="method-signature"
|
229
|
+
onclick="popupCode('Build.src/M000009.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-M000010" class="method-detail">
|
243
|
+
<a name="M000010"></a>
|
244
244
|
|
245
245
|
<div class="method-heading">
|
246
|
-
<a href="Build.src/
|
247
|
-
onclick="popupCode('Build.src/
|
246
|
+
<a href="Build.src/M000010.html" target="Code" class="method-signature"
|
247
|
+
onclick="popupCode('Build.src/M000010.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>
|
@@ -5,35 +5,16 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>new (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
|
-
|
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>
|
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>
|
38
19
|
</body>
|
39
20
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>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>
|
14
|
-
|
15
|
-
|
16
|
-
|
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
17
|
</body>
|
18
18
|
</html>
|
@@ -5,18 +5,39 @@
|
|
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> <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 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"># yield to the caller so that they can configure more before</span>
|
32
|
+
95: <span class="ruby-comment cmt"># we make it visible and pack it</span>
|
33
|
+
96: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@container</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
34
|
+
97:
|
35
|
+
98: <span class="ruby-comment cmt"># even though swing doesn't do this, we do</span>
|
36
|
+
99: <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>
|
37
|
+
100: <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>
|
38
|
+
101:
|
39
|
+
102: <span class="ruby-comment cmt"># and now they can do whatever they want to the container</span>
|
40
|
+
103: <span class="ruby-ivar">@container</span>
|
41
|
+
104: <span class="ruby-keyword kw">end</span></pre>
|
21
42
|
</body>
|
22
43
|
</html>
|
@@ -5,17 +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> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
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>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 106</span>
|
14
|
+
106: <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
|
+
107: <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">symb</span>]
|
16
|
+
108: <span class="ruby-keyword kw">end</span></pre>
|
20
17
|
</body>
|
21
18
|
</html>
|
@@ -5,20 +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
|
-
132: } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">actions</span>
|
22
|
-
133: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 114</span>
|
14
|
+
114: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_or_one</span>(<span class="ruby-identifier">component</span>)
|
15
|
+
115: <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
|
+
116: <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
|
+
117: <span class="ruby-keyword kw">else</span>
|
18
|
+
118: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">component</span>
|
19
|
+
119: <span class="ruby-keyword kw">end</span>
|
20
|
+
120: <span class="ruby-keyword kw">end</span></pre>
|
23
21
|
</body>
|
24
22
|
</html>
|
@@ -0,0 +1,21 @@
|
|
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 122</span>
|
14
|
+
122: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_children_and_interactions</span>(<span class="ruby-identifier">children</span>)
|
15
|
+
123: <span class="ruby-ivar">@children</span> = <span class="ruby-identifier">children</span>
|
16
|
+
124: <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
|
+
125: <span class="ruby-ivar">@contents</span> = <span class="ruby-ivar">@klass</span>.<span class="ruby-identifier">new</span>
|
18
|
+
126: <span class="ruby-ivar">@interactions</span> = <span class="ruby-ivar">@klass</span>.<span class="ruby-identifier">new</span>
|
19
|
+
127: <span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
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 129</span>
|
14
|
+
129: <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
|
+
130: <span class="ruby-identifier">actions</span> = <span class="ruby-ivar">@interactions</span>[<span class="ruby-identifier">child</span>]
|
16
|
+
131: <span class="ruby-comment cmt"># now we tack on the callback</span>
|
17
|
+
132: <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
|
+
133: <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
|
+
134: <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
|
+
135: <span class="ruby-keyword kw">end</span>
|
21
|
+
136: } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">actions</span>
|
22
|
+
137: <span class="ruby-keyword kw">end</span></pre>
|
23
|
+
</body>
|
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="#M000013">build</a>
|
92
|
+
<a href="#M000012">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-M000012" class="method-detail">
|
128
|
+
<a name="M000012"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="LEL.src/
|
132
|
-
onclick="popupCode('LEL.src/
|
131
|
+
<a href="LEL.src/M000012.html" target="Code" class="method-signature"
|
132
|
+
onclick="popupCode('LEL.src/M000012.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,13 +140,13 @@
|
|
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-M000013" class="method-detail">
|
144
|
+
<a name="M000013"></a>
|
145
145
|
|
146
146
|
<div class="method-heading">
|
147
|
-
<a href="LEL.src/
|
148
|
-
onclick="popupCode('LEL.src/
|
149
|
-
<span class="method-name">build</span><span class="method-args">(prefs={})</span>
|
147
|
+
<a href="LEL.src/M000013.html" target="Code" class="method-signature"
|
148
|
+
onclick="popupCode('LEL.src/M000013.html');return false;">
|
149
|
+
<span class="method-name">build</span><span class="method-args">(prefs={}) {|@container if block_given?| ...}</span>
|
150
150
|
</a>
|
151
151
|
</div>
|
152
152
|
|
File without changes
|
@@ -28,9 +28,11 @@
|
|
28
28
|
182: <span class="ruby-identifier">configure_interactions_for</span>(<span class="ruby-identifier">child</span>,<span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">child</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">child</span>]
|
29
29
|
183: }
|
30
30
|
184:
|
31
|
-
185: <span class="ruby-
|
32
|
-
186:
|
33
|
-
187: <span class="ruby-ivar">@container</span>
|
34
|
-
188:
|
31
|
+
185: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@container</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
32
|
+
186:
|
33
|
+
187: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">pack</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">prefs</span>[<span class="ruby-identifier">:pack</span>] <span class="ruby-operator">&&</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:pack</span>))
|
34
|
+
188: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">visible</span> = <span class="ruby-identifier">prefs</span>[<span class="ruby-identifier">:visible</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>
|
35
|
+
189: <span class="ruby-ivar">@container</span>
|
36
|
+
190: <span class="ruby-keyword kw">end</span></pre>
|
35
37
|
</body>
|
36
38
|
</html>
|
@@ -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="#M000003">new</a>
|
90
|
+
<a href="#M000004">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-M000003" class="method-detail">
|
120
|
+
<a name="M000003"></a>
|
121
121
|
|
122
122
|
<div class="method-heading">
|
123
|
-
<a href="RunnableProc.src/
|
124
|
-
onclick="popupCode('RunnableProc.src/
|
123
|
+
<a href="RunnableProc.src/M000003.html" target="Code" class="method-signature"
|
124
|
+
onclick="popupCode('RunnableProc.src/M000003.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-M000004" class="method-detail">
|
136
|
+
<a name="M000004"></a>
|
137
137
|
|
138
138
|
<div class="method-heading">
|
139
|
-
<a href="RunnableProc.src/
|
140
|
-
onclick="popupCode('RunnableProc.src/
|
139
|
+
<a href="RunnableProc.src/M000004.html" target="Code" class="method-signature"
|
140
|
+
onclick="popupCode('RunnableProc.src/M000004.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 Jul
|
1
|
+
Sat, 07 Jul 2007 20:33:57 -0400
|
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#M000007">build (Profligacy::Swing::Build)</a><br />
|
25
|
+
<a href="classes/Profligacy/Swing/LEL.html#M000013">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#M000011">configure_interactions_for (Profligacy::Swing::Build)</a><br />
|
28
|
+
<a href="classes/Profligacy/Swing/Build.html#M000009">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/LELGroupLayout.html#M000018">id (Profligacy::LELGroupLayout)</a><br />
|
32
31
|
<a href="classes/Profligacy/LELNameScanner.html#M000026">id (Profligacy::LELNameScanner)</a><br />
|
33
|
-
<a href="classes/Profligacy/
|
32
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000018">id (Profligacy::LELGroupLayout)</a><br />
|
33
|
+
<a href="classes/Profligacy/Swing/Build.html#M000006">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#M000008">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/LELGroupLayout.html#M000014">new (Profligacy::LELGroupLayout)</a><br />
|
37
|
+
<a href="classes/Profligacy/Swing/Build.html#M000005">new (Profligacy::Swing::Build)</a><br />
|
38
|
+
<a href="classes/Profligacy/Swing/LEL.html#M000012">new (Profligacy::Swing::LEL)</a><br />
|
39
|
+
<a href="classes/Profligacy/Swing/RunnableProc.html#M000003">new (Profligacy::Swing::RunnableProc)</a><br />
|
41
40
|
<a href="classes/Profligacy/LELNameScanner.html#M000025">new (Profligacy::LELNameScanner)</a><br />
|
41
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000014">new (Profligacy::LELGroupLayout)</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#M000004">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#M000010">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/lib/profligacy/lel.rb
CHANGED
@@ -182,6 +182,8 @@ module Profligacy
|
|
182
182
|
configure_interactions_for(child,@contents[child]) if @contents[child]
|
183
183
|
}
|
184
184
|
|
185
|
+
yield @container if block_given?
|
186
|
+
|
185
187
|
@container.pack if (prefs[:pack] && @container.respond_to?(:pack))
|
186
188
|
@container.visible = prefs[:visible] if @container.respond_to? :visible
|
187
189
|
@container
|
data/lib/profligacy/parser.jar
CHANGED
Binary file
|
data/lib/profligacy/swing.rb
CHANGED
@@ -90,6 +90,10 @@ module Profligacy
|
|
90
90
|
end
|
91
91
|
}
|
92
92
|
|
93
|
+
# yield to the caller so that they can configure more before
|
94
|
+
# we make it visible and pack it
|
95
|
+
yield @container if block_given?
|
96
|
+
|
93
97
|
# even though swing doesn't do this, we do
|
94
98
|
@container.pack if @container.respond_to? :pack
|
95
99
|
@container.visible = true if @container.respond_to? :visible
|
metadata
CHANGED
@@ -66,17 +66,17 @@ files:
|
|
66
66
|
- doc/rdoc/classes/Profligacy/Swing/Listeners.html
|
67
67
|
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.html
|
68
68
|
- doc/rdoc/classes/Profligacy/Swing/RunnableProc.src
|
69
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000003.html
|
70
|
-
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000004.html
|
71
69
|
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html
|
72
70
|
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html
|
73
71
|
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html
|
74
72
|
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html
|
75
73
|
- doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html
|
76
|
-
- doc/rdoc/classes/Profligacy/Swing/
|
77
|
-
- doc/rdoc/classes/Profligacy/Swing/
|
78
|
-
- doc/rdoc/classes/Profligacy/Swing/
|
79
|
-
- doc/rdoc/classes/Profligacy/Swing/
|
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
80
|
- doc/rdoc/files/COPYING.html
|
81
81
|
- doc/rdoc/files/LICENSE.html
|
82
82
|
- doc/rdoc/files/README.html
|
@@ -114,7 +114,7 @@ date: 2007-07-07 04:00:00 +00:00
|
|
114
114
|
require_paths:
|
115
115
|
- lib
|
116
116
|
version: !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: !str 0.4
|
118
118
|
test_files: []
|
119
119
|
bindir: bin
|
120
120
|
dependencies: []
|
@@ -1,20 +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>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>
|
@@ -1,18 +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>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>
|