Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactored FlickrBook

  • Loading branch information...
commit a17e4f1cf2719c3b1b1f3b0e79a2ab145150d30b 1 parent c4f0606
@seanhess authored
Showing with 2,761 additions and 644 deletions.
  1. BIN  examples/CafeTownsend/bin-release/GlueCafeTownsend.swf
  2. +65 −0 examples/CafeTownsend/bin-release/assets/styles/main.css
  3. BIN  examples/CafeTownsend/bin-release/srcview/GlueCafeTownsend.zip
  4. +7 −9 examples/CafeTownsend/bin-release/srcview/SourceIndex.xml
  5. +41 −41 examples/CafeTownsend/bin-release/srcview/SourceStyles.css
  6. +1 −1  examples/CafeTownsend/bin-release/srcview/SourceTree.html
  7. +56 −29 examples/CafeTownsend/bin-release/srcview/source/cafe/glue/MainGlue.mxml.html
  8. +10 −12 examples/CafeTownsend/bin-release/srcview/source/cafe/manager/AuthorizationManager.as.html
  9. +48 −55 examples/CafeTownsend/bin-release/srcview/source/cafe/manager/EmployeeManager.as.html
  10. +36 −0 examples/CafeTownsend/bin-release/srcview/source/cafe/manager/NavigationManager.as.html
  11. +0 −26 examples/CafeTownsend/bin-release/srcview/source/cafe/model/Employee.as.html
  12. +11 −17 .../CafeTownsend/bin-release/srcview/source/cafe/service/{EmployeeUtils.as.html → EmployeeParser.as.html}
  13. +0 −16 examples/CafeTownsend/bin-release/srcview/source/cafe/service/MockServices.mxml.html
  14. +0 −23 examples/CafeTownsend/bin-release/srcview/source/cafe/store/EmployeeStore.as.html
  15. +0 −27 examples/CafeTownsend/bin-release/srcview/source/cafe/store/NavigationStore.as.html
  16. +10 −11 examples/CafeTownsend/bin-release/srcview/source/cafe/view/EmployeeDetail.mxml.html
  17. +1 −1  examples/CafeTownsend/bin-release/srcview/source/cafe/view/EmployeeList.mxml.html
  18. +4 −3 examples/CafeTownsend/bin-release/srcview/source/cafe/view/EmployeeLogin.mxml.html
  19. +19 −0 examples/CafeTownsend/bin-release/srcview/source/cafe/vo/Authentication.as.html
  20. +51 −0 examples/CafeTownsend/bin-release/srcview/source/cafe/vo/Employee.as.html
  21. +6 −7 ...urce/flickr/model/Search.as.html → CafeTownsend/bin-release/srcview/source/cafe/vo/Navigation.as.html}
  22. BIN  examples/FlickrBook/bin-release/FlikrBook.swf
  23. +1 −1  examples/FlickrBook/bin-release/assets/config/configuration.xml
  24. BIN  examples/FlickrBook/bin-release/srcview/GlueFlickrBook.zip
  25. +66 −24 examples/FlickrBook/bin-release/srcview/SourceIndex.xml
  26. +22 −22 examples/FlickrBook/bin-release/srcview/SourceStyles.css
  27. +1 −1  examples/FlickrBook/bin-release/srcview/SourceTree.html
  28. +1 −1  examples/FlickrBook/bin-release/srcview/source/FlikrBook.mxml.html
  29. +6 −0 examples/FlickrBook/bin-release/srcview/source/assets/config/configuration.xml.txt
  30. BIN  examples/FlickrBook/bin-release/srcview/source/assets/images/button_over.png
  31. +12 −0 examples/FlickrBook/bin-release/srcview/source/assets/images/button_over.png.html
  32. BIN  examples/FlickrBook/bin-release/srcview/source/assets/images/button_up.png
  33. +12 −0 examples/FlickrBook/bin-release/srcview/source/assets/images/button_up.png.html
  34. BIN  examples/FlickrBook/bin-release/srcview/source/assets/images/interestingness_icon.png
  35. +12 −0 examples/FlickrBook/bin-release/srcview/source/assets/images/interestingness_icon.png.html
  36. BIN  examples/FlickrBook/bin-release/srcview/source/assets/images/tag_icon.png
  37. +12 −0 examples/FlickrBook/bin-release/srcview/source/assets/images/tag_icon.png.html
  38. BIN  examples/FlickrBook/bin-release/srcview/source/assets/images/top_bar_bg.png
  39. +12 −0 examples/FlickrBook/bin-release/srcview/source/assets/images/top_bar_bg.png.html
  40. BIN  examples/FlickrBook/bin-release/srcview/source/assets/images/user_icon.png
  41. +12 −0 examples/FlickrBook/bin-release/srcview/source/assets/images/user_icon.png.html
  42. +74 −0 examples/FlickrBook/bin-release/srcview/source/assets/styles/Main.css.html
  43. +71 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/glue/MainGlue.mxml.html
  44. +25 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/manager/Config.as.html
  45. +35 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/manager/PhotoManager.as.html
  46. +110 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/maps/MainMap.mxml.html
  47. +48 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/service/FlickrHelper.as.html
  48. +47 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/service/FlickrParser.as.html
  49. +45 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/service/FlickrService.mxml.html
  50. +70 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/ui/controls/ImageLoader.as.html
  51. +24 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/ui/renderers/Thumbnail.mxml.html
  52. +59 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/ui/views/MainUI.mxml.html
  53. +33 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/ui/views/PhotoViewer.mxml.html
  54. +45 −0 examples/FlickrBook/bin-release/srcview/source/com/flickrBook/vos/Photo.as.html
  55. +275 −0 examples/FlickrBook/bin-release/srcview/source/flexlib/controls/PromptingTextInput.as.html
  56. +39 −24 examples/FlickrBook/bin-release/srcview/source/flickr/glue/MainGlue.mxml.html
  57. +3 −6 examples/FlickrBook/bin-release/srcview/source/flickr/model/Config.as.html
  58. +5 −8 examples/FlickrBook/bin-release/srcview/source/flickr/model/Photos.as.html
  59. +15 −10 examples/FlickrBook/bin-release/srcview/source/flickr/service/ApplicationService.mxml.html
  60. +21 −19 ...lickrBook/bin-release/srcview/source/flickr/service/{PhotoService.mxml.html → FlickrService.mxml.html}
  61. +17 −17 ...k/bin-release/srcview/source/flickr/service/{MockPhotoService.mxml.html → MockFlickrService.mxml.html}
  62. +5 −5 examples/FlickrBook/bin-release/srcview/source/flickr/ui/views/MainUI.mxml.html
  63. +313 −0 examples/FlickrBook/bin-release/srcview/source/qs/caching/ContentCache.as.html
  64. +415 −0 examples/FlickrBook/bin-release/srcview/source/qs/controls/SuperImage.as.html
  65. +123 −0 examples/FlickrBook/bin-release/srcview/source/qs/utils/DLinkedList.as.html
  66. +23 −0 examples/FlickrBook/bin-release/srcview/source/qs/utils/DLinkedListNode.as.html
  67. +1 −1  examples/FlickrBook/src/FlikrBook.mxml
  68. +1 −1  examples/FlickrBook/src/assets/config/configuration.xml
  69. +61 −0 examples/FlickrBook/src/com/flickrBook/glue/MainGlue.mxml
  70. +15 −0 examples/FlickrBook/src/com/flickrBook/manager/Config.as
  71. +25 −0 examples/FlickrBook/src/com/flickrBook/manager/PhotoManager.as
  72. +100 −0 examples/FlickrBook/src/com/flickrBook/maps/MainMap.mxml
  73. +38 −0 examples/FlickrBook/src/com/flickrBook/service/FlickrHelper.as
  74. +3 −7 examples/FlickrBook/src/{flickr → com/flickrBook}/service/FlickrParser.as
  75. +35 −0 examples/FlickrBook/src/com/flickrBook/service/FlickrService.mxml
  76. 0  examples/FlickrBook/src/{flickr → com/flickrBook}/ui/controls/ImageLoader.as
  77. 0  examples/FlickrBook/src/{flickr → com/flickrBook}/ui/renderers/Thumbnail.mxml
  78. +1 −1  examples/FlickrBook/src/{flickr → com/flickrBook}/ui/views/MainUI.mxml
  79. +1 −1  examples/FlickrBook/src/{flickr → com/flickrBook}/ui/views/PhotoViewer.mxml
  80. +5 −5 examples/FlickrBook/src/{flickr/model → com/flickrBook/vos}/Photo.as
  81. +0 −57 examples/FlickrBook/src/flickr/glue/MainGlue.mxml
  82. +0 −17 examples/FlickrBook/src/flickr/model/Config.as
  83. +0 −15 examples/FlickrBook/src/flickr/model/Photos.as
  84. +0 −31 examples/FlickrBook/src/flickr/service/ApplicationService.mxml
  85. +0 −57 examples/FlickrBook/src/flickr/service/FlickrService.mxml
  86. +0 −35 examples/FlickrBook/src/flickr/service/MockFlickrService.mxml
  87. BIN  source/bin/Glue.swc
