profligacy 0.2-jruby → 0.3-jruby

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/Rakefile +6 -4
  2. data/doc/rdoc/classes/Proc.src/M000001.html +4 -4
  3. data/doc/rdoc/classes/Proc.src/M000002.html +4 -4
  4. data/doc/rdoc/classes/Profligacy/LELGroupLayout.html +296 -0
  5. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000014.html +28 -0
  6. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000015.html +18 -0
  7. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000016.html +19 -0
  8. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000017.html +23 -0
  9. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000018.html +27 -0
  10. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000019.html +19 -0
  11. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000020.html +23 -0
  12. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000021.html +18 -0
  13. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000022.html +18 -0
  14. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000023.html +18 -0
  15. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000024.html +21 -0
  16. data/doc/rdoc/classes/Profligacy/LELNameScanner.html +189 -0
  17. data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000025.html +18 -0
  18. data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000026.html +18 -0
  19. data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000027.html +18 -0
  20. data/doc/rdoc/classes/Profligacy/Swing/Build.html +30 -0
  21. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000003.html +3 -6
  22. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000004.html +4 -4
  23. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html +25 -31
  24. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html +4 -4
  25. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html +8 -8
  26. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html +21 -0
  27. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html +24 -0
  28. data/doc/rdoc/classes/Profligacy/Swing/LEL.html +169 -0
  29. data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000010.html +33 -0
  30. data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000011.html +36 -0
  31. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.html +10 -10
  32. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000008.html → M000012.html} +0 -0
  33. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000009.html → M000013.html} +0 -0
  34. data/doc/rdoc/classes/Profligacy/Swing.html +5 -0
  35. data/doc/rdoc/classes/Profligacy.html +6 -0
  36. data/doc/rdoc/created.rid +1 -1
  37. data/doc/rdoc/files/lib/profligacy/lel_rb.html +101 -0
  38. data/doc/rdoc/files/lib/profligacy/swing_rb.html +1 -1
  39. data/doc/rdoc/fr_class_index.html +3 -0
  40. data/doc/rdoc/fr_file_index.html +1 -0
  41. data/doc/rdoc/fr_method_index.html +20 -2
  42. data/examples/layout_test.rb +25 -0
  43. data/examples/swing8_lel.rb +63 -0
  44. data/lib/profligacy/LELParser$LELEventListener.class +0 -0
  45. data/lib/profligacy/LELParser.class +0 -0
  46. data/lib/profligacy/LELParser.java +342 -0
  47. data/lib/profligacy/LELParser.rl +84 -0
  48. data/lib/profligacy/lel.rb +199 -0
  49. data/lib/profligacy/swing.rb +18 -11
  50. metadata +38 -6
data/Rakefile CHANGED
@@ -8,22 +8,24 @@ require 'fileutils'
8
8
  include FileUtils
9
9
 
10
10
  setup_tests
11
- setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config", "ext/**/Makefile"]
11
+ setup_clean ["pkg", "lib/*.bundle", "lib/profligacy/*.class", "*.gem", ".config"]
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.2"
18
+ version="0.3"
19
19
  name="profligacy"
20
20
 
21
21
  setup_gem(name, version) do |spec|
22
- spec.summary = "Profligacy is a Swing helper for JRuby."
22
+ spec.summary = "Profligacy The Swing Reducer."
23
23
  spec.description = spec.summary
24
24
  spec.author="Zed A. Shaw"
25
25
  spec.files += Dir.glob("resources/**/*")
26
- spec.files += Dir.glob("ext/**/*.rl")
26
+ spec.files += Dir.glob("lib/**/*.rl")
27
+ spec.files += Dir.glob("lib/**/*.java")
28
+ spec.files += Dir.glob("lib/**/*.class")
27
29
  spec.platform = "jruby"
28
30
  end
29
31
 
