|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFacade
The interface definition for a PureMVC Facade.
The Facade Pattern suggests providing a single class to act as a central point of communication for a subsystem.
In PureMVC, the Facade acts as an interface between the core MVC actors (Model, View, Controller) and the rest of your application.
IModel,
IView,
IController,
ICommand,
INotification| Method Summary | |
|---|---|
boolean |
hasCommand(java.lang.String notificationName)
Check if a Command is registered for a given Notification |
boolean |
hasMediator(java.lang.String mediatorName)
Check if a Mediator is registered or not |
boolean |
hasProxy(java.lang.String proxyName)
Check if a Proxy is registered |
void |
notifyObservers(INotification note)
Notify Observers of an INotification. |
void |
registerCommand(java.lang.String noteName,
ICommand commandClassRef)
Register an ICommand with the Controller. |
void |
registerMediator(IMediator mediator)
Register an IMediator instance with the View. |
void |
registerProxy(IProxy proxy)
Register an IProxy with the Model by name. |
void |
removeCommand(java.lang.String notificationName)
Remove a previously registered ICommand to INotification mapping from the Controller. |
IMediator |
removeMediator(java.lang.String mediatorName)
Remove a IMediator instance from the View. |
IProxy |
removeProxy(java.lang.String proxyName)
Remove an IProxy instance from the Model by
name. |
IMediator |
retrieveMediator(java.lang.String mediatorName)
Retrieve an IMediator instance from the View. |
IProxy |
retrieveProxy(java.lang.String proxyName)
Retrieve a IProxy from the Model by name. |
| Methods inherited from interface org.puremvc.java.interfaces.INotifier |
|---|
sendNotification, sendNotification, sendNotification |
| Method Detail |
|---|
void notifyObservers(INotification note)
Observers of an INotification.
note - the INotification to have the View
notify observers of.void registerProxy(IProxy proxy)
IProxy with the Model by name.
proxy - the IProxy to be registered with the
Model.IProxy retrieveProxy(java.lang.String proxyName)
IProxy from the Model by name.
proxyName - the name of the IProxy instance to be
retrieved.
IProxy previously regisetered by
proxyName with the Model.IProxy removeProxy(java.lang.String proxyName)
IProxy instance from the Model by
name.
proxyName - the IProxy to remove from the
Model.boolean hasProxy(java.lang.String proxyName)
proxyName -
proxyName.
void registerCommand(java.lang.String noteName,
ICommand commandClassRef)
ICommand with the Controller.
noteName - the name of the INotification to associate the
ICommand with.commandClassRef - a reference to the Class of the
ICommand.void removeCommand(java.lang.String notificationName)
ICommand to INotification mapping from the Controller.
notificationName - the name of the INotification to remove the ICommand mapping forboolean hasCommand(java.lang.String notificationName)
notificationName -
notificationName.void registerMediator(IMediator mediator)
IMediator instance with the View.
mediator - a reference to the IMediator instanceIMediator retrieveMediator(java.lang.String mediatorName)
IMediator instance from the View.
mediatorName - the name of the IMediator instance to retrievve
IMediator previously registered with the given
mediatorName.boolean hasMediator(java.lang.String mediatorName)
mediatorName -
mediatorName.IMediator removeMediator(java.lang.String mediatorName)
IMediator instance from the View.
mediatorName - name of the IMediator instance to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||