View
BIN  examples/CafeTownsend/bin-release/GlueCafeTownsend.swf
Binary file not shown
View
65 examples/CafeTownsend/bin-release/assets/styles/main.css
@@ -0,0 +1,65 @@
+/* CSS file */
+Application {
+ backgroundColor: #000000;
+ themeColor: #4E0E02;
+}
+
+Alert {
+ backgroundColor: #FFFFFF;
+ color: #000000;
+}
+
+
+Panel {
+ borderColor: #7A2828;
+ borderThicknessLeft: 1;
+ borderThicknessRight: 1;
+ borderThicknessBottom: 1;
+ borderAlpha: 1;
+
+ paddingTop: 10;
+ paddingLeft: 10;
+ paddingRight: 10;
+ paddingBottom: 10;
+
+ highlightAlphas: 0.67, 0;
+ headerColors: #000000, #993333;
+
+ titleStyleName: "myPanelStyle";
+}
+
+MainUI {
+ horizontalAlign : center;
+}
+
+.mainBody {
+ backgroundColor: #FFFFFF;
+ paddingTop: 20;
+ horizontalAlign : center;
+}
+
+
+EmployeeLogin {
+ horizontalAlign: center;
+}
+
+
+Form, Label, TextInput {
+ color: #000000;
+ font-weight: normal;
+}
+
+FormItem, List {
+ font-weight: bold;
+ text-align: left;
+}
+
+.myPanelStyle {
+ color: #FFFFFF;
+}
+
+.panelText {
+ color: #000000;
+ font-weight: none;
+ text-align: left;
+}
View
BIN  examples/CafeTownsend/bin-release/srcview/GlueCafeTownsend.zip
Binary file not shown
View
16 examples/CafeTownsend/bin-release/srcview/SourceIndex.xml
@@ -20,17 +20,10 @@
<node label="cafe.manager" icon="packageIcon" expanded="true">
<node label="AuthorizationManager.as" icon="actionScriptIcon" url="source/cafe/manager/AuthorizationManager.as.html"/>
<node label="EmployeeManager.as" icon="actionScriptIcon" url="source/cafe/manager/EmployeeManager.as.html"/>
- </node>
- <node label="cafe.model" icon="packageIcon" expanded="true">
- <node label="Employee.as" icon="actionScriptIcon" url="source/cafe/model/Employee.as.html"/>
+ <node label="NavigationManager.as" icon="actionScriptIcon" url="source/cafe/manager/NavigationManager.as.html"/>
</node>
<node label="cafe.service" icon="packageIcon" expanded="true">
- <node label="EmployeeUtils.as" icon="actionScriptIcon" url="source/cafe/service/EmployeeUtils.as.html"/>
- <node label="MockServices.mxml" icon="mxmlIcon" url="source/cafe/service/MockServices.mxml.html"/>
- </node>
- <node label="cafe.store" icon="packageIcon" expanded="true">
- <node label="EmployeeStore.as" icon="actionScriptIcon" url="source/cafe/store/EmployeeStore.as.html"/>
- <node label="NavigationStore.as" icon="actionScriptIcon" url="source/cafe/store/NavigationStore.as.html"/>
+ <node label="EmployeeParser.as" icon="actionScriptIcon" url="source/cafe/service/EmployeeParser.as.html"/>
</node>
<node label="cafe.view" icon="packageIcon" expanded="true">
<node label="EmployeeDetail.mxml" icon="mxmlIcon" url="source/cafe/view/EmployeeDetail.mxml.html"/>
@@ -38,6 +31,11 @@
<node label="EmployeeLogin.mxml" icon="mxmlIcon" url="source/cafe/view/EmployeeLogin.mxml.html"/>
<node label="MainUI.mxml" icon="mxmlIcon" url="source/cafe/view/MainUI.mxml.html"/>
</node>
+ <node label="cafe.vo" icon="packageIcon" expanded="true">
+ <node label="Authentication.as" icon="actionScriptIcon" url="source/cafe/vo/Authentication.as.html"/>
+ <node label="Employee.as" icon="actionScriptIcon" url="source/cafe/vo/Employee.as.html"/>
+ <node label="Navigation.as" icon="actionScriptIcon" url="source/cafe/vo/Navigation.as.html"/>
+ </node>
<node selected="true" label="GlueCafeTownsend.mxml" icon="mxmlAppIcon" url="source/GlueCafeTownsend.mxml.html"/>
</node>
</nodes>
View
82 examples/CafeTownsend/bin-release/srcview/SourceStyles.css
@@ -2,47 +2,6 @@ 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;
}
@@ -128,3 +87,44 @@ 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;
+}
+
View
2  examples/CafeTownsend/bin-release/srcview/SourceTree.html
@@ -112,7 +112,7 @@
<tr height="40">
<td><img src="downloadIcon.png" width="32" height="32"/></td>
<td>
- <a href="GlueCafeTownsend.zip" class="downloadLink" target="_top">Download source (ZIP, 30K)</a><br/>
+ <a href="GlueCafeTownsend.zip" class="downloadLink" target="_top">Download source (ZIP, 31K)</a><br/>
<a href="http://www.adobe.com/go/flex3_sdk" class="downloadLink" target="_top">Download Flex 3 SDK</a>
</td>
</tr>
View
85 examples/CafeTownsend/bin-release/srcview/source/cafe/glue/MainGlue.mxml.html
@@ -15,52 +15,79 @@
<span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">&gt;</span>
<span class="MXMLSpecial_Tag">&lt;/mx:Script&gt;</span>
- <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> Storage </span><span class="MXMLComment">--&gt;</span>
- <span class="MXMLComponent_Tag">&lt;store:EmployeeStore</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">employees</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
- <span class="MXMLComponent_Tag">&lt;store:NavigationStore</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">navigation</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> You can put related commands in a separate file if you like. Pass in the references of the actual managers </span><span class="MXMLComment">--&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Command</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">loadEmployees</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> watch="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">employeesService</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">employeesService</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">send</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;result&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Action</span><span class="MXMLDefault_Text"> call="</span><span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employees</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">parser</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">loadEmployeesFromXML</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">result</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">saveEmpoyeeList</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;/result&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;/Action&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>
- <span class="MXMLComponent_Tag">&lt;manager:AuthorizationManager</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">authManager</span><span class="MXMLDefault_Text">"
- navigation="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">navigation</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"
- </span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Command</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">login</span><span class="MXMLDefault_Text">" user="</span><span class="MXMLString">user</span><span class="MXMLDefault_Text">" pass="</span><span class="MXMLString">pass</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">authManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">login</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">user</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">pass</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">loginChanged</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">authManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">state</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">logout</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">authManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">logout</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">loginChanged</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">authManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">state</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">newEmployee</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">showEmployee</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">newEmployee</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">selectEmployee</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">selectEmployee</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">navManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">showEmployee</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;manager:EmployeeManager</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">employeeManager</span><span class="MXMLDefault_Text">"
- employees="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">employees</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"
- utils="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">utils</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"
- navigation="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">navigation</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"
- loadEmployeeService="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">mock</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employeesService</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"
- </span><span class="MXMLComponent_Tag">/&gt;</span>
+ <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;/Command&gt;</span>
- <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> Services </span><span class="MXMLComment">--&gt;</span>
- <span class="MXMLComponent_Tag">&lt;service:MockServices</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">mock</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
- <span class="MXMLComponent_Tag">&lt;service:EmployeeUtils</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">utils</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&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">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;/Command&gt;</span>
+
+ <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> Manager </span><span class="MXMLComment">--&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;manager:AuthorizationManager</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">authManager</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;manager:EmployeeManager</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">employeeManager</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;manager:NavigationManager</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">navManager</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> Views </span><span class="MXMLComment">--&gt;</span>
<span class="MXMLComponent_Tag">&lt;Glue</span><span class="MXMLDefault_Text"> match="</span><span class="MXMLString">MainUI</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
- <span class="MXMLComponent_Tag">&lt;Inject</span><span class="MXMLDefault_Text"> selectedPage="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</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">{</span><span class="ActionScriptDefault_Text">FlexEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">CREATION_COMPLETE</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">employeeManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">loadEmployees</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;Inject</span><span class="MXMLDefault_Text"> selectedPage="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">navManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">currentPage</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">{</span><span class="ActionScriptDefault_Text">FlexEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">CREATION_COMPLETE</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">loadEmployees</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;/Glue&gt;</span>
<span class="MXMLComponent_Tag">&lt;Glue</span><span class="MXMLDefault_Text"> match="</span><span class="MXMLString">EmployeeLogin</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
- <span class="MXMLComponent_Tag">&lt;Inject</span><span class="MXMLDefault_Text"> authState="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">authState</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">login</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">authManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">login</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">target</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">username</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">target</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">password</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Inject</span><span class="MXMLDefault_Text"> authState="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">authManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">state</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">login</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">login</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">user</span>:<span class="ActionScriptDefault_Text">view</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">username</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">pass</span>:<span class="ActionScriptDefault_Text">view</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">password</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>
<span class="MXMLComponent_Tag">&lt;Glue</span><span class="MXMLDefault_Text"> match="</span><span class="MXMLString">EmployeeList</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
- <span class="MXMLComponent_Tag">&lt;Inject</span><span class="MXMLDefault_Text"> employees="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employeeList</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">logout</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">authManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">logout</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">newEmployee</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">employeeManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">newEmployee</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">selectEmployee</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="ActionScriptDefault_Text">scope</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">target</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">selectedEmployee</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;Inject</span><span class="MXMLDefault_Text"> employees="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">employeeManager</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employeeList</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">logout</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">logout</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">newEmployee</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">newEmployee</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">selectEmployee</span><span class="MXMLDefault_Text">" call="</span><span class="ActionScriptDefault_Text">selectEmployee</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">selectedEmployee</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>
<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">employees</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">employeeManager</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">remove</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="ActionScriptDefault_Text">employees</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;Route</span><span class="MXMLDefault_Text"> event="</span><span class="MXMLString">save</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">view</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">tempEmployee</span><span class="ActionScriptBracket/Brace">)</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">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>
-
+ <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> Services :: Put these in another file </span><span class="MXMLComment">--&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;mx:HTTPService</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">employeesService</span><span class="MXMLDefault_Text">" url="</span><span class="MXMLString">assets/data/Employees.xml</span><span class="MXMLDefault_Text">" resultFormat="</span><span class="MXMLString">e4x</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;service:EmployeeParser</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">parser</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;/GlueMap&gt;</span></pre></body>
</html>
View
22 examples/CafeTownsend/bin-release/srcview/source/cafe/manager/AuthorizationManager.as.html
@@ -9,31 +9,29 @@
<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">manager</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">store</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">NavigationStore</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Authentication</span>;
+ <span class="ActionScriptMetadata">Bindable]</span>
<span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">AuthorizationManager</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">navigation</span>:<span class="ActionScriptDefault_Text">NavigationStore</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">state</span>:<span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Authentication</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGOUT</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">login</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">username</span>:<span class="ActionScriptDefault_Text">String</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">password</span>:<span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptDefault_Text">Boolean</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">username</span> <span class="ActionScriptOperator">==</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span> <span class="ActionScriptString">'Flex'</span> <span class="ActionScriptOperator">&amp;&amp;</span> <span class="ActionScriptDefault_Text">password</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptString">'Glue'</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">login</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">username</span>:<span class="ActionScriptDefault_Text">String</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">password</span>:<span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span>
+ <span class="ActionScriptComment">//check hardcoded username and password
+</span> <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">username</span> <span class="ActionScriptOperator">==</span><span class="ActionScriptBracket/Brace"></span> <span class="ActionScriptString">'Flex'</span> <span class="ActionScriptOperator">&amp;&amp;</span> <span class="ActionScriptDefault_Text">password</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptString">'Glue'</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">)</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EMPLOYEE_LIST</span>;
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">authState</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGGED_IN</span>;
+ <span class="ActionScriptDefault_Text">state</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Authentication</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">AUTHENTICATED</span>;
<span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptReserved">else</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">authState</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGIN_FAILED</span>;
+ <span class="ActionScriptDefault_Text">state</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Authentication</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">FAILED</span>;
<span class="ActionScriptBracket/Brace">}</span>
-
- <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">false</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">logout</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGIN_SCREEN</span>;
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">authState</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGGED_OUT</span>;
+ <span class="ActionScriptDefault_Text">state</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Authentication</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGOUT</span>;
<span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span></pre></body>
View
103 examples/CafeTownsend/bin-release/srcview/source/cafe/manager/EmployeeManager.as.html
@@ -9,80 +9,75 @@
<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">manager</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">service</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EmployeeUtils</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">store</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EmployeeStore</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">store</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">NavigationStore</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
+
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">flash</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Event</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">flash</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EventDispatcher</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">collections</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ArrayCollection</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">collections</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">IList</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">rpc</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">FaultEvent</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">rpc</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ResultEvent</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">rpc</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">http</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">HTTPService</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">EmployeeManager</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employees</span>:<span class="ActionScriptDefault_Text">EmployeeStore</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">navigation</span>:<span class="ActionScriptDefault_Text">NavigationStore</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">EmployeeManager</span> <span class="ActionScriptReserved">extends</span> <span class="ActionScriptDefault_Text">EventDispatcher</span>
+ <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span>
+ <span class="ActionScriptComment">/*-.........................................Properties..........................................*/</span>
+
+ <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_employeeList</span>:<span class="ActionScriptDefault_Text">ArrayCollection</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">utils</span>:<span class="ActionScriptDefault_Text">EmployeeUtils</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">loadEmployeeService</span>:<span class="ActionScriptDefault_Text">HTTPService</span>;
+ <span class="ActionScriptComment">/*-.........................................Setters and Getters..........................................*/</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">loadEmployees</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptMetadata">Bindable </span><span class="ActionScriptString">"employeeListChanged"</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="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">employeeList</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptDefault_Text">ArrayCollection</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">loadEmployeeService</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">addEventListener</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ResultEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">RESULT</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">onEmployeesLoaded</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">loadEmployeeService</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">addEventListener</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">FaultEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">FAULT</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">onFault</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">loadEmployeeService</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">send</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>;
+ <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">_employeeList</span>;
<span class="ActionScriptBracket/Brace">}</span>
- <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">onFault</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span>:<span class="ActionScriptDefault_Text">FaultEvent</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">throw</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Error</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptString">"Fault: "</span><span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">event</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">fault</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
+ <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_employee</span>:<span class="ActionScriptDefault_Text">Employee</span>;
- <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">onEmployeesLoaded</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span>:<span class="ActionScriptDefault_Text">ResultEvent</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptMetadata">Bindable </span><span class="ActionScriptString">"employeeChanged"</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="ActionScriptReserved">get</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="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">loadEmployeeService</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">removeEventListener</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ResultEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">RESULT</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">onEmployeesLoaded</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employees</span>:<span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">utils</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">loadFromXML</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">result</span> <span class="ActionScriptReserved">as</span> <span class="ActionScriptDefault_Text">XML</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">saveEmpoyeeList</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptBracket/Brace">)</span>;
+ <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">_employee</span>;
<span class="ActionScriptBracket/Brace">}</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EMPLOYEE_LIST</span>;
- <span class="ActionScriptBracket/Brace">}</span>
+ <span class="ActionScriptComment">/*-.........................................Methods..........................................*/</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">saveEmpoyeeList</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">value</span>:<span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employeeList</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ArrayCollection</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">value</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">selectEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">value</span>:<span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employee</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">value</span>;
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EMPLOYEE_DETAIL</span>;
- <span class="ActionScriptBracket/Brace">}</span>
+ <span class="ActionScriptComment">// -----------------------------------------------------------
+</span> <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">saveEmpoyeeList</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employees</span>:<span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptDefault_Text">_employeeList</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ArrayCollection</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptBracket/Brace">)</span>;
+ <span class="ActionScriptDefault_Text">dispatchEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Event</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptString">'employeeListChanged'</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace"></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">deleteEmployee</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="ActionScriptDefault_Text">employees</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">removeItemAt</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">getItemIndex</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">selectEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EMPLOYEE_LIST</span>;
- <span class="ActionScriptBracket/Brace">}</span>
+ <span class="ActionScriptComment">// -----------------------------------------------------------
+</span> <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">selectEmployee</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="ActionScriptDefault_Text">_employee</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">employee</span>;
+ <span class="ActionScriptDefault_Text">dispatchEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Event</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptString">'employeeChanged'</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">)</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">deleteEmployee</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span> : <span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
+
+ <span class="ActionScriptDefault_Text">_employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">removeItemAt</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">_employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">getItemIndex</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">// 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="ActionScriptDefault_Text">saveEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EMPLOYEE_DETAIL</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="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>
+ <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>
<span class="ActionScriptComment">// assume the edited fields are not an existing employee, but a new employee
</span> <span class="ActionScriptComment">// and set the ArrayCollection index to -1, which means this employee is not in our existing
</span> <span class="ActionScriptComment">// employee list anywhere
</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">dpIndex</span> : <span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptOperator">-</span>1;
- <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employeeList</span>:<span class="ActionScriptDefault_Text">IList</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">employees</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">employeeList</span>;
<span class="ActionScriptComment">// loop thru the employee list
</span> <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span> : <span class="ActionScriptDefault_Text">uint</span> <span class="ActionScriptOperator">=</span> 0; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">++</span> <span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span>
@@ -96,20 +91,18 @@
<span class="ActionScriptComment">// if it was an existing employee already in the ArrayCollection
</span> <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span> <span class="ActionScriptDefault_Text">dpIndex</span> <span class="ActionScriptOperator">&gt;=</span> 0 <span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span>
<span class="ActionScriptComment">// update that employee's values
-</span> <span class="ActionScriptDefault_Text">utils</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">copyFrom</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">getItemAt</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">dpIndex</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptReserved">as</span> <span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptBracket/Brace">)</span>;
+</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">getItemAt</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">dpIndex</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptReserved">as</span> <span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">copyFrom</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">// otherwise, if it didn't match any existing employees
</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span>
<span class="ActionScriptComment">// add the temp employee to the ArrayCollection
</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">tempEmployee</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">utils</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">copyFrom</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">tempEmployee</span><span class="ActionScriptOperator">,</span><span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptBracket/Brace">)</span>;
-
+ <span class="ActionScriptDefault_Text">tempEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">copyFrom</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptBracket/Brace">)</span>;
<span class="ActionScriptDefault_Text">employeeList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">addItem</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">tempEmployee</span><span class="ActionScriptBracket/Brace">)</span>;
<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptComment">// clear out the selected employee
</span> <span class="ActionScriptDefault_Text">selectEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>;
- <span class="ActionScriptDefault_Text">navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">mainPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">EMPLOYEE_LIST</span>;
<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
View
36 examples/CafeTownsend/bin-release/srcview/source/cafe/manager/NavigationManager.as.html
@@ -0,0 +1,36 @@
+<!-- saved from url=(0014)about:internet -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>NavigationManager.as</title>
+<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
+</head>
+
+<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">manager</span>
+<span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Authentication</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Navigation</span>;
+
+ <span class="ActionScriptMetadata">Bindable]</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">NavigationManager</span>
+ <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">currentPage</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGIN</span>;
+
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">loginChanged</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">state</span>:<span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptDefault_Text">currentPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">state</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptDefault_Text">Authentication</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">AUTHENTICATED</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">?</span> <span class="ActionScriptDefault_Text">Navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LIST</span> : <span class="ActionScriptDefault_Text">Navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGIN</span>;
+ <span class="ActionScriptBracket/Brace">}</span>
+
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">showEmployee</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptDefault_Text">currentPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">DETAILS</span>;
+ <span class="ActionScriptBracket/Brace">}</span>
+
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">goBack</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptDefault_Text">currentPage</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Navigation</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LIST</span>;
+ <span class="ActionScriptBracket/Brace">}</span>
+ <span class="ActionScriptBracket/Brace">}</span>
+<span class="ActionScriptBracket/Brace">}</span></pre></body>
+</html>
View
26 examples/CafeTownsend/bin-release/srcview/source/cafe/model/Employee.as.html
@@ -1,26 +0,0 @@
-<!-- saved from url=(0014)about:internet -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title>Employee.as</title>
-<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
-</head>
-
-<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span>
-<span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span>
-
- <span class="ActionScriptASDoc">/**
- * An object representing an employee
- */</span>
- <span class="ActionScriptMetadata">Bindable]</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Employee</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">emp_id</span> : <span class="ActionScriptDefault_Text">uint</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">firstname</span> : <span class="ActionScriptDefault_Text">String</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">lastname</span> : <span class="ActionScriptDefault_Text">String</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">email</span> : <span class="ActionScriptDefault_Text">String</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">startdate</span> : <span class="ActionScriptDefault_Text">Date</span>;
- <span class="ActionScriptBracket/Brace">}</span>
-<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span></pre></body>
-</html>
View
28 ...source/cafe/service/EmployeeUtils.as.html → ...ource/cafe/service/EmployeeParser.as.html
@@ -3,17 +3,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title>EmployeeUtils.as</title>
+<title>EmployeeParser.as</title>
<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
</head>
<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">service</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
-
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">EmployeeUtils</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">loadFromXML</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employees</span>:<span class="ActionScriptDefault_Text">XML</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptDefault_Text">Array</span>
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
+
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">EmployeeParser</span>
+ <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span>
+
+ <span class="ActionScriptComment">/*-.........................................Methods..........................................*/</span>
+
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">loadEmployeesFromXML</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employees</span>:<span class="ActionScriptDefault_Text">XML</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptDefault_Text">Array</span>
<span class="ActionScriptBracket/Brace">{</span>
<span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employeeList</span>:<span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>;
@@ -31,16 +34,7 @@
<span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">employeeList</span>;
<span class="ActionScriptBracket/Brace">}</span>
-
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">copyFrom</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">employee</span>:<span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptDefault_Text">newEmployee</span>:<span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">emp_id</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">emp_id</span>;
- <span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">email</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">email</span>;
- <span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">firstname</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">firstname</span>;
- <span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">lastname</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">lastname</span>;
- <span class="ActionScriptDefault_Text">employee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">startdate</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">startdate</span>;
- <span class="ActionScriptBracket/Brace">}</span>
- <span class="ActionScriptBracket/Brace">}</span>
-<span class="ActionScriptBracket/Brace">}</span></pre></body>
+ <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
+<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span></pre></body>
</html>
View
16 examples/CafeTownsend/bin-release/srcview/source/cafe/service/MockServices.mxml.html
@@ -1,16 +0,0 @@
-<!-- saved from url=(0014)about:internet -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title>MockServices.mxml</title>
-<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
-</head>
-
-<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version="1.0" encoding="utf-8"?&gt;</span>
-<span class="MXMLComponent_Tag">&lt;mx:Object</span><span class="MXMLDefault_Text"> xmlns:mx="</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
-
- <span class="MXMLComponent_Tag">&lt;mx:HTTPService</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">employeesService</span><span class="MXMLDefault_Text">" url="</span><span class="MXMLString">assets/data/Employees.xml</span><span class="MXMLDefault_Text">" resultFormat="</span><span class="MXMLString">e4x</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
-
-<span class="MXMLComponent_Tag">&lt;/mx:Object&gt;</span></pre></body>
-</html>
View
23 examples/CafeTownsend/bin-release/srcview/source/cafe/store/EmployeeStore.as.html
@@ -1,23 +0,0 @@
-<!-- saved from url=(0014)about:internet -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title>EmployeeStore.as</title>
-<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
-</head>
-
-<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">store</span>
-<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
-
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">collections</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">IList</span>;
-
- <span class="ActionScriptMetadata">Bindable]</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">EmployeeStore</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employeeList</span>:<span class="ActionScriptDefault_Text">IList</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employee</span>:<span class="ActionScriptDefault_Text">Employee</span>;
- <span class="ActionScriptBracket/Brace">}</span>
-<span class="ActionScriptBracket/Brace">}</span></pre></body>
-</html>
View
27 examples/CafeTownsend/bin-release/srcview/source/cafe/store/NavigationStore.as.html
@@ -1,27 +0,0 @@
-<!-- saved from url=(0014)about:internet -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title>NavigationStore.as</title>
-<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
-</head>
-
-<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">store</span>
-<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptMetadata">Bindable]</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">NavigationStore</span>
- <span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">LOGIN_SCREEN</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 0;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">EMPLOYEE_LIST</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 1;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">EMPLOYEE_DETAIL</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 2;
-
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">LOGGED_OUT</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 0;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">LOGGED_IN</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 1;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">LOGIN_FAILED</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 2;
-
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">mainPage</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">LOGIN_SCREEN</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">authState</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">LOGGED_OUT</span>;
- <span class="ActionScriptBracket/Brace">}</span>
-<span class="ActionScriptBracket/Brace">}</span></pre></body>
-</html>
View
21 examples/CafeTownsend/bin-release/srcview/source/cafe/view/EmployeeDetail.mxml.html
@@ -10,18 +10,18 @@
<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version="1.0" encoding="utf-8"?&gt;</span>
<span class="MXMLComponent_Tag">&lt;mx:Panel</span><span class="MXMLDefault_Text"> xmlns:mx="</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">" xmlns="</span><span class="MXMLString">*</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"
xmlns:vos="</span><span class="MXMLString">com.cafetownsend.vos.*</span><span class="MXMLDefault_Text">" xmlns:mate="</span><span class="MXMLString">http://mate.asfusion.com/</span><span class="MXMLDefault_Text">"
- title="</span><span class="MXMLString">Employee Details</span><span class="MXMLDefault_Text">" xmlns:model="</span><span class="MXMLString">cafe.model.*</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
+ title="</span><span class="MXMLString">Employee Details</span><span class="MXMLDefault_Text">" xmlns:model="</span><span class="MXMLString">cafe.model.*</span><span class="MXMLDefault_Text">" xmlns:vo="</span><span class="MXMLString">cafe.vo.*</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
<span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
<span class="ActionScriptOperator">&lt;</span><span class="ActionScriptOperator">!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</span>
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ValidationResultEvent</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">controls</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Alert</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">CloseEvent</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">validators</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Validator</span>;
<span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">Bindable</span><span class="ActionScriptBracket/Brace">]</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">selectedEmployee</span>:<span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">selectedEmployee</span>:<span class="ActionScriptDefault_Text">Employee</span>;
<span class="ActionScriptComment">// mutate the back button's click event
</span> <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">cancelEmployeeEdits</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span> : <span class="ActionScriptReserved">void</span>
@@ -55,14 +55,13 @@
- <span class="MXMLComponent_Tag">&lt;model:Employee</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">tempEmployee</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
- <span class="MXMLComponent_Tag">&lt;model:firstname&gt;</span>{<span class="ActionScriptDefault_Text">firstname</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">text</span>}<span class="MXMLComponent_Tag">&lt;/model:firstname&gt;</span>
- <span class="MXMLComponent_Tag">&lt;model:lastname&gt;</span>{<span class="ActionScriptDefault_Text">lastname</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">text</span>}<span class="MXMLComponent_Tag">&lt;/model:lastname&gt;</span>
- <span class="MXMLComponent_Tag">&lt;model:email&gt;</span>{<span class="ActionScriptDefault_Text">email</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">text</span>}<span class="MXMLComponent_Tag">&lt;/model:email&gt;</span>
- <span class="MXMLComponent_Tag">&lt;model:startdate&gt;</span>{<span class="ActionScriptDefault_Text">startdate</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">selectedDate</span>}<span class="MXMLComponent_Tag">&lt;/model:startdate&gt;</span>
- <span class="MXMLComponent_Tag">&lt;model:emp_id&gt;</span>{<span class="ActionScriptDefault_Text">selectedEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">emp_id</span>}<span class="MXMLComponent_Tag">&lt;/model:emp_id&gt;</span>
- <span class="MXMLComponent_Tag">&lt;/model:Employee&gt;</span>
-
+ <span class="MXMLComponent_Tag">&lt;vo:Employee</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">tempEmployee</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;vo:firstname&gt;</span>{<span class="ActionScriptDefault_Text">firstname</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">text</span>}<span class="MXMLComponent_Tag">&lt;/vo:firstname&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;vo:lastname&gt;</span>{<span class="ActionScriptDefault_Text">lastname</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">text</span>}<span class="MXMLComponent_Tag">&lt;/vo:lastname&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;vo:email&gt;</span>{<span class="ActionScriptDefault_Text">email</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">text</span>}<span class="MXMLComponent_Tag">&lt;/vo:email&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;vo:startdate&gt;</span>{<span class="ActionScriptDefault_Text">startdate</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">selectedDate</span>}<span class="MXMLComponent_Tag">&lt;/vo:startdate&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;vo:emp_id&gt;</span>{<span class="ActionScriptDefault_Text">selectedEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">emp_id</span>}<span class="MXMLComponent_Tag">&lt;/vo:emp_id&gt;</span>
+ <span class="MXMLComponent_Tag">&lt;/vo:Employee&gt;</span>
<span class="MXMLComponent_Tag">&lt;mx:Button</span><span class="MXMLDefault_Text"> label="</span><span class="MXMLString">&amp;lt;&amp;lt; Back</span><span class="MXMLDefault_Text">" click="</span><span class="ActionScriptDefault_Text">cancelEmployeeEdits</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;mx:Form</span><span class="MXMLDefault_Text"> defaultButton="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">submit</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
View
2  examples/CafeTownsend/bin-release/srcview/source/cafe/view/EmployeeList.mxml.html
@@ -14,7 +14,7 @@
<span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
<span class="ActionScriptOperator">&lt;</span><span class="ActionScriptOperator">!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</span>
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">collections</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ArrayCollection</span>;
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Employee</span>;
<span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">Bindable</span><span class="ActionScriptBracket/Brace">]</span>
<span class="ActionScriptReserved">public</span> <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">employees</span>:<span class="ActionScriptDefault_Text">ArrayCollection</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">null</span>;
View
7 examples/CafeTownsend/bin-release/srcview/source/cafe/view/EmployeeLogin.mxml.html
@@ -14,7 +14,8 @@
<span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
<span class="ActionScriptOperator">&lt;</span><span class="ActionScriptOperator">!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</span>
- <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">store</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">NavigationStore</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Authentication</span>;
+ <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Navigation</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">core</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">UIComponent</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">validators</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Validator</span>;
<span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ValidationResultEvent</span>;
@@ -35,9 +36,9 @@
<span class="ActionScriptBracket/Brace"></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="ActionScriptReserved">set</span> <span class="ActionScriptDefault_Text">authState</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">value</span>:<span class="ActionScriptDefault_Text">int</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">set</span> <span class="ActionScriptDefault_Text">authState</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">value</span>:<span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">value</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptDefault_Text">NavigationStore</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">LOGIN_FAILED</span><span class="ActionScriptBracket/Brace">)</span>
+ <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">value</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptDefault_Text">Authentication</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">FAILED</span><span class="ActionScriptBracket/Brace">)</span>
<span class="ActionScriptBracket/Brace">{</span>
<span class="ActionScriptDefault_Text">error</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">true</span>;
<span class="ActionScriptBracket/Brace">}</span>
View
19 examples/CafeTownsend/bin-release/srcview/source/cafe/vo/Authentication.as.html
@@ -0,0 +1,19 @@
+<!-- saved from url=(0014)about:internet -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Authentication.as</title>
+<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
+</head>
+
+<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span>
+<span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Authentication</span>
+ <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">FAILED</span>:<span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span><span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace"></span> <span class="ActionScriptString">"failed"</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">AUTHENTICATED</span>:<span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">"authenticated"</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">LOGOUT</span>:<span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">"logout"</span>;
+ <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
+<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span></pre></body>
+</html>
View
51 examples/CafeTownsend/bin-release/srcview/source/cafe/vo/Employee.as.html
@@ -0,0 +1,51 @@
+<!-- saved from url=(0014)about:internet -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>Employee.as</title>
+<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
+</head>
+
+<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span>
+<span class="ActionScriptBracket/Brace">{</span>
+
+ <span class="ActionScriptMetadata">Bindable]</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</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">/*-.........................................Properties..........................................*/</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">emp_id</span> : <span class="ActionScriptDefault_Text">uint</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">firstname</span> : <span class="ActionScriptDefault_Text">String</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">lastname</span> : <span class="ActionScriptDefault_Text">String</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">email</span> : <span class="ActionScriptDefault_Text">String</span>;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">startdate</span> : <span class="ActionScriptDefault_Text">Date</span>;
+
+ <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">currentIndex</span> : <span class="ActionScriptDefault_Text">uint</span> <span class="ActionScriptOperator">=</span> 1000;
+
+ <span class="ActionScriptComment">/*-.........................................Constructor..........................................*/</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">(</span> <span class="ActionScriptDefault_Text">emp_id</span> : <span class="ActionScriptDefault_Text">uint</span> <span class="ActionScriptOperator">=</span> 0<span class="ActionScriptOperator">,</span>
+ <span class="ActionScriptDefault_Text">firstname</span> : <span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span><span class="ActionScriptBracket/Brace"></span> <span class="ActionScriptString">""</span><span class="ActionScriptOperator">,</span>
+ <span class="ActionScriptDefault_Text">lastname</span> : <span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">""</span><span class="ActionScriptOperator">,</span>
+ <span class="ActionScriptDefault_Text">email</span> : <span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">""</span><span class="ActionScriptOperator">,</span>
+ <span class="ActionScriptDefault_Text">startdate</span> : <span class="ActionScriptDefault_Text">Date</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">null</span> <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">)</span>
+ <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">emp_id</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span> <span class="ActionScriptDefault_Text">emp_id</span> <span class="ActionScriptOperator">==</span> 0 <span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">?</span> <span class="ActionScriptDefault_Text">currentIndex</span> <span class="ActionScriptOperator">+=</span> 1 : <span class="ActionScriptDefault_Text">emp_id</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">firstname</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">firstname</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">lastname</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">lastname</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">email</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">email</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">startdate</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span> <span class="ActionScriptDefault_Text">startdate</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span> <span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">?</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Date</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span> : <span class="ActionScriptDefault_Text">startdate</span>;
+ <span class="ActionScriptBracket/Brace">}</span>
+
+ <span class="ActionScriptComment">/*-.........................................Methods..........................................*/</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">copyFrom</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">newEmployee</span>:<span class="ActionScriptDefault_Text">Employee</span><span class="ActionScriptBracket/Brace">)</span>:<span class="ActionScriptReserved">void</span>
+ <span class="ActionScriptBracket/Brace">{</span>
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">emp_id</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">emp_id</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">email</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">email</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">firstname</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">firstname</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">lastname</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">lastname</span>;
+ <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">startdate</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">newEmployee</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">startdate</span>;
+
+ <span class="ActionScriptBracket/Brace">}</span>
+ <span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span>
+<span class="ActionScriptBracket/Brace"></span><span class="ActionScriptBracket/Brace">}</span></pre></body>
+</html>
View
13 ...rcview/source/flickr/model/Search.as.html → ...srcview/source/cafe/vo/Navigation.as.html
@@ -3,18 +3,17 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title>Search.as</title>
+<title>Navigation.as</title>
<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
</head>
-<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">flickr</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">model</span>
+<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">cafe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">vo</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptMetadata">Bindable]</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Search</span>
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Navigation</span>
<span class="ActionScriptBracket/Brace">{</span>
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">tags</span>:<span class="ActionScriptDefault_Text">String</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">user</span>:<span class="ActionScriptDefault_Text">String</span>;
- <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">page</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 0;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">LOGIN</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 0;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">LIST</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 1;
+ <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">DETAILS</span>:<span class="ActionScriptDefault_Text">int</span> <span class="ActionScriptOperator">=</span> 2;
<span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace">}</span></pre></body>
</html>
View
BIN  examples/FlickrBook/bin-release/FlikrBook.swf
Binary file not shown
View
2  examples/FlickrBook/bin-release/assets/config/configuration.xml
@@ -1,6 +1,6 @@
<flickr>
<url>http://api.flickr.com/services/rest/</url>
- <api_key>7fc96c46f6ab7db0eccca879ab35b1df</api_key>
+ <api_key>f4659b5c5da25194ae1635a028ef991f</api_key>
<user></user>
<tags>Adobe flex</tags>
</flickr>
View
BIN  examples/FlickrBook/bin-release/srcview/GlueFlickrBook.zip
Binary file not shown
View
90 examples/FlickrBook/bin-release/srcview/SourceIndex.xml
@@ -2,33 +2,75 @@
<index>
<title>Source of GlueFlickrBook</title>
<nodes>
+ <node label="flickr.glue" icon="packageIcon" expanded="true">
+ <node label="MainGlue.mxml" icon="mxmlIcon" url="source/flickr/glue/MainGlue.mxml.html"/>
+ </node>
+ <node label="flickr.manager">
+ </node>
+ <node label="flickr.model" icon="packageIcon" expanded="true">
+ <node label="Config.as" icon="actionScriptIcon" url="source/flickr/model/Config.as.html"/>
+ <node label="Photo.as" icon="actionScriptIcon" url="source/flickr/model/Photo.as.html"/>
+ <node label="Photos.as" icon="actionScriptIcon" url="source/flickr/model/Photos.as.html"/>
+ </node>
+ <node label="flickr.service" icon="packageIcon" expanded="true">
+ <node label="ApplicationService.mxml" icon="mxmlIcon" url="source/flickr/service/ApplicationService.mxml.html"/>
+ <node label="FlickrParser.as" icon="actionScriptIcon" url="source/flickr/service/FlickrParser.as.html"/>
+ <node label="FlickrService.mxml" icon="mxmlIcon" url="source/flickr/service/FlickrService.mxml.html"/>
+ <node label="MockFlickrService.mxml" icon="mxmlIcon" url="source/flickr/service/MockFlickrS