|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IView
The interface definition for a PureMVC View.
In PureMVC, IView
implementors assume these responsibilities:
In PureMVC, the View
class assumes these responsibilities:
IMediator
instances.IMediators
.INotification
in the
application.IObservers
to an
INotification
's observer list.INotification
.IObservers
of a given
INotification
when it broadcast.
IMediator
,
IObserver
,
INotification
Method Summary | |
---|---|
boolean |
hasMediator(java.lang.String mediatorName)
Check if a Mediator is registered or not |
void |
notifyObservers(INotification note)
Notify the IObservers for a particular
INotification . |
void |
registerMediator(IMediator mediator)
Register an IMediator instance with the View . |
void |
registerObserver(java.lang.String noteName,
IObserver observer)
Register an IObserver to be notified of
INotifications with a given name. |
IMediator |
removeMediator(java.lang.String mediatorName)
Remove an IMediator from the View . |
IMediator |
retrieveMediator(java.lang.String mediatorName)
Retrieve an IMediator from the View . |
Method Detail |
---|
void registerObserver(java.lang.String noteName, IObserver observer)
IObserver
to be notified of
INotifications
with a given name.
noteName
- the name of the INotifications
to notify this
IObserver
ofobserver
- the IObserver
to registervoid notifyObservers(INotification note)
IObservers
for a particular
INotification
.
All previously attached IObservers
for this
INotification
's list are notified and are passed a
reference to the INotification
in the order in which they
were registered.
note
- the INotification
to notify
IObservers
of.void registerMediator(IMediator mediator)
IMediator
instance with the View
.
Registers the IMediator
so that it can be retrieved by
name, and further interrogates the IMediator
for its
INotification
interests.
If the IMediator
returns any INotification
names to be notified about, an Observer
is created
encapsulating the IMediator
instance's
handleNotification
method and registering it as an
Observer
for all INotifications
the
IMediator
is interested in.
mediator
- a reference to the IMediator
instanceIMediator retrieveMediator(java.lang.String mediatorName)
IMediator
from the View
.
mediatorName
- the name of the IMediator
instance to retrieve.
IMediator
instance previously registered with
the given mediatorName
.IMediator removeMediator(java.lang.String mediatorName)
IMediator
from the View
.
mediatorName
- name of the IMediator
instance to be removed.boolean hasMediator(java.lang.String mediatorName)
mediatorName
-
mediatorName
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |