profligacy 0.4-jruby → 0.4.1-jruby

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/Rakefile +3 -3
  2. data/examples/utu_main.rb +113 -0
  3. data/lib/profligacy/LELParser$LELEventListener.class +0 -0
  4. data/lib/profligacy/LELParser.class +0 -0
  5. data/lib/profligacy/lel.rb +17 -18
  6. data/lib/profligacy/parser.jar +0 -0
  7. data/lib/profligacy/swing-layout.jar +0 -0
  8. metadata +4 -61
  9. data/doc/rdoc/classes/Proc.html +0 -152
  10. data/doc/rdoc/classes/Proc.src/M000001.html +0 -18
  11. data/doc/rdoc/classes/Proc.src/M000002.html +0 -18
  12. data/doc/rdoc/classes/Profligacy.html +0 -117
  13. data/doc/rdoc/classes/Profligacy/LELGroupLayout.html +0 -296
  14. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000014.html +0 -28
  15. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000015.html +0 -18
  16. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000016.html +0 -19
  17. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000017.html +0 -23
  18. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000018.html +0 -27
  19. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000019.html +0 -19
  20. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000020.html +0 -23
  21. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000021.html +0 -18
  22. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000022.html +0 -18
  23. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000023.html +0 -18
  24. data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000024.html +0 -21
  25. data/doc/rdoc/classes/Profligacy/LELNameScanner.html +0 -189
  26. data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000025.html +0 -18
  27. data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000026.html +0 -18
  28. data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000027.html +0 -18
  29. data/doc/rdoc/classes/Profligacy/Swing.html +0 -118
  30. data/doc/rdoc/classes/Profligacy/Swing/Build.html +0 -268
  31. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html +0 -20
  32. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html +0 -18
  33. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html +0 -43
  34. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html +0 -18
  35. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html +0 -22
  36. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000010.html +0 -21
  37. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000011.html +0 -24
  38. data/doc/rdoc/classes/Profligacy/Swing/LEL.html +0 -169
  39. data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000012.html +0 -33
  40. data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000013.html +0 -38
  41. data/doc/rdoc/classes/Profligacy/Swing/Listeners.html +0 -123
  42. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.html +0 -161
  43. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000003.html +0 -18
  44. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000004.html +0 -18
  45. data/doc/rdoc/created.rid +0 -1
  46. data/doc/rdoc/files/COPYING.html +0 -168
  47. data/doc/rdoc/files/LICENSE.html +0 -168
  48. data/doc/rdoc/files/README.html +0 -127
  49. data/doc/rdoc/files/lib/profligacy/lel_rb.html +0 -108
  50. data/doc/rdoc/files/lib/profligacy/swing_rb.html +0 -108
  51. data/doc/rdoc/fr_class_index.html +0 -35
  52. data/doc/rdoc/fr_file_index.html +0 -31
  53. data/doc/rdoc/fr_method_index.html +0 -53
  54. data/doc/rdoc/index.html +0 -24
  55. data/doc/rdoc/rdoc-style.css +0 -208
