profligacy 0.2-jruby → 0.3-jruby
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +6 -4
- 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/LELGroupLayout.html +296 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000014.html +28 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000015.html +18 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000016.html +19 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000017.html +23 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000018.html +27 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000019.html +19 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000020.html +23 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000021.html +18 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000022.html +18 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000023.html +18 -0
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000024.html +21 -0
- data/doc/rdoc/classes/Profligacy/LELNameScanner.html +189 -0
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000025.html +18 -0
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000026.html +18 -0
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000027.html +18 -0
- data/doc/rdoc/classes/Profligacy/Swing/Build.html +30 -0
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000003.html +3 -6
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000004.html +4 -4
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html +25 -31
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html +4 -4
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html +8 -8
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000008.html +21 -0
- data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000009.html +24 -0
- data/doc/rdoc/classes/Profligacy/Swing/LEL.html +169 -0
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000010.html +33 -0
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/M000011.html +36 -0
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.html +10 -10
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000008.html → M000012.html} +0 -0
- data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/{M000009.html → M000013.html} +0 -0
- data/doc/rdoc/classes/Profligacy/Swing.html +5 -0
- data/doc/rdoc/classes/Profligacy.html +6 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/lib/profligacy/lel_rb.html +101 -0
- data/doc/rdoc/files/lib/profligacy/swing_rb.html +1 -1
- data/doc/rdoc/fr_class_index.html +3 -0
- data/doc/rdoc/fr_file_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +20 -2
- data/examples/layout_test.rb +25 -0
- data/examples/swing8_lel.rb +63 -0
- data/lib/profligacy/LELParser$LELEventListener.class +0 -0
- data/lib/profligacy/LELParser.class +0 -0
- data/lib/profligacy/LELParser.java +342 -0
- data/lib/profligacy/LELParser.rl +84 -0
- data/lib/profligacy/lel.rb +199 -0
- data/lib/profligacy/swing.rb +18 -11
- metadata +38 -6
@@ -0,0 +1,169 @@
|
|
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="#M000011">build</a>
|
92
|
+
<a href="#M000010">new</a>
|
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"> [R] </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-M000010" class="method-detail">
|
128
|
+
<a name="M000010"></a>
|
129
|
+
|
130
|
+
<div class="method-heading">
|
131
|
+
<a href="LEL.src/M000010.html" target="Code" class="method-signature"
|
132
|
+
onclick="popupCode('LEL.src/M000010.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-M000011" class="method-detail">
|
144
|
+
<a name="M000011"></a>
|
145
|
+
|
146
|
+
<div class="method-heading">
|
147
|
+
<a href="LEL.src/M000011.html" target="Code" class="method-signature"
|
148
|
+
onclick="popupCode('LEL.src/M000011.html');return false;">
|
149
|
+
<span class="method-name">build</span><span class="method-args">(prefs={})</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>
|
@@ -0,0 +1,33 @@
|
|
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 148</span>
|
14
|
+
148: <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
|
+
149:
|
16
|
+
150: <span class="ruby-ivar">@expr</span> = <span class="ruby-identifier">expr</span>
|
17
|
+
151: <span class="ruby-ivar">@container_class</span> = <span class="ruby-identifier">type</span>
|
18
|
+
152: <span class="ruby-ivar">@parser</span> = <span class="ruby-constant">LELParser</span>.<span class="ruby-identifier">new</span>
|
19
|
+
153: <span class="ruby-identifier">names</span> = <span class="ruby-constant">LELNameScanner</span>.<span class="ruby-identifier">new</span>
|
20
|
+
154: <span class="ruby-ivar">@prefs</span> = {
|
21
|
+
155: <span class="ruby-identifier">:auto_create_gaps</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>,
|
22
|
+
156: <span class="ruby-identifier">:auto_create_container_gaps</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>,
|
23
|
+
157: <span class="ruby-identifier">:honors_visibility</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>,
|
24
|
+
158: <span class="ruby-identifier">:pack</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>,
|
25
|
+
159: <span class="ruby-identifier">:visible</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>,
|
26
|
+
160: <span class="ruby-identifier">:args</span> =<span class="ruby-operator">></span> []
|
27
|
+
161: }
|
28
|
+
162: <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">names</span>)
|
29
|
+
163: <span class="ruby-identifier">setup_children_and_interactions</span>(<span class="ruby-identifier">names</span>.<span class="ruby-identifier">children</span>)
|
30
|
+
164: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@contents</span>, <span class="ruby-ivar">@interactions</span>
|
31
|
+
165: <span class="ruby-keyword kw">end</span></pre>
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
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 167</span>
|
14
|
+
167: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span>(<span class="ruby-identifier">prefs</span>={})
|
15
|
+
168: <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
|
+
169:
|
17
|
+
170: <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
|
+
171: <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
|
+
172: <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
|
+
173: <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">layout</span> = <span class="ruby-identifier">layout</span>
|
21
|
+
174: <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
|
+
175: <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
|
+
176: <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
|
+
177:
|
25
|
+
178: <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
|
+
179:
|
27
|
+
180: <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
|
+
181: <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
|
+
182: }
|
30
|
+
183:
|
31
|
+
184: <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>))
|
32
|
+
185: <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>
|
33
|
+
186: <span class="ruby-ivar">@container</span>
|
34
|
+
187: <span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</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="#M000012">new</a>
|
90
|
+
<a href="#M000013">run</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -116,12 +116,12 @@
|
|
116
116
|
<div id="methods">
|
117
117
|
<h3 class="section-bar">Public Class methods</h3>
|
118
118
|
|
119
|
-
<div id="method-
|
120
|
-
<a name="
|
119
|
+
<div id="method-M000012" class="method-detail">
|
120
|
+
<a name="M000012"></a>
|
121
121
|
|
122
122
|
<div class="method-heading">
|
123
|
-
<a href="RunnableProc.src/
|
124
|
-
onclick="popupCode('RunnableProc.src/
|
123
|
+
<a href="RunnableProc.src/M000012.html" target="Code" class="method-signature"
|
124
|
+
onclick="popupCode('RunnableProc.src/M000012.html');return false;">
|
125
125
|
<span class="method-name">new</span><span class="method-args">(&block)</span>
|
126
126
|
</a>
|
127
127
|
</div>
|
@@ -132,12 +132,12 @@
|
|
132
132
|
|
133
133
|
<h3 class="section-bar">Public Instance methods</h3>
|
134
134
|
|
135
|
-
<div id="method-
|
136
|
-
<a name="
|
135
|
+
<div id="method-M000013" class="method-detail">
|
136
|
+
<a name="M000013"></a>
|
137
137
|
|
138
138
|
<div class="method-heading">
|
139
|
-
<a href="RunnableProc.src/
|
140
|
-
onclick="popupCode('RunnableProc.src/
|
139
|
+
<a href="RunnableProc.src/M000013.html" target="Code" class="method-signature"
|
140
|
+
onclick="popupCode('RunnableProc.src/M000013.html');return false;">
|
141
141
|
<span class="method-name">run</span><span class="method-args">()</span>
|
142
142
|
</a>
|
143
143
|
</div>
|
File without changes
|
File without changes
|
@@ -55,6 +55,10 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
+
<a href="../../files/lib/profligacy/lel_rb.html">
|
59
|
+
lib/profligacy/lel.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
58
62
|
<a href="../../files/lib/profligacy/swing_rb.html">
|
59
63
|
lib/profligacy/swing.rb
|
60
64
|
</a>
|
@@ -89,6 +93,7 @@
|
|
89
93
|
|
90
94
|
Module <a href="Swing/Listeners.html" class="link">Profligacy::Swing::Listeners</a><br />
|
91
95
|
Class <a href="Swing/Build.html" class="link">Profligacy::Swing::Build</a><br />
|
96
|
+
Class <a href="Swing/LEL.html" class="link">Profligacy::Swing::LEL</a><br />
|
92
97
|
Class <a href="Swing/RunnableProc.html" class="link">Profligacy::Swing::RunnableProc</a><br />
|
93
98
|
|
94
99
|
</div>
|
@@ -55,6 +55,10 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
+
<a href="../files/lib/profligacy/lel_rb.html">
|
59
|
+
lib/profligacy/lel.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
58
62
|
<a href="../files/lib/profligacy/swing_rb.html">
|
59
63
|
lib/profligacy/swing.rb
|
60
64
|
</a>
|
@@ -88,6 +92,8 @@
|
|
88
92
|
<h3 class="section-bar">Classes and Modules</h3>
|
89
93
|
|
90
94
|
Module <a href="Profligacy/Swing.html" class="link">Profligacy::Swing</a><br />
|
95
|
+
Class <a href="Profligacy/LELGroupLayout.html" class="link">Profligacy::LELGroupLayout</a><br />
|
96
|
+
Class <a href="Profligacy/LELNameScanner.html" class="link">Profligacy::LELNameScanner</a><br />
|
91
97
|
|
92
98
|
</div>
|
93
99
|
|
data/doc/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Fri Jul 06 01:38:23 EDT 2007
|
@@ -0,0 +1,101 @@
|
|
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>File: lel.rb</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="fileHeader">
|
50
|
+
<h1>lel.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/profligacy/lel.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Jul 06 01:09:43 EDT 2007</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -22,8 +22,11 @@
|
|
22
22
|
<div id="index-entries">
|
23
23
|
<a href="classes/Proc.html">Proc</a><br />
|
24
24
|
<a href="classes/Profligacy.html">Profligacy</a><br />
|
25
|
+
<a href="classes/Profligacy/LELGroupLayout.html">Profligacy::LELGroupLayout</a><br />
|
26
|
+
<a href="classes/Profligacy/LELNameScanner.html">Profligacy::LELNameScanner</a><br />
|
25
27
|
<a href="classes/Profligacy/Swing.html">Profligacy::Swing</a><br />
|
26
28
|
<a href="classes/Profligacy/Swing/Build.html">Profligacy::Swing::Build</a><br />
|
29
|
+
<a href="classes/Profligacy/Swing/LEL.html">Profligacy::Swing::LEL</a><br />
|
27
30
|
<a href="classes/Profligacy/Swing/Listeners.html">Profligacy::Swing::Listeners</a><br />
|
28
31
|
<a href="classes/Profligacy/Swing/RunnableProc.html">Profligacy::Swing::RunnableProc</a><br />
|
29
32
|
</div>
|
data/doc/rdoc/fr_file_index.html
CHANGED
@@ -23,6 +23,7 @@
|
|
23
23
|
<a href="files/COPYING.html">COPYING</a><br />
|
24
24
|
<a href="files/LICENSE.html">LICENSE</a><br />
|
25
25
|
<a href="files/README.html">README</a><br />
|
26
|
+
<a href="files/lib/profligacy/lel_rb.html">lib/profligacy/lel.rb</a><br />
|
26
27
|
<a href="files/lib/profligacy/swing_rb.html">lib/profligacy/swing.rb</a><br />
|
27
28
|
</div>
|
28
29
|
</div>
|
@@ -20,15 +20,33 @@
|
|
20
20
|
<div id="index">
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
22
22
|
<div id="index-entries">
|
23
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000020">align (Profligacy::LELGroupLayout)</a><br />
|
23
24
|
<a href="classes/Profligacy/Swing/Build.html#M000005">build (Profligacy::Swing::Build)</a><br />
|
25
|
+
<a href="classes/Profligacy/Swing/LEL.html#M000011">build (Profligacy::Swing::LEL)</a><br />
|
26
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000015">col (Profligacy::LELGroupLayout)</a><br />
|
27
|
+
<a href="classes/Profligacy/Swing/Build.html#M000009">configure_interactions_for (Profligacy::Swing::Build)</a><br />
|
24
28
|
<a href="classes/Profligacy/Swing/Build.html#M000007">each_or_one (Profligacy::Swing::Build)</a><br />
|
29
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000023">expand (Profligacy::LELGroupLayout)</a><br />
|
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
|
+
<a href="classes/Profligacy/LELNameScanner.html#M000026">id (Profligacy::LELNameScanner)</a><br />
|
25
33
|
<a href="classes/Profligacy/Swing/Build.html#M000004">interactions (Profligacy::Swing::Build)</a><br />
|
34
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000016">ltab (Profligacy::LELGroupLayout)</a><br />
|
26
35
|
<a href="classes/Profligacy/Swing/Build.html#M000006">method_missing (Profligacy::Swing::Build)</a><br />
|
36
|
+
<a href="classes/Profligacy/LELNameScanner.html#M000027">method_missing (Profligacy::LELNameScanner)</a><br />
|
27
37
|
<a href="classes/Profligacy/Swing/Build.html#M000003">new (Profligacy::Swing::Build)</a><br />
|
28
|
-
<a href="classes/Profligacy/Swing/
|
29
|
-
<a href="classes/Profligacy/Swing/RunnableProc.html#
|
38
|
+
<a href="classes/Profligacy/Swing/LEL.html#M000010">new (Profligacy::Swing::LEL)</a><br />
|
39
|
+
<a href="classes/Profligacy/Swing/RunnableProc.html#M000012">new (Profligacy::Swing::RunnableProc)</a><br />
|
40
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000014">new (Profligacy::LELGroupLayout)</a><br />
|
41
|
+
<a href="classes/Profligacy/LELNameScanner.html#M000025">new (Profligacy::LELNameScanner)</a><br />
|
42
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000019">row (Profligacy::LELGroupLayout)</a><br />
|
43
|
+
<a href="classes/Profligacy/Swing/RunnableProc.html#M000013">run (Profligacy::Swing::RunnableProc)</a><br />
|
44
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000022">setheight (Profligacy::LELGroupLayout)</a><br />
|
45
|
+
<a href="classes/Profligacy/Swing/Build.html#M000008">setup_children_and_interactions (Profligacy::Swing::Build)</a><br />
|
46
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000021">setwidth (Profligacy::LELGroupLayout)</a><br />
|
30
47
|
<a href="classes/Proc.html#M000001">to_listener (Proc)</a><br />
|
31
48
|
<a href="classes/Proc.html#M000002">to_runnable (Proc)</a><br />
|
49
|
+
<a href="classes/Profligacy/LELGroupLayout.html#M000017">valign (Profligacy::LELGroupLayout)</a><br />
|
32
50
|
</div>
|
33
51
|
</div>
|
34
52
|
</body>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'profligacy/swing'
|
2
|
+
require 'profligacy/lel'
|
3
|
+
|
4
|
+
module Test
|
5
|
+
include_package 'javax.swing'
|
6
|
+
include Profligacy
|
7
|
+
|
8
|
+
ui = Swing::LEL.new(JFrame,
|
9
|
+
"[label_1|label3][(300,300)*text1|(150)people][<label2|_][message|buttons]") do |c,i|
|
10
|
+
c.label_1 = JLabel.new "The chat:"
|
11
|
+
c.label2 = JLabel.new "What you're saying:"
|
12
|
+
c.label3 = JLabel.new "The people:"
|
13
|
+
c.text1 = JTextArea.new
|
14
|
+
c.people = JComboBox.new
|
15
|
+
c.message = JTextArea.new
|
16
|
+
|
17
|
+
c.buttons = Swing::LEL.new(JPanel, "[send|hate|quit]") do |c,i|
|
18
|
+
c.send = JButton.new "Send"
|
19
|
+
c.hate = JButton.new "Hate"
|
20
|
+
c.quit = JButton.new "Quit"
|
21
|
+
end.build :auto_create_container_gaps => false
|
22
|
+
end
|
23
|
+
|
24
|
+
ui.build(:args => "Simple LEL Example")
|
25
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'profligacy/swing'
|
2
|
+
require 'profligacy/lel'
|
3
|
+
|
4
|
+
class PhoneBookDemo
|
5
|
+
include_package 'javax.swing'
|
6
|
+
include_package 'java.awt'
|
7
|
+
include_package 'javax.swing.border'
|
8
|
+
include Profligacy
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
@search_style = :exact
|
12
|
+
|
13
|
+
layout = "[>lab_name][*name][>lab_number][*number][*lab_options][<exact][<starts][<ends]"
|
14
|
+
|
15
|
+
@ui = Swing::LEL.new(JFrame, layout) do |c,i|
|
16
|
+
c.lab_name = JLabel.new "Name"
|
17
|
+
c.lab_number = JLabel.new "Number"
|
18
|
+
c.lab_options = JLabel.new "Search Options"
|
19
|
+
c.name = JTextField.new 10
|
20
|
+
c.number = JTextField.new 10
|
21
|
+
|
22
|
+
c.exact = JRadioButton.new("Exact Match", true)
|
23
|
+
c.starts = JRadioButton.new("Starts With")
|
24
|
+
c.ends = JRadioButton.new("Ends With")
|
25
|
+
|
26
|
+
b = ButtonGroup.new
|
27
|
+
[c.exact, c.starts, c.ends].each {|x| b.add(x) }
|
28
|
+
|
29
|
+
i.name = {:action => proc {|t,e| @ui.number.text = find(@names, e.source.text) } }
|
30
|
+
i.number = {:action => proc {|t,e| @ui.name.text = find(@numbers, e.source.text) } }
|
31
|
+
i.exact = {:action => proc {|t,e| @search_style = :exact } }
|
32
|
+
i.starts = {:action => proc {|t,e| @search_style = :starts } }
|
33
|
+
i.ends = {:action => proc {|t,e| @search_style = :ends } }
|
34
|
+
end
|
35
|
+
|
36
|
+
@ui.build(:args => "Phone Book")
|
37
|
+
|
38
|
+
@names = {
|
39
|
+
"Zed A. Shaw" => "917-555-5555",
|
40
|
+
"Frank Blank" => "212-554-5555"
|
41
|
+
}
|
42
|
+
|
43
|
+
@numbers = {
|
44
|
+
"917-555-5555" => "Zed A. Shaw",
|
45
|
+
"212-554-5555" => "Frank Blank"
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
|
50
|
+
protected
|
51
|
+
def find(inside, text)
|
52
|
+
results = case @search_style
|
53
|
+
when :exact; inside.keys.grep /^#{text}$/
|
54
|
+
when :starts; inside.keys.grep /^#{text}/
|
55
|
+
when :ends; inside.keys.grep /#{text}$/
|
56
|
+
end
|
57
|
+
|
58
|
+
inside[results[0]] || ""
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
|
63
|
+
SwingUtilities.invoke_later proc { PhoneBookDemo.new }.to_runnable
|
Binary file
|
Binary file
|