Datasheet

Chapter 1: Introducing Cairngorm
9
Once the command class has performed any remote calls, it updates the ModelLocator. Once again, this
causes any views that are binding to properties on the ModelLocator to update themselves.
Cairngorm Project Organization
Not only is the Cairngorm framework organized into packages, but so are projects created with the
framework.
When you build a project in Cairngorm, the classes you create get organized into specific packages. You
do this by creating sub - folders in your project s src folder. The particular organization of these packages
can vary greatly. For example, the Cairngorm Store application (
http://www.cairngormdocs.org/
exampleApps/CairngormStoreWeb2_1.zip
) organizes its packages as seen in Figure 1 - 2.
Figure 1 - 2
Figure 1 - 3
However, if you look at the FStop application included in the article Flex 3: Introducing Cairngorm
(cited earlier in this chapter), it organizes its packages as seen in Figure 1 - 3.
Both of these package structures work; however, it is not always clear where you would expect to find a
given type of class. For example, in the Cairngorm Store, events are in a package on the same level as the
business package, while in the FStop application, events are a subpackage of the business package.
c01.indd 9c01.indd 9 10/20/09 12:26:42 PM10/20/09 12:26:42 PM