profligacy 0.3-jruby → 0.3.1-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 +6 -2
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000014.html +14 -14
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000015.html +4 -4
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000016.html +5 -5
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000017.html +9 -9
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000018.html +13 -13
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000019.html +5 -5
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000020.html +9 -9
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000021.html +4 -4
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000022.html +4 -4
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000023.html +4 -4
- data/doc/rdoc/classes/Profligacy/LELGroupLayout.src/M000024.html +7 -7
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000025.html +4 -4
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000026.html +4 -4
- data/doc/rdoc/classes/Profligacy/LELNameScanner.src/M000027.html +4 -4
- data/doc/rdoc/classes/Profligacy/Swing/Build.html +35 -35
- 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 +26 -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 +10 -10
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/{M000010.html → M000012.html} +19 -19
- data/doc/rdoc/classes/Profligacy/Swing/LEL.src/{M000011.html → M000013.html} +22 -22
- 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 +8 -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 +1 -0
- data/lib/profligacy/parser.jar +0 -0
- metadata +61 -54
- 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
@@ -8,14 +8,14 @@ require 'fileutils'
|
|
8
8
|
include FileUtils
|
9
9
|
|
10
10
|
setup_tests
|
11
|
-
setup_clean ["pkg", "lib/*.bundle", "lib/profligacy/*.class", "*.gem", ".config"]
|
11
|
+
setup_clean ["pkg", "lib/*.bundle", "lib/profligacy/*.class", "*.gem", ".config", "lib/profligacy/*.jar"]
|
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.3"
|
18
|
+
version="0.3.1"
|
19
19
|
name="profligacy"
|
20
20
|
|
21
21
|
setup_gem(name, version) do |spec|
|
@@ -26,12 +26,16 @@ setup_gem(name, version) do |spec|
|
|
26
26
|
spec.files += Dir.glob("lib/**/*.rl")
|
27
27
|
spec.files += Dir.glob("lib/**/*.java")
|
28
28
|
spec.files += Dir.glob("lib/**/*.class")
|
29
|
+
spec.files += Dir.glob("lib/**/*.jar")
|
29
30
|
spec.platform = "jruby"
|
30
31
|
end
|
31
32
|
|
32
33
|
task :ragel do
|
33
34
|
sh %{/usr/local/bin/ragel -J lib/profligacy/LELParser.rl | /usr/local/bin/rlgen-java -o lib/profligacy/LELParser.java}
|
34
35
|
sh %{javac lib/profligacy/LELParser.java}
|
36
|
+
Dir.chdir("lib") do
|
37
|
+
sh %{jar -cf profligacy/parser.jar profligacy/*.class}
|
38
|
+
end
|
35
39
|
end
|
36
40
|
|
37
41
|
task :install => [:test, :package] do
|
@@ -10,19 +10,19 @@
|
|
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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 30</span>
|
14
|
+
30: <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
|
+
31: <span class="ruby-ivar">@layout</span> = <span class="ruby-identifier">layout</span>
|
16
|
+
32: <span class="ruby-ivar">@hgroup</span> = <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">createSequentialGroup</span>
|
17
|
+
33: <span class="ruby-ivar">@vgroup</span> = <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">createSequentialGroup</span>
|
18
|
+
34: <span class="ruby-ivar">@vertical</span> = <span class="ruby-keyword kw">nil</span>
|
19
|
+
35: <span class="ruby-ivar">@horizontals</span> = []
|
20
|
+
36: <span class="ruby-ivar">@components</span> = <span class="ruby-identifier">components</span>
|
21
|
+
37:
|
22
|
+
38: <span class="ruby-identifier">alignments_reset</span>
|
23
|
+
39: <span class="ruby-identifier">widths_reset</span>
|
24
|
+
40: <span class="ruby-identifier">heights_reset</span>
|
25
|
+
41: <span class="ruby-identifier">horizontals_reset</span>
|
26
|
+
42: <span class="ruby-keyword kw">end</span></pre>
|
27
27
|
</body>
|
28
28
|
</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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 44</span>
|
14
|
+
44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">col</span>
|
15
|
+
45: <span class="ruby-identifier">horizontals_push</span>; <span class="ruby-identifier">alignments_reset</span> ; <span class="ruby-identifier">widths_reset</span>
|
16
|
+
46: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,10 +10,10 @@
|
|
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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 48</span>
|
14
|
+
48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ltab</span>
|
15
|
+
49: <span class="ruby-identifier">horizontals_reset</span>
|
16
|
+
50: <span class="ruby-ivar">@vertical</span> = <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">createParallelGroup</span>
|
17
|
+
51: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -10,14 +10,14 @@
|
|
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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 53</span>
|
14
|
+
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valign</span>(<span class="ruby-identifier">dir</span>)
|
15
|
+
54: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">dir</span>
|
16
|
+
55: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"^"</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
|
+
56: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"."</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
|
+
57: <span class="ruby-keyword kw">else</span>
|
19
|
+
58: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Invalid Vertical Alignment: #{dir}"</span>
|
20
|
+
59: <span class="ruby-keyword kw">end</span>
|
21
|
+
60: <span class="ruby-keyword kw">end</span></pre>
|
22
22
|
</body>
|
23
23
|
</html>
|
@@ -10,18 +10,18 @@
|
|
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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 62</span>
|
14
|
+
62: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">id</span>(<span class="ruby-identifier">name</span>)
|
15
|
+
63: <span class="ruby-identifier">h</span> = <span class="ruby-identifier">horizontals_cur</span>
|
16
|
+
64: <span class="ruby-identifier">component</span> = <span class="ruby-ivar">@components</span>[<span class="ruby-identifier">name</span>]
|
17
|
+
65:
|
18
|
+
66: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">component</span>
|
19
|
+
67: <span class="ruby-comment cmt"># add it in</span>
|
20
|
+
68: <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
|
+
69: <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
|
+
70: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">"_"</span>
|
23
|
+
71: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Cell named '#{name}' does not have a component set during build."</span>
|
24
|
+
72: <span class="ruby-keyword kw">end</span>
|
25
|
+
73: <span class="ruby-keyword kw">end</span></pre>
|
26
26
|
</body>
|
27
27
|
</html>
|
@@ -10,10 +10,10 @@
|
|
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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 75</span>
|
14
|
+
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">row</span>
|
15
|
+
76: <span class="ruby-ivar">@vgroup</span>.<span class="ruby-identifier">addGroup</span>(<span class="ruby-ivar">@vertical</span>);
|
16
|
+
77: <span class="ruby-identifier">alignments_reset</span> ; <span class="ruby-identifier">widths_reset</span> ; <span class="ruby-identifier">heights_reset</span>
|
17
|
+
78: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -10,14 +10,14 @@
|
|
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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 80</span>
|
14
|
+
80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>)
|
15
|
+
81: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">direction</span>
|
16
|
+
82: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"<"</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
|
+
83: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">">"</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
|
+
84: <span class="ruby-keyword kw">else</span>
|
19
|
+
85: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Invalid Horizontal Alignment: #{direction}"</span>
|
20
|
+
86: <span class="ruby-keyword kw">end</span>
|
21
|
+
87: <span class="ruby-keyword kw">end</span></pre>
|
22
22
|
</body>
|
23
23
|
</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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 89</span>
|
14
|
+
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setwidth</span>(<span class="ruby-identifier">width</span>)
|
15
|
+
90: <span class="ruby-ivar">@width</span> = <span class="ruby-identifier">width</span>
|
16
|
+
91: <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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 93</span>
|
14
|
+
93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setheight</span>(<span class="ruby-identifier">height</span>)
|
15
|
+
94: <span class="ruby-ivar">@height</span> = <span class="ruby-identifier">height</span>
|
16
|
+
95: <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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 97</span>
|
14
|
+
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand</span>
|
15
|
+
98: <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
|
+
99: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,12 +10,12 @@
|
|
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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 101</span>
|
14
|
+
101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finished</span>(<span class="ruby-identifier">error</span>)
|
15
|
+
102: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">error</span>
|
16
|
+
103: <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">setHorizontalGroup</span>(<span class="ruby-ivar">@hgroup</span>);
|
17
|
+
104: <span class="ruby-ivar">@layout</span>.<span class="ruby-identifier">setVerticalGroup</span>(<span class="ruby-ivar">@vgroup</span>);
|
18
|
+
105: <span class="ruby-keyword kw">end</span>
|
19
|
+
106: <span class="ruby-keyword kw">end</span></pre>
|
20
20
|
</body>
|
21
21
|
</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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 10</span>
|
14
|
+
10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
15
|
+
11: <span class="ruby-ivar">@children</span> = []
|
16
|
+
12: <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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 14</span>
|
14
|
+
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">id</span>(<span class="ruby-identifier">name</span>)
|
15
|
+
15: <span class="ruby-ivar">@children</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>
|
16
|
+
16: <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/lel.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/profligacy/lel.rb, line 18</span>
|
14
|
+
18: <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
|
+
19: <span class="ruby-comment cmt">#ignored</span>
|
16
|
+
20: <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,12 +163,12 @@
|
|
163
163
|
|
164
164
|
<h3 class="section-bar">Public Instance methods</h3>
|
165
165
|
|
166
|
-
<div id="method-
|
167
|
-
<a name="
|
166
|
+
<div id="method-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/
|
170
|
+
<a href="Build.src/M000007.html" target="Code" class="method-signature"
|
171
|
+
onclick="popupCode('Build.src/M000007.html');return false;">
|
172
172
|
<span class="method-name">build</span><span class="method-args">(*args)</span>
|
173
173
|
</a>
|
174
174
|
</div>
|
@@ -177,12 +177,12 @@
|
|
177
177
|
</div>
|
178
178
|
</div>
|
179
179
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
180
|
+
<div id="method-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>
|