puremvc-as3 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/2.0.4/asdoc/all-classes.html +81 -0
- data/2.0.4/asdoc/all-index-A.html +59 -0
- data/2.0.4/asdoc/all-index-B.html +52 -0
- data/2.0.4/asdoc/all-index-C.html +92 -0
- data/2.0.4/asdoc/all-index-D.html +58 -0
- data/2.0.4/asdoc/all-index-E.html +89 -0
- data/2.0.4/asdoc/all-index-F.html +72 -0
- data/2.0.4/asdoc/all-index-G.html +190 -0
- data/2.0.4/asdoc/all-index-H.html +174 -0
- data/2.0.4/asdoc/all-index-I.html +202 -0
- data/2.0.4/asdoc/all-index-J.html +52 -0
- data/2.0.4/asdoc/all-index-K.html +52 -0
- data/2.0.4/asdoc/all-index-L.html +67 -0
- data/2.0.4/asdoc/all-index-M.html +112 -0
- data/2.0.4/asdoc/all-index-N.html +128 -0
- data/2.0.4/asdoc/all-index-O.html +178 -0
- data/2.0.4/asdoc/all-index-P.html +79 -0
- data/2.0.4/asdoc/all-index-Q.html +52 -0
- data/2.0.4/asdoc/all-index-R.html +308 -0
- data/2.0.4/asdoc/all-index-S.html +193 -0
- data/2.0.4/asdoc/all-index-T.html +67 -0
- data/2.0.4/asdoc/all-index-U.html +52 -0
- data/2.0.4/asdoc/all-index-V.html +84 -0
- data/2.0.4/asdoc/all-index-W.html +52 -0
- data/2.0.4/asdoc/all-index-X.html +52 -0
- data/2.0.4/asdoc/all-index-Y.html +52 -0
- data/2.0.4/asdoc/all-index-Z.html +52 -0
- data/2.0.4/asdoc/appendixes.html +47 -0
- data/2.0.4/asdoc/asdoc.js +273 -0
- data/2.0.4/asdoc/class-summary.html +174 -0
- data/2.0.4/asdoc/cookies.js +84 -0
- data/2.0.4/asdoc/images/collapsed.gif +0 -0
- data/2.0.4/asdoc/images/detailHeaderRule.jpg +0 -0
- data/2.0.4/asdoc/images/detailSectionHeader.jpg +0 -0
- data/2.0.4/asdoc/images/expanded.gif +0 -0
- data/2.0.4/asdoc/images/inherit-arrow.gif +0 -0
- data/2.0.4/asdoc/images/inheritedSummary.gif +0 -0
- data/2.0.4/asdoc/images/logo.jpg +0 -0
- data/2.0.4/asdoc/images/titleTableBottom.jpg +0 -0
- data/2.0.4/asdoc/images/titleTableMiddle.jpg +0 -0
- data/2.0.4/asdoc/images/titleTableTop.jpg +0 -0
- data/2.0.4/asdoc/index-list.html +121 -0
- data/2.0.4/asdoc/index.html +63 -0
- data/2.0.4/asdoc/mxml-tags.html +45 -0
- data/2.0.4/asdoc/org/puremvc/as3/core/Controller.html +433 -0
- data/2.0.4/asdoc/org/puremvc/as3/core/Model.html +405 -0
- data/2.0.4/asdoc/org/puremvc/as3/core/View.html +524 -0
- data/2.0.4/asdoc/org/puremvc/as3/core/class-list.html +30 -0
- data/2.0.4/asdoc/org/puremvc/as3/core/package-detail.html +65 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/ICommand.html +110 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/IController.html +226 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/IFacade.html +520 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/IMediator.html +345 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/IModel.html +226 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/INotification.html +269 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/INotifier.html +151 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/IObserver.html +234 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/IProxy.html +217 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/IView.html +350 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/class-list.html +54 -0
- data/2.0.4/asdoc/org/puremvc/as3/interfaces/package-detail.html +93 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/command/MacroCommand.html +284 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/command/SimpleCommand.html +164 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/command/class-list.html +27 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/command/package-detail.html +61 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/facade/Facade.html +940 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/facade/class-list.html +24 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/facade/package-detail.html +57 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/mediator/Mediator.html +402 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/mediator/class-list.html +24 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/mediator/package-detail.html +57 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/observer/Notification.html +312 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/observer/Notifier.html +180 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/observer/Observer.html +253 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/observer/class-list.html +30 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/observer/package-detail.html +65 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/proxy/Proxy.html +338 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/proxy/class-list.html +24 -0
- data/2.0.4/asdoc/org/puremvc/as3/patterns/proxy/package-detail.html +57 -0
- data/2.0.4/asdoc/package-frame.html +36 -0
- data/2.0.4/asdoc/package-list.html +52 -0
- data/2.0.4/asdoc/package-summary.html +68 -0
- data/2.0.4/asdoc/print.css +110 -0
- data/2.0.4/asdoc/style.css +565 -0
- data/2.0.4/asdoc/title-bar.html +55 -0
- data/2.0.4/bin/PureMVC_AS3_2_0_4.swc +0 -0
- data/2.0.4/license.txt +61 -0
- data/2.0.4/src/org/puremvc/as3/core/Controller.as +183 -0
- data/2.0.4/src/org/puremvc/as3/core/Model.as +144 -0
- data/2.0.4/src/org/puremvc/as3/core/View.as +271 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/ICommand.as +21 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/IController.as +64 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/IFacade.as +131 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/IMediator.as +150 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/IModel.as +57 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/INotification.as +76 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/INotifier.as +46 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/IObserver.as +81 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/IProxy.as +61 -0
- data/2.0.4/src/org/puremvc/as3/interfaces/IView.as +106 -0
- data/2.0.4/src/org/puremvc/as3/patterns/command/MacroCommand.as +121 -0
- data/2.0.4/src/org/puremvc/as3/patterns/command/SimpleCommand.as +42 -0
- data/2.0.4/src/org/puremvc/as3/patterns/facade/Facade.as +419 -0
- data/2.0.4/src/org/puremvc/as3/patterns/mediator/Mediator.as +115 -0
- data/2.0.4/src/org/puremvc/as3/patterns/observer/Notification.as +128 -0
- data/2.0.4/src/org/puremvc/as3/patterns/observer/Notifier.as +55 -0
- data/2.0.4/src/org/puremvc/as3/patterns/observer/Observer.as +114 -0
- data/2.0.4/src/org/puremvc/as3/patterns/proxy/Proxy.as +88 -0
- data/2.0.4/src/puremvc-manifest.xml +20 -0
- data/2.0.4/version.txt +117 -0
- data/Gemfile +4 -0
- data/README.textile +107 -0
- data/Rakefile +24 -0
- data/lib/puremvc-as3.rb +29 -0
- data/lib/rake/rename.rb +34 -0
- metadata +198 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>org.puremvc.as3.patterns.command - API Documentation</title>
|
6
|
+
<base target="classFrame">
|
7
|
+
<link rel="stylesheet" href="../../../../../style.css" type="text/css" media="screen">
|
8
|
+
<link rel="stylesheet" href="../../../../../print.css" type="text/css" media="print">
|
9
|
+
</head>
|
10
|
+
<body class="classFrameContent">
|
11
|
+
<h3>
|
12
|
+
<a style="color:black" target="classFrame" href="package-detail.html">Package org.puremvc.as3.patterns.command</a>
|
13
|
+
</h3>
|
14
|
+
<table cellspacing="0" cellpadding="0">
|
15
|
+
<tr>
|
16
|
+
<td><a style="color:black" href="package-detail.html#classSummary"><b>Classes</b></a></td>
|
17
|
+
</tr>
|
18
|
+
<tr>
|
19
|
+
<td><a href="MacroCommand.html">MacroCommand</a></td>
|
20
|
+
</tr>
|
21
|
+
<tr>
|
22
|
+
<td><a href="SimpleCommand.html">SimpleCommand</a></td>
|
23
|
+
</tr>
|
24
|
+
</table>
|
25
|
+
</body>
|
26
|
+
</html>
|
27
|
+
<!-- -->
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<link rel="stylesheet" href="../../../../../style.css" type="text/css" media="screen">
|
6
|
+
<link rel="stylesheet" href="../../../../../print.css" type="text/css" media="print">
|
7
|
+
<title>org.puremvc.as3.patterns.command Summary</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<script type="text/javascript" language="javascript" src="../../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../../cookies.js"></script><script type="text/javascript" language="javascript">
|
11
|
+
<!--
|
12
|
+
asdocTitle = 'org.puremvc.as3.patterns.command Package - API Documentation';
|
13
|
+
var baseRef = '../../../../../';
|
14
|
+
window.onload = configPage;
|
15
|
+
--></script>
|
16
|
+
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
|
17
|
+
<tr>
|
18
|
+
<td align="left" class="titleTableTitle">PureMVC AS3 Framework - [Standard Version]</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('../../../../../index-list.html')" href="../../../../../all-index-A.html">Index</a> | <a href="../../../../../index.html?org/puremvc/as3/patterns/command/package-detail.html&org/puremvc/as3/patterns/command/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../../images/logo.jpg"></td>
|
19
|
+
</tr>
|
20
|
+
<tr class="titleTableRow2">
|
21
|
+
<td align="left" id="subTitle" class="titleTableSubTitle">Package org.puremvc.as3.patterns.command</td><td align="right" id="subNav" class="titleTableSubNav"><a href="package-detail.html#classSummary">Classes</a></td>
|
22
|
+
</tr>
|
23
|
+
<tr class="titleTableRow3">
|
24
|
+
<td colspan="2"> </td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
<script type="text/javascript" language="javascript">
|
28
|
+
<!--
|
29
|
+
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Package org.puremvc.as3.patterns.command"); titleBar_setSubNav(false,false,false,false,false,false,false,false,false,false,false,false,true,false);}
|
30
|
+
--></script>
|
31
|
+
<div class="MainContent">
|
32
|
+
<br>
|
33
|
+
<br>
|
34
|
+
<hr>
|
35
|
+
<a name="classSummary"></a>
|
36
|
+
<div class="summaryTableTitle">Classes</div>
|
37
|
+
<table class="summaryTable" cellspacing="0" cellpadding="3">
|
38
|
+
<tr>
|
39
|
+
<th> </th><th width="30%">Class</th><th width="70%">Description</th>
|
40
|
+
</tr>
|
41
|
+
<tr class="prow1">
|
42
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="MacroCommand.html">MacroCommand</a></td><td class="summaryTableLastCol">
|
43
|
+
A base <code>ICommand</code> implementation that executes other <code>ICommand</code>s.</td>
|
44
|
+
</tr>
|
45
|
+
<tr class="prow0">
|
46
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="SimpleCommand.html">SimpleCommand</a></td><td class="summaryTableLastCol">
|
47
|
+
A base <code>ICommand</code> implementation.</td>
|
48
|
+
</tr>
|
49
|
+
</table>
|
50
|
+
<p></p>
|
51
|
+
<div>
|
52
|
+
<p></p>
|
53
|
+
<center class="copyright">
|
54
|
+
<footer>
|
55
|
+
</footer>
|
56
|
+
</center>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
</body>
|
60
|
+
</html>
|
61
|
+
<!-- -->
|
@@ -0,0 +1,940 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<link rel="stylesheet" href="../../../../../style.css" type="text/css" media="screen">
|
6
|
+
<link rel="stylesheet" href="../../../../../print.css" type="text/css" media="print">
|
7
|
+
<meta content="Facade,org.puremvc.as3.patterns.facade.Facade,SINGLETON_MSG,controller,instance,model,view,getInstance,hasCommand,hasMediator,hasProxy,initializeController,initializeFacade,initializeModel,initializeView,notifyObservers,registerCommand,registerMediator,registerProxy,removeCommand,removeMediator,removeProxy,retrieveMediator,retrieveProxy,sendNotification" name="keywords">
|
8
|
+
<title>org.puremvc.as3.patterns.facade.Facade</title>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<script type="text/javascript" language="javascript" src="../../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../../cookies.js"></script><script type="text/javascript" language="javascript">
|
12
|
+
<!--
|
13
|
+
asdocTitle = 'Facade - API Documentation';
|
14
|
+
var baseRef = '../../../../../';
|
15
|
+
window.onload = configPage;
|
16
|
+
--></script>
|
17
|
+
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
|
18
|
+
<tr>
|
19
|
+
<td align="left" class="titleTableTitle">PureMVC AS3 Framework - [Standard Version]</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('../../../../../index-list.html')" href="../../../../../all-index-A.html">Index</a> | <a href="../../../../../index.html?org/puremvc/as3/patterns/facade/Facade.html&org/puremvc/as3/patterns/facade/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../../images/logo.jpg"></td>
|
20
|
+
</tr>
|
21
|
+
<tr class="titleTableRow2">
|
22
|
+
<td align="left" id="subTitle" class="titleTableSubTitle">Class Facade</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a> | <a href="#methodSummary">Methods</a> | <a href="#constantSummary">Constants</a></td>
|
23
|
+
</tr>
|
24
|
+
<tr class="titleTableRow3">
|
25
|
+
<td colspan="2"> </td>
|
26
|
+
</tr>
|
27
|
+
</table>
|
28
|
+
<script type="text/javascript" language="javascript">
|
29
|
+
<!--
|
30
|
+
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Facade"); titleBar_setSubNav(true,true,false,false,false,false,true,false,false,false,false,false,false,false);}
|
31
|
+
--></script>
|
32
|
+
<div class="MainContent">
|
33
|
+
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
|
34
|
+
<tr>
|
35
|
+
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.puremvc.as3.patterns.facade</a></td>
|
36
|
+
</tr>
|
37
|
+
<tr>
|
38
|
+
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Facade</td>
|
39
|
+
</tr>
|
40
|
+
<tr>
|
41
|
+
<td class="classHeaderTableLabel">Implements</td><td><a href="../../interfaces/IFacade.html">IFacade</a></td>
|
42
|
+
</tr>
|
43
|
+
</table>
|
44
|
+
<p></p>
|
45
|
+
A base Singleton <code>IFacade</code> implementation.
|
46
|
+
|
47
|
+
<P>
|
48
|
+
In PureMVC, the <code>Facade</code> class assumes these
|
49
|
+
responsibilities:
|
50
|
+
<UL>
|
51
|
+
<LI>Initializing the <code>Model</code>, <code>View</code>
|
52
|
+
and <code>Controller</code> Singletons.</LI>
|
53
|
+
<LI>Providing all the methods defined by the <code>IModel,
|
54
|
+
IView, & IController</code> interfaces.</LI>
|
55
|
+
<LI>Providing the ability to override the specific <code>Model</code>,
|
56
|
+
<code>View</code> and <code>Controller</code> Singletons created.</LI>
|
57
|
+
<LI>Providing a single point of contact to the application for
|
58
|
+
registering <code>Commands</code> and notifying <code>Observers</code></LI>
|
59
|
+
</UL>
|
60
|
+
<P>
|
61
|
+
Example usage:
|
62
|
+
<div class='listing'><pre>
|
63
|
+
import org.puremvc.as3.patterns.facade.∗;
|
64
|
+
|
65
|
+
import com.me.myapp.model.*;
|
66
|
+
import com.me.myapp.view.*;
|
67
|
+
import com.me.myapp.controller.*;
|
68
|
+
|
69
|
+
public class MyFacade extends Facade
|
70
|
+
{
|
71
|
+
// Notification constants. The Facade is the ideal
|
72
|
+
// location for these constants, since any part
|
73
|
+
// of the application participating in PureMVC
|
74
|
+
// Observer Notification will know the Facade.
|
75
|
+
public static const GO_COMMAND:String = "go";
|
76
|
+
|
77
|
+
// Override Singleton Factory method
|
78
|
+
public static function getInstance() : MyFacade {
|
79
|
+
if (instance == null) instance = new MyFacade();
|
80
|
+
return instance as MyFacade;
|
81
|
+
}
|
82
|
+
|
83
|
+
// optional initialization hook for Facade
|
84
|
+
override public function initializeFacade() : void {
|
85
|
+
super.initializeFacade();
|
86
|
+
// do any special subclass initialization here
|
87
|
+
}
|
88
|
+
|
89
|
+
// optional initialization hook for Controller
|
90
|
+
override public function initializeController() : void {
|
91
|
+
// call super to use the PureMVC Controller Singleton.
|
92
|
+
super.initializeController();
|
93
|
+
|
94
|
+
// Otherwise, if you're implmenting your own
|
95
|
+
// IController, then instead do:
|
96
|
+
// if ( controller != null ) return;
|
97
|
+
// controller = MyAppController.getInstance();
|
98
|
+
|
99
|
+
// do any special subclass initialization here
|
100
|
+
// such as registering Commands
|
101
|
+
registerCommand( GO_COMMAND, com.me.myapp.controller.GoCommand )
|
102
|
+
}
|
103
|
+
|
104
|
+
// optional initialization hook for Model
|
105
|
+
override public function initializeModel() : void {
|
106
|
+
// call super to use the PureMVC Model Singleton.
|
107
|
+
super.initializeModel();
|
108
|
+
|
109
|
+
// Otherwise, if you're implmenting your own
|
110
|
+
// IModel, then instead do:
|
111
|
+
// if ( model != null ) return;
|
112
|
+
// model = MyAppModel.getInstance();
|
113
|
+
|
114
|
+
// do any special subclass initialization here
|
115
|
+
// such as creating and registering Model proxys
|
116
|
+
// that don't require a facade reference at
|
117
|
+
// construction time, such as fixed type lists
|
118
|
+
// that never need to send Notifications.
|
119
|
+
regsiterProxy( new USStateNamesProxy() );
|
120
|
+
|
121
|
+
// CAREFUL: Can't reference Facade instance in constructor
|
122
|
+
// of new Proxys from here, since this step is part of
|
123
|
+
// Facade construction! Usually, Proxys needing to send
|
124
|
+
// notifications are registered elsewhere in the app
|
125
|
+
// for this reason.
|
126
|
+
}
|
127
|
+
|
128
|
+
// optional initialization hook for View
|
129
|
+
override public function initializeView() : void {
|
130
|
+
// call super to use the PureMVC View Singleton.
|
131
|
+
super.initializeView();
|
132
|
+
|
133
|
+
// Otherwise, if you're implmenting your own
|
134
|
+
// IView, then instead do:
|
135
|
+
// if ( view != null ) return;
|
136
|
+
// view = MyAppView.getInstance();
|
137
|
+
|
138
|
+
// do any special subclass initialization here
|
139
|
+
// such as creating and registering Mediators
|
140
|
+
// that do not need a Facade reference at construction
|
141
|
+
// time.
|
142
|
+
registerMediator( new LoginMediator() );
|
143
|
+
|
144
|
+
// CAREFUL: Can't reference Facade instance in constructor
|
145
|
+
// of new Mediators from here, since this is a step
|
146
|
+
// in Facade construction! Usually, all Mediators need
|
147
|
+
// receive notifications, and are registered elsewhere in
|
148
|
+
// the app for this reason.
|
149
|
+
}
|
150
|
+
}
|
151
|
+
</pre></div>
|
152
|
+
|
153
|
+
<p></p>
|
154
|
+
<p>
|
155
|
+
<span class="classHeaderTableLabel">See also</span>
|
156
|
+
</p>
|
157
|
+
<div class="seeAlso">Model<br>View<br>Controller<br>
|
158
|
+
<a href="../observer/Notification.html" target="">Notification</a>
|
159
|
+
<br>
|
160
|
+
<a href="../mediator/Mediator.html" target="">Mediator</a>
|
161
|
+
<br>
|
162
|
+
<a href="../proxy/Proxy.html" target="">Proxy</a>
|
163
|
+
<br>
|
164
|
+
<a href="../command/SimpleCommand.html" target="">SimpleCommand</a>
|
165
|
+
<br>
|
166
|
+
<a href="../command/MacroCommand.html" target="">MacroCommand</a>
|
167
|
+
</div>
|
168
|
+
<br>
|
169
|
+
<hr>
|
170
|
+
</div>
|
171
|
+
<a name="propertySummary"></a><a name="protectedPropertySummary"></a>
|
172
|
+
<div class="summarySection">
|
173
|
+
<div class="summaryTableTitle">Protected Properties</div>
|
174
|
+
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
|
175
|
+
<tr>
|
176
|
+
<th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined by</th>
|
177
|
+
</tr>
|
178
|
+
<tr class="">
|
179
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#controller">controller</a> : <a href="../../interfaces/IController.html">IController</a>
|
180
|
+
<div class="summaryTableDescription"></div>
|
181
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
182
|
+
</tr>
|
183
|
+
<tr class="">
|
184
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#instance">instance</a> : <a href="../../interfaces/IFacade.html">IFacade</a>
|
185
|
+
<div class="summaryTableDescription">[static]</div>
|
186
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
187
|
+
</tr>
|
188
|
+
<tr class="">
|
189
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#model">model</a> : <a href="../../interfaces/IModel.html">IModel</a>
|
190
|
+
<div class="summaryTableDescription"></div>
|
191
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
192
|
+
</tr>
|
193
|
+
<tr class="">
|
194
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#view">view</a> : <a href="../../interfaces/IView.html">IView</a>
|
195
|
+
<div class="summaryTableDescription"></div>
|
196
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
197
|
+
</tr>
|
198
|
+
</table>
|
199
|
+
</div>
|
200
|
+
<a name="methodSummary"></a>
|
201
|
+
<div class="summarySection">
|
202
|
+
<div class="summaryTableTitle">Public Methods</div>
|
203
|
+
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
|
204
|
+
<tr>
|
205
|
+
<th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
|
206
|
+
</tr>
|
207
|
+
<tr class="">
|
208
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
209
|
+
<div class="summarySignature">
|
210
|
+
<a class="signatureLink" href="#Facade()">Facade</a>()</div>
|
211
|
+
<div class="summaryTableDescription">
|
212
|
+
Constructor.</div>
|
213
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
214
|
+
</tr>
|
215
|
+
<tr class="">
|
216
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
217
|
+
<div class="summarySignature">
|
218
|
+
<a class="signatureLink" href="#getInstance()">getInstance</a>():<a href="../../interfaces/IFacade.html">IFacade</a>
|
219
|
+
</div>
|
220
|
+
<div class="summaryTableDescription">[static]
|
221
|
+
Facade Singleton Factory method
|
222
|
+
|
223
|
+
</div>
|
224
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
225
|
+
</tr>
|
226
|
+
<tr class="">
|
227
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
228
|
+
<div class="summarySignature">
|
229
|
+
<a class="signatureLink" href="#hasCommand()">hasCommand</a>(notificationName:String):Boolean</div>
|
230
|
+
<div class="summaryTableDescription">
|
231
|
+
Check if a Command is registered for a given Notification
|
232
|
+
|
233
|
+
</div>
|
234
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
235
|
+
</tr>
|
236
|
+
<tr class="">
|
237
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
238
|
+
<div class="summarySignature">
|
239
|
+
<a class="signatureLink" href="#hasMediator()">hasMediator</a>(mediatorName:String):Boolean</div>
|
240
|
+
<div class="summaryTableDescription">
|
241
|
+
Check if a Mediator is registered or not
|
242
|
+
|
243
|
+
</div>
|
244
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
245
|
+
</tr>
|
246
|
+
<tr class="">
|
247
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
248
|
+
<div class="summarySignature">
|
249
|
+
<a class="signatureLink" href="#hasProxy()">hasProxy</a>(proxyName:String):Boolean</div>
|
250
|
+
<div class="summaryTableDescription">
|
251
|
+
Check if a Proxy is registered
|
252
|
+
|
253
|
+
</div>
|
254
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
255
|
+
</tr>
|
256
|
+
<tr class="">
|
257
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
258
|
+
<div class="summarySignature">
|
259
|
+
<a class="signatureLink" href="#notifyObservers()">notifyObservers</a>(notification:<a href="../../interfaces/INotification.html">INotification</a>):void</div>
|
260
|
+
<div class="summaryTableDescription">
|
261
|
+
Notify <code>Observer</code>s.</div>
|
262
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
263
|
+
</tr>
|
264
|
+
<tr class="">
|
265
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
266
|
+
<div class="summarySignature">
|
267
|
+
<a class="signatureLink" href="#registerCommand()">registerCommand</a>(notificationName:String, commandClassRef:Class):void</div>
|
268
|
+
<div class="summaryTableDescription">
|
269
|
+
Register an <code>ICommand</code> with the <code>Controller</code> by Notification name.</div>
|
270
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
271
|
+
</tr>
|
272
|
+
<tr class="">
|
273
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
274
|
+
<div class="summarySignature">
|
275
|
+
<a class="signatureLink" href="#registerMediator()">registerMediator</a>(mediator:<a href="../../interfaces/IMediator.html">IMediator</a>):void</div>
|
276
|
+
<div class="summaryTableDescription">
|
277
|
+
Register a <code>IMediator</code> with the <code>View</code>.</div>
|
278
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
279
|
+
</tr>
|
280
|
+
<tr class="">
|
281
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
282
|
+
<div class="summarySignature">
|
283
|
+
<a class="signatureLink" href="#registerProxy()">registerProxy</a>(proxy:<a href="../../interfaces/IProxy.html">IProxy</a>):void</div>
|
284
|
+
<div class="summaryTableDescription">
|
285
|
+
Register an <code>IProxy</code> with the <code>Model</code> by name.</div>
|
286
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
287
|
+
</tr>
|
288
|
+
<tr class="">
|
289
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
290
|
+
<div class="summarySignature">
|
291
|
+
<a class="signatureLink" href="#removeCommand()">removeCommand</a>(notificationName:String):void</div>
|
292
|
+
<div class="summaryTableDescription">
|
293
|
+
Remove a previously registered <code>ICommand</code> to <code>INotification</code> mapping from the Controller.</div>
|
294
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
295
|
+
</tr>
|
296
|
+
<tr class="">
|
297
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
298
|
+
<div class="summarySignature">
|
299
|
+
<a class="signatureLink" href="#removeMediator()">removeMediator</a>(mediatorName:String):<a href="../../interfaces/IMediator.html">IMediator</a>
|
300
|
+
</div>
|
301
|
+
<div class="summaryTableDescription">
|
302
|
+
Remove an <code>IMediator</code> from the <code>View</code>.</div>
|
303
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
304
|
+
</tr>
|
305
|
+
<tr class="">
|
306
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
307
|
+
<div class="summarySignature">
|
308
|
+
<a class="signatureLink" href="#removeProxy()">removeProxy</a>(proxyName:String):<a href="../../interfaces/IProxy.html">IProxy</a>
|
309
|
+
</div>
|
310
|
+
<div class="summaryTableDescription">
|
311
|
+
Remove an <code>IProxy</code> from the <code>Model</code> by name.</div>
|
312
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
313
|
+
</tr>
|
314
|
+
<tr class="">
|
315
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
316
|
+
<div class="summarySignature">
|
317
|
+
<a class="signatureLink" href="#retrieveMediator()">retrieveMediator</a>(mediatorName:String):<a href="../../interfaces/IMediator.html">IMediator</a>
|
318
|
+
</div>
|
319
|
+
<div class="summaryTableDescription">
|
320
|
+
Retrieve an <code>IMediator</code> from the <code>View</code>.</div>
|
321
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
322
|
+
</tr>
|
323
|
+
<tr class="">
|
324
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
325
|
+
<div class="summarySignature">
|
326
|
+
<a class="signatureLink" href="#retrieveProxy()">retrieveProxy</a>(proxyName:String):<a href="../../interfaces/IProxy.html">IProxy</a>
|
327
|
+
</div>
|
328
|
+
<div class="summaryTableDescription">
|
329
|
+
Retrieve an <code>IProxy</code> from the <code>Model</code> by name.</div>
|
330
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
331
|
+
</tr>
|
332
|
+
<tr class="">
|
333
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
334
|
+
<div class="summarySignature">
|
335
|
+
<a class="signatureLink" href="#sendNotification()">sendNotification</a>(notificationName:String, body:Object = null, type:String = null):void</div>
|
336
|
+
<div class="summaryTableDescription">
|
337
|
+
Create and send an <code>INotification</code>.</div>
|
338
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
339
|
+
</tr>
|
340
|
+
</table>
|
341
|
+
</div>
|
342
|
+
<a name="protectedMethodSummary"></a>
|
343
|
+
<div class="summarySection">
|
344
|
+
<div class="summaryTableTitle">Protected Methods</div>
|
345
|
+
<table id="summaryTableProtectedMethod" class="summaryTable " cellpadding="3" cellspacing="0">
|
346
|
+
<tr>
|
347
|
+
<th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
|
348
|
+
</tr>
|
349
|
+
<tr class="">
|
350
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
351
|
+
<div class="summarySignature">
|
352
|
+
<a class="signatureLink" href="#initializeController()">initializeController</a>():void</div>
|
353
|
+
<div class="summaryTableDescription">
|
354
|
+
Initialize the <code>Controller</code>.</div>
|
355
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
356
|
+
</tr>
|
357
|
+
<tr class="">
|
358
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
359
|
+
<div class="summarySignature">
|
360
|
+
<a class="signatureLink" href="#initializeFacade()">initializeFacade</a>():void</div>
|
361
|
+
<div class="summaryTableDescription">
|
362
|
+
Initialize the Singleton <code>Facade</code> instance.</div>
|
363
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
364
|
+
</tr>
|
365
|
+
<tr class="">
|
366
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
367
|
+
<div class="summarySignature">
|
368
|
+
<a class="signatureLink" href="#initializeModel()">initializeModel</a>():void</div>
|
369
|
+
<div class="summaryTableDescription">
|
370
|
+
Initialize the <code>Model</code>.</div>
|
371
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
372
|
+
</tr>
|
373
|
+
<tr class="">
|
374
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
|
375
|
+
<div class="summarySignature">
|
376
|
+
<a class="signatureLink" href="#initializeView()">initializeView</a>():void</div>
|
377
|
+
<div class="summaryTableDescription">
|
378
|
+
Initialize the <code>View</code>.</div>
|
379
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
380
|
+
</tr>
|
381
|
+
</table>
|
382
|
+
</div>
|
383
|
+
<a name="constantSummary"></a><a name="protectedConstantSummary"></a>
|
384
|
+
<div class="summarySection">
|
385
|
+
<div class="summaryTableTitle">Protected Constants</div>
|
386
|
+
<table id="summaryTableProtectedConstant" class="summaryTable " cellpadding="3" cellspacing="0">
|
387
|
+
<tr>
|
388
|
+
<th> </th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined by</th>
|
389
|
+
</tr>
|
390
|
+
<tr class="">
|
391
|
+
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#SINGLETON_MSG">SINGLETON_MSG</a> : String = "Facade Singleton already constructed!"<div class="summaryTableDescription"></div>
|
392
|
+
</td><td class="summaryTableOwnerCol">Facade</td>
|
393
|
+
</tr>
|
394
|
+
</table>
|
395
|
+
</div>
|
396
|
+
<script type="text/javascript" language="javascript">
|
397
|
+
<!--
|
398
|
+
showHideInherited();
|
399
|
+
--></script>
|
400
|
+
<div class="MainContent">
|
401
|
+
<a name="propertyDetail"></a>
|
402
|
+
<div class="detailSectionHeader">Property detail</div>
|
403
|
+
<a name="controller"></a>
|
404
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
405
|
+
<tr>
|
406
|
+
<td class="detailHeaderName">controller</td><td class="detailHeaderType">property</td>
|
407
|
+
</tr>
|
408
|
+
</table>
|
409
|
+
<div class="detailBody">
|
410
|
+
<code>protected var controller:<a href="../../interfaces/IController.html">IController</a></code>
|
411
|
+
</div>
|
412
|
+
<a name="instance"></a>
|
413
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
414
|
+
<tr>
|
415
|
+
<td class="detailHeaderName">instance</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td>
|
416
|
+
</tr>
|
417
|
+
</table>
|
418
|
+
<div class="detailBody">
|
419
|
+
<code>protected static var instance:<a href="../../interfaces/IFacade.html">IFacade</a></code>
|
420
|
+
</div>
|
421
|
+
<a name="model"></a>
|
422
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
423
|
+
<tr>
|
424
|
+
<td class="detailHeaderName">model</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td>
|
425
|
+
</tr>
|
426
|
+
</table>
|
427
|
+
<div class="detailBody">
|
428
|
+
<code>protected var model:<a href="../../interfaces/IModel.html">IModel</a></code>
|
429
|
+
</div>
|
430
|
+
<a name="view"></a>
|
431
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
432
|
+
<tr>
|
433
|
+
<td class="detailHeaderName">view</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td>
|
434
|
+
</tr>
|
435
|
+
</table>
|
436
|
+
<div class="detailBody">
|
437
|
+
<code>protected var view:<a href="../../interfaces/IView.html">IView</a></code>
|
438
|
+
</div>
|
439
|
+
<a name="constructorDetail"></a>
|
440
|
+
<div class="detailSectionHeader">Constructor detail</div>
|
441
|
+
<a name="Facade()"></a>
|
442
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
443
|
+
<tr>
|
444
|
+
<td class="detailHeaderName">Facade</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
|
445
|
+
</tr>
|
446
|
+
</table>
|
447
|
+
<div class="detailBody">
|
448
|
+
<code>public function Facade()</code><p>
|
449
|
+
Constructor.
|
450
|
+
|
451
|
+
<P>
|
452
|
+
This <code>IFacade</code> implementation is a Singleton,
|
453
|
+
so you should not call the constructor
|
454
|
+
directly, but instead call the static Singleton
|
455
|
+
Factory method <code>Facade.getInstance()</code>
|
456
|
+
|
457
|
+
</p><br>
|
458
|
+
<span class="label">Throws</span>
|
459
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
460
|
+
<tr>
|
461
|
+
<td width="20"></td><td><code></code> — Error if Singleton instance has already been constructed
|
462
|
+
|
463
|
+
</td>
|
464
|
+
</tr>
|
465
|
+
</table>
|
466
|
+
</div>
|
467
|
+
<a name="methodDetail"></a>
|
468
|
+
<div class="detailSectionHeader">Method detail</div>
|
469
|
+
<a name="getInstance()"></a>
|
470
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
471
|
+
<tr>
|
472
|
+
<td class="detailHeaderName">getInstance</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
|
473
|
+
</tr>
|
474
|
+
</table>
|
475
|
+
<div class="detailBody">
|
476
|
+
<code>public static function getInstance():<a href="../../interfaces/IFacade.html">IFacade</a></code><p>
|
477
|
+
Facade Singleton Factory method
|
478
|
+
|
479
|
+
</p><p></p>
|
480
|
+
<span class="label">Returns</span>
|
481
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
482
|
+
<tr>
|
483
|
+
<td width="20"></td><td><code><a href="../../interfaces/IFacade.html">IFacade</a></code> —
|
484
|
+
the Singleton instance of the Facade
|
485
|
+
|
486
|
+
|
487
|
+
</td>
|
488
|
+
</tr>
|
489
|
+
</table>
|
490
|
+
</div>
|
491
|
+
<a name="hasCommand()"></a>
|
492
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
493
|
+
<tr>
|
494
|
+
<td class="detailHeaderName">hasCommand</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
495
|
+
</tr>
|
496
|
+
</table>
|
497
|
+
<div class="detailBody">
|
498
|
+
<code>public function hasCommand(notificationName:String):Boolean</code><p>
|
499
|
+
Check if a Command is registered for a given Notification
|
500
|
+
|
501
|
+
</p><span class="label">Parameters</span>
|
502
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
503
|
+
<tr>
|
504
|
+
<td width="20px"></td><td><code><span class="label">notificationName</span>:String</code></td>
|
505
|
+
</tr>
|
506
|
+
</table>
|
507
|
+
<p></p>
|
508
|
+
<span class="label">Returns</span>
|
509
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
510
|
+
<tr>
|
511
|
+
<td width="20"></td><td><code>Boolean</code> — whether a Command is currently registered for the given <code>notificationName</code>.
|
512
|
+
</td>
|
513
|
+
</tr>
|
514
|
+
</table>
|
515
|
+
</div>
|
516
|
+
<a name="hasMediator()"></a>
|
517
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
518
|
+
<tr>
|
519
|
+
<td class="detailHeaderName">hasMediator</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
520
|
+
</tr>
|
521
|
+
</table>
|
522
|
+
<div class="detailBody">
|
523
|
+
<code>public function hasMediator(mediatorName:String):Boolean</code><p>
|
524
|
+
Check if a Mediator is registered or not
|
525
|
+
|
526
|
+
</p><span class="label">Parameters</span>
|
527
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
528
|
+
<tr>
|
529
|
+
<td width="20px"></td><td><code><span class="label">mediatorName</span>:String</code></td>
|
530
|
+
</tr>
|
531
|
+
</table>
|
532
|
+
<p></p>
|
533
|
+
<span class="label">Returns</span>
|
534
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
535
|
+
<tr>
|
536
|
+
<td width="20"></td><td><code>Boolean</code> — whether a Mediator is registered with the given <code>mediatorName</code>.
|
537
|
+
</td>
|
538
|
+
</tr>
|
539
|
+
</table>
|
540
|
+
</div>
|
541
|
+
<a name="hasProxy()"></a>
|
542
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
543
|
+
<tr>
|
544
|
+
<td class="detailHeaderName">hasProxy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
545
|
+
</tr>
|
546
|
+
</table>
|
547
|
+
<div class="detailBody">
|
548
|
+
<code>public function hasProxy(proxyName:String):Boolean</code><p>
|
549
|
+
Check if a Proxy is registered
|
550
|
+
|
551
|
+
</p><span class="label">Parameters</span>
|
552
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
553
|
+
<tr>
|
554
|
+
<td width="20px"></td><td><code><span class="label">proxyName</span>:String</code></td>
|
555
|
+
</tr>
|
556
|
+
</table>
|
557
|
+
<p></p>
|
558
|
+
<span class="label">Returns</span>
|
559
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
560
|
+
<tr>
|
561
|
+
<td width="20"></td><td><code>Boolean</code> — whether a Proxy is currently registered with the given <code>proxyName</code>.
|
562
|
+
</td>
|
563
|
+
</tr>
|
564
|
+
</table>
|
565
|
+
</div>
|
566
|
+
<a name="initializeController()"></a>
|
567
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
568
|
+
<tr>
|
569
|
+
<td class="detailHeaderName">initializeController</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
570
|
+
</tr>
|
571
|
+
</table>
|
572
|
+
<div class="detailBody">
|
573
|
+
<code>protected function initializeController():void</code><p>
|
574
|
+
Initialize the <code>Controller</code>.
|
575
|
+
|
576
|
+
<P>
|
577
|
+
Called by the <code>initializeFacade</code> method.
|
578
|
+
Override this method in your subclass of <code>Facade</code>
|
579
|
+
if one or both of the following are true:
|
580
|
+
<UL>
|
581
|
+
<LI> You wish to initialize a different <code>IController</code>.</LI>
|
582
|
+
<LI> You have <code>Commands</code> to register with the <code>Controller</code> at startup.</code>. </LI>
|
583
|
+
</UL>
|
584
|
+
If you don't want to initialize a different <code>IController</code>,
|
585
|
+
call <code>super.initializeController()</code> at the beginning of your
|
586
|
+
method, then register <code>Command</code>s.
|
587
|
+
</P>
|
588
|
+
</p></div>
|
589
|
+
<a name="initializeFacade()"></a>
|
590
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
591
|
+
<tr>
|
592
|
+
<td class="detailHeaderName">initializeFacade</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
593
|
+
</tr>
|
594
|
+
</table>
|
595
|
+
<div class="detailBody">
|
596
|
+
<code>protected function initializeFacade():void</code><p>
|
597
|
+
Initialize the Singleton <code>Facade</code> instance.
|
598
|
+
|
599
|
+
<P>
|
600
|
+
Called automatically by the constructor. Override in your
|
601
|
+
subclass to do any subclass specific initializations. Be
|
602
|
+
sure to call <code>super.initializeFacade()</code>, though.</P>
|
603
|
+
</p></div>
|
604
|
+
<a name="initializeModel()"></a>
|
605
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
606
|
+
<tr>
|
607
|
+
<td class="detailHeaderName">initializeModel</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
608
|
+
</tr>
|
609
|
+
</table>
|
610
|
+
<div class="detailBody">
|
611
|
+
<code>protected function initializeModel():void</code><p>
|
612
|
+
Initialize the <code>Model</code>.
|
613
|
+
|
614
|
+
<P>
|
615
|
+
Called by the <code>initializeFacade</code> method.
|
616
|
+
Override this method in your subclass of <code>Facade</code>
|
617
|
+
if one or both of the following are true:
|
618
|
+
<UL>
|
619
|
+
<LI> You wish to initialize a different <code>IModel</code>.</LI>
|
620
|
+
<LI> You have <code>Proxy</code>s to register with the Model that do not
|
621
|
+
retrieve a reference to the Facade at construction time.</code></LI>
|
622
|
+
</UL>
|
623
|
+
If you don't want to initialize a different <code>IModel</code>,
|
624
|
+
call <code>super.initializeModel()</code> at the beginning of your
|
625
|
+
method, then register <code>Proxy</code>s.
|
626
|
+
<P>
|
627
|
+
Note: This method is <i>rarely</i> overridden; in practice you are more
|
628
|
+
likely to use a <code>Command</code> to create and register <code>Proxy</code>s
|
629
|
+
with the <code>Model</code>, since <code>Proxy</code>s with mutable data will likely
|
630
|
+
need to send <code>INotification</code>s and thus will likely want to fetch a reference to
|
631
|
+
the <code>Facade</code> during their construction.
|
632
|
+
</P>
|
633
|
+
</p></div>
|
634
|
+
<a name="initializeView()"></a>
|
635
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
636
|
+
<tr>
|
637
|
+
<td class="detailHeaderName">initializeView</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
638
|
+
</tr>
|
639
|
+
</table>
|
640
|
+
<div class="detailBody">
|
641
|
+
<code>protected function initializeView():void</code><p>
|
642
|
+
Initialize the <code>View</code>.
|
643
|
+
|
644
|
+
<P>
|
645
|
+
Called by the <code>initializeFacade</code> method.
|
646
|
+
Override this method in your subclass of <code>Facade</code>
|
647
|
+
if one or both of the following are true:
|
648
|
+
<UL>
|
649
|
+
<LI> You wish to initialize a different <code>IView</code>.</LI>
|
650
|
+
<LI> You have <code>Observers</code> to register with the <code>View</code></LI>
|
651
|
+
</UL>
|
652
|
+
If you don't want to initialize a different <code>IView</code>,
|
653
|
+
call <code>super.initializeView()</code> at the beginning of your
|
654
|
+
method, then register <code>IMediator</code> instances.
|
655
|
+
<P>
|
656
|
+
Note: This method is <i>rarely</i> overridden; in practice you are more
|
657
|
+
likely to use a <code>Command</code> to create and register <code>Mediator</code>s
|
658
|
+
with the <code>View</code>, since <code>IMediator</code> instances will need to send
|
659
|
+
<code>INotification</code>s and thus will likely want to fetch a reference
|
660
|
+
to the <code>Facade</code> during their construction.
|
661
|
+
</P>
|
662
|
+
</p></div>
|
663
|
+
<a name="notifyObservers()"></a>
|
664
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
665
|
+
<tr>
|
666
|
+
<td class="detailHeaderName">notifyObservers</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
667
|
+
</tr>
|
668
|
+
</table>
|
669
|
+
<div class="detailBody">
|
670
|
+
<code>public function notifyObservers(notification:<a href="../../interfaces/INotification.html">INotification</a>):void</code><p>
|
671
|
+
Notify <code>Observer</code>s.
|
672
|
+
<P>
|
673
|
+
This method is left public mostly for backward
|
674
|
+
compatibility, and to allow you to send custom
|
675
|
+
notification classes using the facade.</P>
|
676
|
+
P>
|
677
|
+
Usually you should just call sendNotification
|
678
|
+
and pass the parameters, never having to
|
679
|
+
construct the notification yourself.</P>
|
680
|
+
|
681
|
+
</p><span class="label">Parameters</span>
|
682
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
683
|
+
<tr>
|
684
|
+
<td width="20px"></td><td><code><span class="label">notification</span>:<a href="../../interfaces/INotification.html">INotification</a></code> — the <code>INotification</code> to have the <code>View</code> notify <code>Observers</code> of.
|
685
|
+
</td>
|
686
|
+
</tr>
|
687
|
+
</table>
|
688
|
+
</div>
|
689
|
+
<a name="registerCommand()"></a>
|
690
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
691
|
+
<tr>
|
692
|
+
<td class="detailHeaderName">registerCommand</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
693
|
+
</tr>
|
694
|
+
</table>
|
695
|
+
<div class="detailBody">
|
696
|
+
<code>public function registerCommand(notificationName:String, commandClassRef:Class):void</code><p>
|
697
|
+
Register an <code>ICommand</code> with the <code>Controller</code> by Notification name.
|
698
|
+
|
699
|
+
</p><span class="label">Parameters</span>
|
700
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
701
|
+
<tr>
|
702
|
+
<td width="20px"></td><td><code><span class="label">notificationName</span>:String</code> — the name of the <code>INotification</code> to associate the <code>ICommand</code> with
|
703
|
+
</td>
|
704
|
+
</tr>
|
705
|
+
<tr>
|
706
|
+
<td class="paramSpacer"> </td>
|
707
|
+
</tr>
|
708
|
+
<tr>
|
709
|
+
<td width="20px"></td><td><code><span class="label">commandClassRef</span>:Class</code> — a reference to the Class of the <code>ICommand</code>
|
710
|
+
</td>
|
711
|
+
</tr>
|
712
|
+
</table>
|
713
|
+
</div>
|
714
|
+
<a name="registerMediator()"></a>
|
715
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
716
|
+
<tr>
|
717
|
+
<td class="detailHeaderName">registerMediator</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
718
|
+
</tr>
|
719
|
+
</table>
|
720
|
+
<div class="detailBody">
|
721
|
+
<code>public function registerMediator(mediator:<a href="../../interfaces/IMediator.html">IMediator</a>):void</code><p>
|
722
|
+
Register a <code>IMediator</code> with the <code>View</code>.
|
723
|
+
|
724
|
+
</p><span class="label">Parameters</span>
|
725
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
726
|
+
<tr>
|
727
|
+
<td width="20px"></td><td><code><span class="label">mediator</span>:<a href="../../interfaces/IMediator.html">IMediator</a></code> — the name to associate with this <code>IMediator</code>
|
728
|
+
</td>
|
729
|
+
</tr>
|
730
|
+
</table>
|
731
|
+
</div>
|
732
|
+
<a name="registerProxy()"></a>
|
733
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
734
|
+
<tr>
|
735
|
+
<td class="detailHeaderName">registerProxy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
736
|
+
</tr>
|
737
|
+
</table>
|
738
|
+
<div class="detailBody">
|
739
|
+
<code>public function registerProxy(proxy:<a href="../../interfaces/IProxy.html">IProxy</a>):void</code><p>
|
740
|
+
Register an <code>IProxy</code> with the <code>Model</code> by name.
|
741
|
+
|
742
|
+
</p><span class="label">Parameters</span>
|
743
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
744
|
+
<tr>
|
745
|
+
<td width="20px"></td><td><code><span class="label">proxy</span>:<a href="../../interfaces/IProxy.html">IProxy</a></code> — the name of the <code>IProxy</code>.
|
746
|
+
</td>
|
747
|
+
</tr>
|
748
|
+
</table>
|
749
|
+
</div>
|
750
|
+
<a name="removeCommand()"></a>
|
751
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
752
|
+
<tr>
|
753
|
+
<td class="detailHeaderName">removeCommand</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
754
|
+
</tr>
|
755
|
+
</table>
|
756
|
+
<div class="detailBody">
|
757
|
+
<code>public function removeCommand(notificationName:String):void</code><p>
|
758
|
+
Remove a previously registered <code>ICommand</code> to <code>INotification</code> mapping from the Controller.
|
759
|
+
|
760
|
+
</p><span class="label">Parameters</span>
|
761
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
762
|
+
<tr>
|
763
|
+
<td width="20px"></td><td><code><span class="label">notificationName</span>:String</code> — the name of the <code>INotification</code> to remove the <code>ICommand</code> mapping for
|
764
|
+
</td>
|
765
|
+
</tr>
|
766
|
+
</table>
|
767
|
+
</div>
|
768
|
+
<a name="removeMediator()"></a>
|
769
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
770
|
+
<tr>
|
771
|
+
<td class="detailHeaderName">removeMediator</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
772
|
+
</tr>
|
773
|
+
</table>
|
774
|
+
<div class="detailBody">
|
775
|
+
<code>public function removeMediator(mediatorName:String):<a href="../../interfaces/IMediator.html">IMediator</a></code><p>
|
776
|
+
Remove an <code>IMediator</code> from the <code>View</code>.
|
777
|
+
|
778
|
+
</p><span class="label">Parameters</span>
|
779
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
780
|
+
<tr>
|
781
|
+
<td width="20px"></td><td><code><span class="label">mediatorName</span>:String</code> — name of the <code>IMediator</code> to be removed.
|
782
|
+
</td>
|
783
|
+
</tr>
|
784
|
+
</table>
|
785
|
+
<p></p>
|
786
|
+
<span class="label">Returns</span>
|
787
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
788
|
+
<tr>
|
789
|
+
<td width="20"></td><td><code><a href="../../interfaces/IMediator.html">IMediator</a></code> —
|
790
|
+
the <code>IMediator</code> that was removed from the <code>View</code>
|
791
|
+
|
792
|
+
|
793
|
+
</td>
|
794
|
+
</tr>
|
795
|
+
</table>
|
796
|
+
</div>
|
797
|
+
<a name="removeProxy()"></a>
|
798
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
799
|
+
<tr>
|
800
|
+
<td class="detailHeaderName">removeProxy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
801
|
+
</tr>
|
802
|
+
</table>
|
803
|
+
<div class="detailBody">
|
804
|
+
<code>public function removeProxy(proxyName:String):<a href="../../interfaces/IProxy.html">IProxy</a></code><p>
|
805
|
+
Remove an <code>IProxy</code> from the <code>Model</code> by name.
|
806
|
+
</p><span class="label">Parameters</span>
|
807
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
808
|
+
<tr>
|
809
|
+
<td width="20px"></td><td><code><span class="label">proxyName</span>:String</code> — the <code>IProxy</code> to remove from the <code>Model</code>.
|
810
|
+
</td>
|
811
|
+
</tr>
|
812
|
+
</table>
|
813
|
+
<p></p>
|
814
|
+
<span class="label">Returns</span>
|
815
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
816
|
+
<tr>
|
817
|
+
<td width="20"></td><td><code><a href="../../interfaces/IProxy.html">IProxy</a></code> —
|
818
|
+
the <code>IProxy</code> that was removed from the <code>Model</code>
|
819
|
+
|
820
|
+
|
821
|
+
</td>
|
822
|
+
</tr>
|
823
|
+
</table>
|
824
|
+
</div>
|
825
|
+
<a name="retrieveMediator()"></a>
|
826
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
827
|
+
<tr>
|
828
|
+
<td class="detailHeaderName">retrieveMediator</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
829
|
+
</tr>
|
830
|
+
</table>
|
831
|
+
<div class="detailBody">
|
832
|
+
<code>public function retrieveMediator(mediatorName:String):<a href="../../interfaces/IMediator.html">IMediator</a></code><p>
|
833
|
+
Retrieve an <code>IMediator</code> from the <code>View</code>.
|
834
|
+
|
835
|
+
</p><span class="label">Parameters</span>
|
836
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
837
|
+
<tr>
|
838
|
+
<td width="20px"></td><td><code><span class="label">mediatorName</span>:String</code></td>
|
839
|
+
</tr>
|
840
|
+
</table>
|
841
|
+
<p></p>
|
842
|
+
<span class="label">Returns</span>
|
843
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
844
|
+
<tr>
|
845
|
+
<td width="20"></td><td><code><a href="../../interfaces/IMediator.html">IMediator</a></code> —
|
846
|
+
the <code>IMediator</code> previously registered with the given <code>mediatorName</code>.
|
847
|
+
|
848
|
+
|
849
|
+
</td>
|
850
|
+
</tr>
|
851
|
+
</table>
|
852
|
+
</div>
|
853
|
+
<a name="retrieveProxy()"></a>
|
854
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
855
|
+
<tr>
|
856
|
+
<td class="detailHeaderName">retrieveProxy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
857
|
+
</tr>
|
858
|
+
</table>
|
859
|
+
<div class="detailBody">
|
860
|
+
<code>public function retrieveProxy(proxyName:String):<a href="../../interfaces/IProxy.html">IProxy</a></code><p>
|
861
|
+
Retrieve an <code>IProxy</code> from the <code>Model</code> by name.
|
862
|
+
|
863
|
+
</p><span class="label">Parameters</span>
|
864
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
865
|
+
<tr>
|
866
|
+
<td width="20px"></td><td><code><span class="label">proxyName</span>:String</code> — the name of the proxy to be retrieved.
|
867
|
+
</td>
|
868
|
+
</tr>
|
869
|
+
</table>
|
870
|
+
<p></p>
|
871
|
+
<span class="label">Returns</span>
|
872
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
873
|
+
<tr>
|
874
|
+
<td width="20"></td><td><code><a href="../../interfaces/IProxy.html">IProxy</a></code> —
|
875
|
+
the <code>IProxy</code> instance previously registered with the given <code>proxyName</code>.
|
876
|
+
|
877
|
+
|
878
|
+
</td>
|
879
|
+
</tr>
|
880
|
+
</table>
|
881
|
+
</div>
|
882
|
+
<a name="sendNotification()"></a>
|
883
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
884
|
+
<tr>
|
885
|
+
<td class="detailHeaderName">sendNotification</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
|
886
|
+
</tr>
|
887
|
+
</table>
|
888
|
+
<div class="detailBody">
|
889
|
+
<code>public function sendNotification(notificationName:String, body:Object = null, type:String = null):void</code><p>
|
890
|
+
Create and send an <code>INotification</code>.
|
891
|
+
|
892
|
+
<P>
|
893
|
+
Keeps us from having to construct new notification
|
894
|
+
instances in our implementation code.
|
895
|
+
</p><span class="label">Parameters</span>
|
896
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
897
|
+
<tr>
|
898
|
+
<td width="20px"></td><td><code><span class="label">notificationName</span>:String</code> — the name of the notiification to send
|
899
|
+
</td>
|
900
|
+
</tr>
|
901
|
+
<tr>
|
902
|
+
<td class="paramSpacer"> </td>
|
903
|
+
</tr>
|
904
|
+
<tr>
|
905
|
+
<td width="20px"></td><td><code><span class="label">body</span>:Object</code> (default = <code>null</code>)<code></code> — the body of the notification (optional)
|
906
|
+
</td>
|
907
|
+
</tr>
|
908
|
+
<tr>
|
909
|
+
<td class="paramSpacer"> </td>
|
910
|
+
</tr>
|
911
|
+
<tr>
|
912
|
+
<td width="20px"></td><td><code><span class="label">type</span>:String</code> (default = <code>null</code>)<code></code> — the type of the notification (optional)
|
913
|
+
</td>
|
914
|
+
</tr>
|
915
|
+
</table>
|
916
|
+
</div>
|
917
|
+
<a name="constantDetail"></a>
|
918
|
+
<div class="detailSectionHeader">Constant detail</div>
|
919
|
+
<a name="SINGLETON_MSG"></a>
|
920
|
+
<table cellspacing="0" cellpadding="0" class="detailHeader">
|
921
|
+
<tr>
|
922
|
+
<td class="detailHeaderName">SINGLETON_MSG</td><td class="detailHeaderType">constant</td>
|
923
|
+
</tr>
|
924
|
+
</table>
|
925
|
+
<div class="detailBody">
|
926
|
+
<code>protected const SINGLETON_MSG:String = "Facade Singleton already constructed!"</code>
|
927
|
+
</div>
|
928
|
+
<br>
|
929
|
+
<br>
|
930
|
+
<hr>
|
931
|
+
<br>
|
932
|
+
<p></p>
|
933
|
+
<center class="copyright">
|
934
|
+
<footer>
|
935
|
+
</footer>
|
936
|
+
</center>
|
937
|
+
</div>
|
938
|
+
</body>
|
939
|
+
</html>
|
940
|
+
<!-- -->
|