1.Front Controller Listens for User Gestures
前端的控件監聽用戶的行為。注意它只是監聽,并不會做任何反應。
2.Commands Do All the Work
控件監聽以后調用Commands來做相應的事情,Command做了所有工作。
3.Delegate Server-Side Business Logic to Business Delegates
把服務器端的業務邏輯委托到 Bussiness Delegates中。因為很多時候command需要獲得服務器端數據,所以這樣一來它可以直接調用Bussiness Delegates而不用關注如何連接數據的細節,實現了信息隱藏。
4.Business Delegate Finds Services with the Service Locator
Command調用Business Delegate 后,Business Delegate 通過Service Locator來找到相應的RPC services,然后執行實現從服務器端取數據。
5.Transfer Data as Value Objects
把傳輸過來的數據存儲為Value Objects。這點大家應該都很熟悉,比如想要查詢一個公告,就必定創建一個公告類,來存儲每一個公告的標題等信息。
6.Store State in the Model Locator and Let Model Notify View
在Model Locator 保存狀態并且能使Model檢測到View的變化。這樣一來用戶操作就能直接影響Model,比如添加物品到購物車,Model中的購物商品就會自動增加。
posted on 2007-01-23 08:47
???MengChuChen 閱讀(289)
評論(0) 編輯 收藏 所屬分類:
flex2.0