Permalink
Browse files

updated cafe townsend example

  • Loading branch information...
1 parent 87e1c97 commit a1f6704123f20f51e1b7b2265f088793aed30fa7 @seanhess committed Jun 4, 2009
Binary file not shown.
@@ -2,6 +2,47 @@ body {
font-family: Courier New, Courier, monospace;
}
+.CSS@font-face {
+ color: #990000;
+ font-weight: bold;
+}
+
+.CSS@import {
+ color: #006666;
+ font-weight: bold;
+}
+
+.CSS@media {
+ color: #663333;
+ font-weight: bold;
+}
+
+.CSSComment {
+ color: #999999;
+}
+
+.CSSDefault_Text {
+}
+
+.CSSDelimiters {
+}
+
+.CSSProperty_Name {
+ color: #330099;
+}
+
+.CSSProperty_Value {
+ color: #3333cc;
+}
+
+.CSSSelector {
+ color: #ff00ff;
+}
+
+.CSSString {
+ color: #990000;
+}
+
.ActionScriptASDoc {
color: #3f5fbf;
}
@@ -87,44 +128,3 @@ body {
color: #990000;
}
-.CSS@font-face {
- color: #990000;
- font-weight: bold;
-}
-
-.CSS@import {
- color: #006666;
- font-weight: bold;
-}
-
-.CSS@media {
- color: #663333;
- font-weight: bold;
-}
-
-.CSSComment {
- color: #999999;
-}
-
-.CSSDefault_Text {
-}
-
-.CSSDelimiters {
-}
-
-.CSSProperty_Name {
- color: #330099;
-}
-
-.CSSProperty_Value {
- color: #3333cc;
-}
-
-.CSSSelector {
- color: #ff00ff;
-}
-
-.CSSString {
- color: #990000;
-}
-
@@ -47,12 +47,17 @@
<span class="MXMLComponent_Tag">&lt;Command</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">deleteEmployee</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
<span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">employeeManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">deleteEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
- <span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">navManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">execute</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;/Command&gt;</span>
<span class="MXMLComponent_Tag">&lt;Command</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">saveEmployee</span><span class="MXMLDefault_Text">" employee="</span><span class="MXMLString">none</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
<span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">employeeManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">saveEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">execute</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;/Command&gt;</span>
+
+ <span class="MXMLComponent_Tag">&lt;Command</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">goBack</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
<span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">navManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">employeeManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">selectEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;/Command&gt;</span>
<span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> Manager </span><span class="MXMLComment">--&gt;</span>
@@ -80,7 +85,7 @@
<span class="MXMLComponent_Tag">&lt;Glue</span><span class="MXMLDefault_Text"> match="</span><span class="MXMLString">EmployeeDetail</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
<span class="MXMLComponent_Tag">&lt;Inject</span><span class="MXMLDefault_Text"> selectedEmployee="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">employeeManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employee</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
- <span class="MXMLComponent_Tag">&lt;Route</span><span class="MXMLDefault_Text"> event="</span><span class="MXMLString">back</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">navManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Route</span><span class="MXMLDefault_Text"> event="</span><span class="MXMLString">back</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">execute</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;Route</span><span class="MXMLDefault_Text"> event="</span><span class="MXMLString">remove</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">deleteEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">execute</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;Route</span><span class="MXMLDefault_Text"> event="</span><span class="MXMLString">save</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">saveEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">execute</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">employee</span>:<span class="ActionScriptDefault_Text">view</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">tempEmployee</span><span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;/Glue&gt;</span>
@@ -60,16 +60,16 @@
<span class="ActionScriptComment">// clear out the selected employee just in case
</span> <span class="ActionScriptDefault_Text">selectEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>;
<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
-
+
<span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
<span class="ActionScriptBracket/Brace">{</span>
<span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employee</span>:<span class="ActionScriptDefault_Text">Employee</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>;
<span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">firstname</span> <span class="ActionScriptOperator">=</span><span class="ActionScriptBracket/Brace"></span> <span class="ActionScriptString">""</span>;
<span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">lastname</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">""</span>;
- <span class="ActionScriptDefault_Text">saveEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">selectEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
+<span class="ActionScriptComment">// saveEmployee(employee);
+</span><span class="ActionScriptComment">// selectEmployee(employee);
+</span> <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptComment">// -----------------------------------------------------------
</span> <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">saveEmployee</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employee</span>:<span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">)</span> : <span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span>

0 comments on commit a1f6704

Please sign in to comment.