<?xml version="1.0"?>
<doc>
<assembly>
<name>PureMVC.DotNETCF.20</name>
</assembly>
<members>
<member name="T:org.puremvc.csharp.interfaces.IObserver">
<summary>
The interface definition for a PureMVC Observer
</summary>
<remarks>
<para>In PureMVC, <c>IObserver</c> implementors assume these responsibilities:</para>
<list type="bullet">
<item>Encapsulate the notification (callback) method of the interested object</item>
<item>Encapsulate the notification context (<c>this</c>) of the interested object</item>
<item>Provide methods for setting the interested object' notification method and context</item>
<item>Provide a method for notifying the interested object</item>
</list>
<para>PureMVC does not rely upon underlying event models</para>
<para>The Observer Pattern as implemented within PureMVC exists to support event driven communication between the application and the actors of the MVC triad</para>
<para>An Observer is an object that encapsulates information about an interested object with a notification method that should be called when an <c>INotification</c> is broadcast. The Observer then acts as a proxy for notifying the interested object</para>
<para>Observers can receive <c>Notification</c>s by having their <c>notifyObserver</c> method invoked, passing in an object implementing the <c>INotification</c> interface, such as a subclass of <c>Notification</c></para>
</remarks>
<see cref="T:org.puremvc.csharp.interfaces.IView"/>
<see cref="T:org.puremvc.csharp.interfaces.INotification"/>
</member>
<member name="M:org.puremvc.csharp.interfaces.IObserver.setNotifyMethod(System.String)">
<summary>
Set the notification method
</summary>
<remarks>The notification method should take one parameter of type <c>INotification</c></remarks>
<param name="notifyMethod">The notification (callback) method of the interested object</param>
</member>
<member name="M:org.puremvc.csharp.interfaces.IObserver.setNotifyContext(System.Object)">
<summary>
Set the notification context
</summary>
<param name="notifyContext">The notification context (this) of the interested object</param>
</member>
<member name="M:org.puremvc.csharp.interfaces.IObserver.notifyObserver(org.puremvc.csharp.interfaces.INotification)">
<summary>
Notify the interested object
</summary>
<param name="notification">The <c>INotification</c> to pass to the interested object's notification method</param>
</member>
<member name="M:org.puremvc.csharp.interfaces.IObserver.compareNotifyContext(System.Object)">
<summary>
Compare the given object to the notificaiton context object
</summary>
<param name="obj">The object to compare</param>
<returns>Indicates if the notification context and the object are the same.</returns>
</member>
<member name="T:org.puremvc.csharp.interfaces.IModel">
<summary>
The interface definition for a PureMVC Model
</summary>
<remarks>
<para>In PureMVC, <c>IModel</c> implementors provide access to <c>IProxy</c> objects by named lookup</para>
<para>An <c>IModel</c> assumes these responsibilities:</para>
<list type="bullet">
<item>Maintain a cache of <c>IProxy</c> instances</item>
<item>Provide methods for registering, retrieving, and removing <c>IProxy</c> instances</item>
</list>
</remarks>
</member>
<member name="M:org.puremvc.csharp.interfaces.IModel.registerProxy(org.puremvc.csharp.interfaces.IProxy)">
<summary>
Register an <c>IProxy</c> instance with the <c>Model</c>
</summary>
<param name="proxy">A reference to the proxy object to be held by the <c>Model</c></param>
</member>
<member name="M:org.puremvc.csharp.interfaces.IModel.retrieveProxy(System.String)">
<summary>
Retrieve an <c>IProxy</c> instance from the Model
</summary>
<param name="proxyName">The name of the proxy to retrieve</param>
<returns>The <c>IProxy</c> instance previously registered with the given <c>proxyName</c></returns>
</member>
<member name="M:org.puremvc.csharp.interfaces.IModel.removeProxy(System.String)">
<summary>
Remove an <c>IProxy</c> instance from the Model
</summary>
<param name="proxyName">The name of the <c>IProxy</c> instance to be removed</param>
</member>
<member name="M:org.puremvc.csharp.interfaces.IModel.hasProxy(System.String)">
<summary>
Check if a Proxy is registered
</summary>
<param name="proxyName">The name of the proxy to check for</param>
<returns>whether a Proxy is currently registered with the given <c>proxyName</c>.</returns>
</member>
<member name="T:org.puremvc.csharp.interfaces.IMediator">
<summary>
The interface definition for a PureMVC Mediator.
</summary>
<remarks>
<para>In PureMVC, <c>IMediator</c> implementors assume these responsibilities:</para>
<list type="bullet">
<item>Implement a common method which returns a list of all <c>INotification</c>s the <c>IMediator</c> has interest in.</item>
<item>Implement a common notification (callback) method</item>
</list>
<para>Additionally, <c>IMediator</c>s typically:</para>
<list type="bullet">
<item>Act as an intermediary between one or more view components such as text boxes or list controls, maintaining references and coordinating their behavior.</item>
<item>In Flash-based apps, this is often the place where event listeners are added to view components, and their handlers implemented</item>
<item>Respond to and generate <c>INotifications</c>, interacting with of the rest of the PureMVC app</item>
</list>
<para>When an <c>IMediator</c> is registered with the <c>IView</c>, the <c>IView</c> will call the <c>IMediator</c>'s <c>listNotificationInterests</c> method. The <c>IMediator</c> will return an <c>IList</c> of <c>INotification</c> names which it wishes to be notified about</para>
<para>The <c>IView</c> will then create an <c>Observer</c> object encapsulating that <c>IMediator</c>'s (<c>handleNotification</c>) method and register it as an Observer for each <c>INotification</c> name returned by <c>listNotificationInterests</c></para>
<para>A concrete IMediator implementor usually looks something like this:</para>
<example>
<code>
using org.puremvc.csharp.patterns.mediator.~~;
using org.puremvc.csharp.patterns.observer.~~;
using org.puremvc.csharp.core.view.~~;
using com.me.myapp.model.~~;
using com.me.myapp.view.~~;
using com.me.myapp.controller.~~;
using System.Windows.Forms;
using System.Data;
public class MyMediator : Mediator, IMediator {
public MyMediator( viewCompo
没有合适的资源?快使用搜索试试~ 我知道了~
使用PureMVC实现ASP.NET的MVC结构开发
共19个文件
cs:9个
aspx:2个
refresh:1个
4星 · 超过85%的资源 需积分: 10 53 下载量 25 浏览量
2008-09-09
23:03:02
上传
评论
收藏 164KB RAR 举报
温馨提示
这是一个使用C#开发语言的基于PureMVC框架的Web登录Demo,是网上绝无仅有的实例。 本文以初学者的视角,详细地介绍PureMVC在ASP.NET的应用。 PureMVC不仅仅是Flex的MVC框架哦,而且它非常的小巧,还等什么呢,快来试用一下吧。 PureMVC的设计思想真的是很棒的,如果再加上C#3.0的LINQ,那就更加的完美了。 5分,不超值你们骂死我。
资源推荐
资源详情
资源评论
收起资源包目录
PureMVCTest.rar (19个子文件)
PureMVCTest
Welcome.aspx 516B
Default.aspx 2KB
Welcome.aspx.cs 510B
App_Code
DataSet
MyDataSet.xss 849B
MyDataSet.xsd 5KB
MyFacade.cs 2KB
Model
UserProxy.cs 1KB
VO
LoginVO.cs 804B
UserInfo.cs 927B
View
LoginMediator.cs 3KB
Controller
DefaultPageCommand.cs 886B
LoginCommand.cs 2KB
App_Data
PureMVCTest.mdf 2.19MB
PureMVCTest_log.LDF 560KB
Bin
PureMVC.DotNETCF.20.dll 13KB
PureMVC.DotNETCF.20.xml 92KB
PureMVC.DotNETCF.20.dll.refresh 142B
Web.Config 2KB
Default.aspx.cs 527B
共 19 条
- 1
资源评论
- ruyi512014-03-03很好的例子
- lonet2013-03-13实例不错,值得学习!
- liyuelong9172012-08-30感谢你的资源,对我的学习有所帮助!
- aqbeyond2014-09-28坑爹啊,啥都没有。
reallypride
- 粉丝: 12
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功