@@ -1,43 +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>build (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 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>
42
- </body>
43
- </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>method_missing (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 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>
17
- </body>
18
- </html>
@@ -1,22 +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>each_or_one (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 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>
21
- </body>
22
- </html>
@@ -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 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>
@@ -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 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">&quot;add_#{type}_listener&quot;</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>
@@ -1,169 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Profligacy::Swing::LEL</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::Swing::LEL</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
- <a href="Build.html">
69
- Build
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000013">build</a>&nbsp;&nbsp;
92
- <a href="#M000012">new</a>&nbsp;&nbsp;
93
- </div>
94
- </div>
95
-
96
- </div>
97
-
98
-
99
- <!-- if includes -->
100
-
101
- <div id="section">
102
-
103
-
104
-
105
-
106
-
107
- <div id="attribute-list">
108
- <h3 class="section-bar">Attributes</h3>
109
-
110
- <div class="name-list">
111
- <table>
112
- <tr class="top-aligned-row context-row">
113
- <td class="context-item-name">prefs</td>
114
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
115
- <td class="context-item-desc"></td>
116
- </tr>
117
- </table>
118
- </div>
119
- </div>
120
-
121
-
122
-
123
- <!-- if method_list -->
124
- <div id="methods">
125
- <h3 class="section-bar">Public Class methods</h3>
126
-
127
- <div id="method-M000012" class="method-detail">
128
- <a name="M000012"></a>
129
-
130
- <div class="method-heading">
131
- <a href="LEL.src/M000012.html" target="Code" class="method-signature"
132
- onclick="popupCode('LEL.src/M000012.html');return false;">
133
- <span class="method-name">new</span><span class="method-args">(type, expr) {|@contents, @interactions| ...}</span>
134
- </a>
135
- </div>
136
-
137
- <div class="method-description">
138
- </div>
139
- </div>
140
-
141
- <h3 class="section-bar">Public Instance methods</h3>
142
-
143
- <div id="method-M000013" class="method-detail">
144
- <a name="M000013"></a>
145
-
146
- <div class="method-heading">
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
- </a>
151
- </div>
152
-
153
- <div class="method-description">
154
- </div>
155
- </div>
156
-
157
-
158
- </div>
159
-
160
-
161
- </div>
162
-
163
-
164
- <div id="validator-badges">
165
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
166
- </div>
167
-
168
- </body>
169
- </html>
@@ -1,33 +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::LEL)</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 149</span>
14
- 149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">expr</span>)
15
- 150:
16
- 151: <span class="ruby-ivar">@expr</span> = <span class="ruby-identifier">expr</span>
17
- 152: <span class="ruby-ivar">@container_class</span> = <span class="ruby-identifier">type</span>
18
- 153: <span class="ruby-ivar">@parser</span> = <span class="ruby-constant">LELParser</span>.<span class="ruby-identifier">new</span>
19
- 154: <span class="ruby-identifier">names</span> = <span class="ruby-constant">LELNameScanner</span>.<span class="ruby-identifier">new</span>
20
- 155: <span class="ruby-ivar">@prefs</span> = {
21
- 156: <span class="ruby-identifier">:auto_create_gaps</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>,
22
- 157: <span class="ruby-identifier">:auto_create_container_gaps</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>,
23
- 158: <span class="ruby-identifier">:honors_visibility</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>,
24
- 159: <span class="ruby-identifier">:pack</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>,
25
- 160: <span class="ruby-identifier">:visible</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>,
26
- 161: <span class="ruby-identifier">:args</span> =<span class="ruby-operator">&gt;</span> []
27
- 162: }
28
- 163: <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">names</span>)
29
- 164: <span class="ruby-identifier">setup_children_and_interactions</span>(<span class="ruby-identifier">names</span>.<span class="ruby-identifier">children</span>)
30
- 165: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@contents</span>, <span class="ruby-ivar">@interactions</span>
31
- 166: <span class="ruby-keyword kw">end</span></pre>
32
- </body>
33
- </html>
@@ -1,38 +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>build (Profligacy::Swing::LEL)</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 168</span>
14
- 168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span>(<span class="ruby-identifier">prefs</span>={})
15
- 169: <span class="ruby-identifier">prefs</span> = <span class="ruby-ivar">@prefs</span>.<span class="ruby-identifier">merge</span> <span class="ruby-identifier">prefs</span>
16
- 170:
17
- 171: <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">prefs</span>[<span class="ruby-identifier">:args</span>]))
18
- 172: <span class="ruby-identifier">pane</span> = <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:content_pane</span>) <span class="ruby-operator">?</span> <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">content_pane</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@container</span>
19
- 173: <span class="ruby-identifier">layout</span> = <span class="ruby-constant">GroupLayout</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">pane</span>
20
- 174: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">layout</span> = <span class="ruby-identifier">layout</span>
21
- 175: <span class="ruby-identifier">layout</span>.<span class="ruby-identifier">auto_create_gaps</span> = <span class="ruby-identifier">prefs</span>[<span class="ruby-identifier">:auto_create_gaps</span>]
22
- 176: <span class="ruby-identifier">layout</span>.<span class="ruby-identifier">auto_create_container_gaps</span> = <span class="ruby-identifier">prefs</span>[<span class="ruby-identifier">:auto_create_container_gaps</span>]
23
- 177: <span class="ruby-identifier">layout</span>.<span class="ruby-identifier">honors_visibility</span> = <span class="ruby-identifier">prefs</span>[<span class="ruby-identifier">:honors_visibility</span>]
24
- 178:
25
- 179: <span class="ruby-identifier">parse</span>(<span class="ruby-constant">LELGroupLayout</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">layout</span>, <span class="ruby-ivar">@contents</span>))
26
- 180:
27
- 181: <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>
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
- 183: }
30
- 184:
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">&amp;&amp;</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>
37
- </body>
38
- </html>
@@ -1,123 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: Profligacy::Swing::Listeners</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>Module</strong></td>
53
- <td class="class-name-in-header">Profligacy::Swing::Listeners</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/profligacy/swing_rb.html">
59
- lib/profligacy/swing.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
-
76
-
77
- </div>
78
-
79
-
80
- </div>
81
-
82
-
83
- <!-- if includes -->
84
-
85
- <div id="section">
86
-
87
-
88
- <div id="constants-list">
89
- <h3 class="section-bar">Constants</h3>
90
-
91
- <div class="name-list">
92
- <table summary="Constants">
93
- <tr class="top-aligned-row context-row">
94
- <td class="context-item-name">AWT_LISTENERS</td>
95
- <td>=</td>
96
- <td class="context-item-value">[&quot;Action&quot;,&quot;Adjustment&quot;,&quot;AWTEvent&quot;,&quot;Component&quot;,&quot;Container&quot;,&quot;Focus&quot;, &quot;HierarchyBounds&quot;,&quot;Hierarchy&quot;,&quot;InputMethod&quot;,&quot;Item&quot;,&quot;Key&quot;,&quot;Mouse&quot;, &quot;MouseMotion&quot;,&quot;MouseWheel&quot;,&quot;Text&quot;, &quot;WindowFocus&quot;,&quot;Window&quot;,&quot;WindowState&quot;,]</td>
97
- </tr>
98
- <tr class="top-aligned-row context-row">
99
- <td class="context-item-name">SWING_LISTENERS</td>
100
- <td>=</td>
101
- <td class="context-item-value">[ &quot;Ancestor&quot;, &quot;Caret&quot;, &quot;CellEditor&quot;, &quot;Change&quot;, &quot;Document&quot;, &quot;Hyperlink&quot;, &quot;InternalFrame&quot;, &quot;ListData&quot;, &quot;ListSelection&quot;, &quot;MenuDragMouse&quot;, &quot;MenuKey&quot;, &quot;Menu&quot;, &quot;MouseInput&quot;, &quot;PopupMenu&quot;, &quot;TableColumnModel&quot;, &quot;TableModel&quot;, &quot;TreeExpansion&quot;, &quot;TreeModel&quot;, &quot;TreeSelection&quot;, &quot;TreeWillExpand&quot;, &quot;UndoableEdit&quot;, ]</td>
102
- </tr>
103
- </table>
104
- </div>
105
- </div>
106
-
107
-
108
-
109
-
110
-
111
-
112
- <!-- if method_list -->
113
-
114
-
115
- </div>
116
-
117
-
118
- <div id="validator-badges">
119
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
120
- </div>
121
-
122
- </body>
123
- </html>