@@ -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 132</span>
14
- 132: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_listener</span>(<span class="ruby-identifier">action</span>)
15
- 133: <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">&quot;#{action.to_s.capitalize}ListenerProc&quot;</span>).<span class="ruby-identifier">new</span> <span class="ruby-operator">&amp;</span><span class="ruby-keyword kw">self</span>
16
- 134: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 139</span>
14
+ 139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_listener</span>(<span class="ruby-identifier">action</span>)
15
+ 140: <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">&quot;#{action.to_s.capitalize}ListenerProc&quot;</span>).<span class="ruby-identifier">new</span> <span class="ruby-operator">&amp;</span><span class="ruby-keyword kw">self</span>
16
+ 141: <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 136</span>
14
- 136: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_runnable</span>
15
- 137: <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">&amp;</span><span class="ruby-keyword kw">self</span>
16
- 138: <span class="ruby-keyword kw">end</span></pre>
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_runnable</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">RunnableProc</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">&amp;</span><span class="ruby-keyword kw">self</span>
16
+ 145: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -0,0 +1,296 @@
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: Profligacy::LELGroupLayout</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">Profligacy::LELGroupLayout</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/profligacy/lel_rb.html">
59
+ lib/profligacy/lel.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="#M000020">align</a>&nbsp;&nbsp;
90
+ <a href="#M000015">col</a>&nbsp;&nbsp;
91
+ <a href="#M000023">expand</a>&nbsp;&nbsp;
92
+ <a href="#M000024">finished</a>&nbsp;&nbsp;
93
+ <a href="#M000018">id</a>&nbsp;&nbsp;
94
+ <a href="#M000016">ltab</a>&nbsp;&nbsp;
95
+ <a href="#M000014">new</a>&nbsp;&nbsp;
96
+ <a href="#M000019">row</a>&nbsp;&nbsp;
97
+ <a href="#M000022">setheight</a>&nbsp;&nbsp;
98
+ <a href="#M000021">setwidth</a>&nbsp;&nbsp;
99
+ <a href="#M000017">valign</a>&nbsp;&nbsp;
100
+ </div>
101
+ </div>
102
+
103
+ </div>
104
+
105
+
106
+ <!-- if includes -->
107
+ <div id="includes">
108
+ <h3 class="section-bar">Included Modules</h3>
109
+
110
+ <div id="includes-list">
111
+ <span class="include-name">Profligacy::LELParser::LELEventListener</span>
112
+ </div>
113
+ </div>
114
+
115
+ <div id="section">
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ <!-- if method_list -->
125
+ <div id="methods">
126
+ <h3 class="section-bar">Public Class methods</h3>
127
+
128
+ <div id="method-M000014" class="method-detail">
129
+ <a name="M000014"></a>
130
+
131
+ <div class="method-heading">
132
+ <a href="LELGroupLayout.src/M000014.html" target="Code" class="method-signature"
133
+ onclick="popupCode('LELGroupLayout.src/M000014.html');return false;">
134
+ <span class="method-name">new</span><span class="method-args">(layout, components)</span>
135
+ </a>
136
+ </div>
137
+
138
+ <div class="method-description">
139
+ </div>
140
+ </div>
141
+
142
+ <h3 class="section-bar">Public Instance methods</h3>
143
+
144
+ <div id="method-M000020" class="method-detail">
145
+ <a name="M000020"></a>
146
+
147
+ <div class="method-heading">
148
+ <a href="LELGroupLayout.src/M000020.html" target="Code" class="method-signature"
149
+ onclick="popupCode('LELGroupLayout.src/M000020.html');return false;">
150
+ <span class="method-name">align</span><span class="method-args">(direction)</span>
151
+ </a>
152
+ </div>
153
+
154
+ <div class="method-description">
155
+ </div>
156
+ </div>
157
+
158
+ <div id="method-M000015" class="method-detail">
159
+ <a name="M000015"></a>
160
+
161
+ <div class="method-heading">
162
+ <a href="LELGroupLayout.src/M000015.html" target="Code" class="method-signature"
163
+ onclick="popupCode('LELGroupLayout.src/M000015.html');return false;">
164
+ <span class="method-name">col</span><span class="method-args">()</span>
165
+ </a>
166
+ </div>
167
+
168
+ <div class="method-description">
169
+ </div>
170
+ </div>
171
+
172
+ <div id="method-M000023" class="method-detail">
173
+ <a name="M000023"></a>
174
+
175
+ <div class="method-heading">
176
+ <a href="LELGroupLayout.src/M000023.html" target="Code" class="method-signature"
177
+ onclick="popupCode('LELGroupLayout.src/M000023.html');return false;">
178
+ <span class="method-name">expand</span><span class="method-args">()</span>
179
+ </a>
180
+ </div>
181
+
182
+ <div class="method-description">
183
+ </div>
184
+ </div>
185
+
186
+ <div id="method-M000024" class="method-detail">
187
+ <a name="M000024"></a>
188
+
189
+ <div class="method-heading">
190
+ <a href="LELGroupLayout.src/M000024.html" target="Code" class="method-signature"
191
+ onclick="popupCode('LELGroupLayout.src/M000024.html');return false;">
192
+ <span class="method-name">finished</span><span class="method-args">(error)</span>
193
+ </a>
194
+ </div>
195
+
196
+ <div class="method-description">
197
+ </div>
198
+ </div>
199
+
200
+ <div id="method-M000018" class="method-detail">
201
+ <a name="M000018"></a>
202
+
203
+ <div class="method-heading">
204
+ <a href="LELGroupLayout.src/M000018.html" target="Code" class="method-signature"
205
+ onclick="popupCode('LELGroupLayout.src/M000018.html');return false;">
206
+ <span class="method-name">id</span><span class="method-args">(name)</span>
207
+ </a>
208
+ </div>
209
+
210
+ <div class="method-description">
211
+ </div>
212
+ </div>
213
+
214
+ <div id="method-M000016" class="method-detail">
215
+ <a name="M000016"></a>
216
+
217
+ <div class="method-heading">
218
+ <a href="LELGroupLayout.src/M000016.html" target="Code" class="method-signature"
219
+ onclick="popupCode('LELGroupLayout.src/M000016.html');return false;">
220
+ <span class="method-name">ltab</span><span class="method-args">()</span>
221
+ </a>
222
+ </div>
223
+
224
+ <div class="method-description">
225
+ </div>
226
+ </div>
227
+
228
+ <div id="method-M000019" class="method-detail">
229
+ <a name="M000019"></a>
230
+
231
+ <div class="method-heading">
232
+ <a href="LELGroupLayout.src/M000019.html" target="Code" class="method-signature"
233
+ onclick="popupCode('LELGroupLayout.src/M000019.html');return false;">
234
+ <span class="method-name">row</span><span class="method-args">()</span>
235
+ </a>
236
+ </div>
237
+
238
+ <div class="method-description">
239
+ </div>
240
+ </div>
241
+
242
+ <div id="method-M000022" class="method-detail">
243
+ <a name="M000022"></a>
244
+
245
+ <div class="method-heading">
246
+ <a href="LELGroupLayout.src/M000022.html" target="Code" class="method-signature"
247
+ onclick="popupCode('LELGroupLayout.src/M000022.html');return false;">
248
+ <span class="method-name">setheight</span><span class="method-args">(height)</span>
249
+ </a>
250
+ </div>
251
+
252
+ <div class="method-description">
253
+ </div>
254
+ </div>
255
+
256
+ <div id="method-M000021" class="method-detail">
257
+ <a name="M000021"></a>
258
+
259
+ <div class="method-heading">
260
+ <a href="LELGroupLayout.src/M000021.html" target="Code" class="method-signature"
261
+ onclick="popupCode('LELGroupLayout.src/M000021.html');return false;">
262
+ <span class="method-name">setwidth</span><span class="method-args">(width)</span>
263
+ </a>
264
+ </div>
265
+
266
+ <div class="method-description">
267
+ </div>
268
+ </div>
269
+
270
+ <div id="method-M000017" class="method-detail">
271
+ <a name="M000017"></a>
272
+
273
+ <div class="method-heading">
274
+ <a href="LELGroupLayout.src/M000017.html" target="Code" class="method-signature"
275
+ onclick="popupCode('LELGroupLayout.src/M000017.html');return false;">
276
+ <span class="method-name">valign</span><span class="method-args">(dir)</span>
277
+ </a>
278
+ </div>
279
+
280
+ <div class="method-description">
281
+ </div>
282
+ </div>
283
+
284
+
285
+ </div>
286
+
287
+
288
+ </div>
289
+
290
+
291
+ <div id="validator-badges">
292
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
293
+ </div>
294
+
295
+ </body>
296
+ </html>
@@ -0,0 +1,28 @@
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::LELGroupLayout)</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/lel.rb, line 29</span>
14
+ 29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">layout</span>, <span class="ruby-identifier">components</span>)
15
+ 30: <span class="ruby-ivar">@layout</span> = <span class="ruby-identifier">layout</span>
16
+ 31: <span class="ruby-ivar">@hgroup</span> = <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">createSequentialGroup</span>
17
+ 32: <span class="ruby-ivar">@vgroup</span> = <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">createSequentialGroup</span>
18
+ 33: <span class="ruby-ivar">@vertical</span> = <span class="ruby-keyword kw">nil</span>
19
+ 34: <span class="ruby-ivar">@horizontals</span> = []
20
+ 35: <span class="ruby-ivar">@components</span> = <span class="ruby-identifier">components</span>
21
+ 36:
22
+ 37: <span class="ruby-identifier">alignments_reset</span>
23
+ 38: <span class="ruby-identifier">widths_reset</span>
24
+ 39: <span class="ruby-identifier">heights_reset</span>
25
+ 40: <span class="ruby-identifier">horizontals_reset</span>
26
+ 41: <span class="ruby-keyword kw">end</span></pre>
27
+ </body>
28
+ </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>col (Profligacy::LELGroupLayout)</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/lel.rb, line 43</span>
14
+ 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">col</span>
15
+ 44: <span class="ruby-identifier">horizontals_push</span>; <span class="ruby-identifier">alignments_reset</span> ; <span class="ruby-identifier">widths_reset</span>
16
+ 45: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,19 @@
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>ltab (Profligacy::LELGroupLayout)</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/lel.rb, line 47</span>
14
+ 47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ltab</span>
15
+ 48: <span class="ruby-identifier">horizontals_reset</span>
16
+ 49: <span class="ruby-ivar">@vertical</span> = <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">createParallelGroup</span>
17
+ 50: <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,23 @@
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>valign (Profligacy::LELGroupLayout)</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/lel.rb, line 52</span>
14
+ 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valign</span>(<span class="ruby-identifier">dir</span>)
15
+ 53: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">dir</span>
16
+ 54: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;^&quot;</span> <span class="ruby-keyword kw">then</span> <span class="ruby-ivar">@valign</span> = <span class="ruby-constant">GroupLayout</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span><span class="ruby-operator">::</span><span class="ruby-constant">LEADING</span>
17
+ 55: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;.&quot;</span> <span class="ruby-keyword kw">then</span> <span class="ruby-ivar">@valign</span> = <span class="ruby-constant">GroupLayout</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span><span class="ruby-operator">::</span><span class="ruby-constant">TRAILING</span>
18
+ 56: <span class="ruby-keyword kw">else</span>
19
+ 57: <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Invalid Vertical Alignment: #{dir}&quot;</span>
20
+ 58: <span class="ruby-keyword kw">end</span>
21
+ 59: <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,27 @@
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>id (Profligacy::LELGroupLayout)</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/lel.rb, line 61</span>
14
+ 61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">id</span>(<span class="ruby-identifier">name</span>)
15
+ 62: <span class="ruby-identifier">h</span> = <span class="ruby-identifier">horizontals_cur</span>
16
+ 63: <span class="ruby-identifier">component</span> = <span class="ruby-ivar">@components</span>[<span class="ruby-identifier">name</span>]
17
+ 64:
18
+ 65: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">component</span>
19
+ 66: <span class="ruby-comment cmt"># add it in</span>
20
+ 67: <span class="ruby-ivar">@vertical</span>.<span class="ruby-identifier">addComponent</span>(<span class="ruby-identifier">component</span>, <span class="ruby-ivar">@valign</span>, <span class="ruby-constant">GroupLayout</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_SIZE</span>, <span class="ruby-ivar">@height</span>, <span class="ruby-ivar">@max</span>)
21
+ 68: <span class="ruby-identifier">h</span>.<span class="ruby-identifier">addComponent</span>(<span class="ruby-identifier">component</span>, <span class="ruby-ivar">@halign</span>, <span class="ruby-constant">GroupLayout</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_SIZE</span>, <span class="ruby-ivar">@width</span>, <span class="ruby-ivar">@max</span>)
22
+ 69: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">&quot;_&quot;</span>
23
+ 70: <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Cell named '#{name}' does not have a component set during build.&quot;</span>
24
+ 71: <span class="ruby-keyword kw">end</span>
25
+ 72: <span class="ruby-keyword kw">end</span></pre>
26
+ </body>
27
+ </html>
@@ -0,0 +1,19 @@
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>row (Profligacy::LELGroupLayout)</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/lel.rb, line 74</span>
14
+ 74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">row</span>
15
+ 75: <span class="ruby-ivar">@vgroup</span>.<span class="ruby-identifier">addGroup</span>(<span class="ruby-ivar">@vertical</span>);
16
+ 76: <span class="ruby-identifier">alignments_reset</span> ; <span class="ruby-identifier">widths_reset</span> ; <span class="ruby-identifier">heights_reset</span>
17
+ 77: <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,23 @@
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>align (Profligacy::LELGroupLayout)</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/lel.rb, line 79</span>
14
+ 79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>)
15
+ 80: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">direction</span>
16
+ 81: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;&lt;&quot;</span> <span class="ruby-keyword kw">then</span> <span class="ruby-ivar">@halign</span> = <span class="ruby-constant">GroupLayout</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span><span class="ruby-operator">::</span><span class="ruby-constant">LEADING</span>
17
+ 82: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;&gt;&quot;</span> <span class="ruby-keyword kw">then</span> <span class="ruby-ivar">@halign</span> = <span class="ruby-constant">GroupLayout</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span><span class="ruby-operator">::</span><span class="ruby-constant">TRAILING</span>
18
+ 83: <span class="ruby-keyword kw">else</span>
19
+ 84: <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Invalid Horizontal Alignment: #{direction}&quot;</span>
20
+ 85: <span class="ruby-keyword kw">end</span>
21
+ 86: <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </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>setwidth (Profligacy::LELGroupLayout)</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/lel.rb, line 88</span>
14
+ 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setwidth</span>(<span class="ruby-identifier">width</span>)
15
+ 89: <span class="ruby-ivar">@width</span> = <span class="ruby-identifier">width</span>
16
+ 90: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </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>setheight (Profligacy::LELGroupLayout)</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/lel.rb, line 92</span>
14
+ 92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setheight</span>(<span class="ruby-identifier">height</span>)
15
+ 93: <span class="ruby-ivar">@height</span> = <span class="ruby-identifier">height</span>
16
+ 94: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </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>expand (Profligacy::LELGroupLayout)</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/lel.rb, line 96</span>
14
+ 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand</span>
15
+ 97: <span class="ruby-ivar">@max</span> = <span class="ruby-constant">Short</span><span class="ruby-operator">::</span><span class="ruby-constant">MAX_VALUE</span>
16
+ 98: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </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>finished (Profligacy::LELGroupLayout)</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/lel.rb, line 100</span>
14
+ 100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finished</span>(<span class="ruby-identifier">error</span>)
15
+ 101: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">error</span>
16
+ 102: <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">setHorizontalGroup</span>(<span class="ruby-ivar">@hgroup</span>);
17
+ 103: <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">setVerticalGroup</span>(<span class="ruby-ivar">@vgroup</span>);
18
+ 104: <span class="ruby-keyword kw">end</span>
19
+ 105: <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>