|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Notifying
Potential element of the Facets notification tree.
Notifying
is the root of the Facets type hierarchy
for both targets and targeters.
Whenever a target acts on the element it represents in the application (usually though not necessarily in response to widget input relayed by a surface facet) the application root must be notified that a retargeting is needed to ensure view and control consistency.
Notification is triggered in the Facets implementation of by application code calling notifyMonitor
on the
target, and relayed to the application root via a tree of Notifying
s,
all either STarget
s or STargeter
s.
A Notifying
is attached to the tree using setMonitor
to set one of the following as its notification monitor:
STarget
for which TargetCore.notifiesTargeter()
returns false
,
the STarget
of which it is a childSTarget
for which TargetCore.notifiesTargeter()
returns true
, the STargeter
of which it is the targetSTargeter
, its parent in the targeter
tree; for the root of the targeter tree, the surface itselfIn all three cases the monitor is set during retargeting; applications need only ensure that notification is triggered whenever a target acts on the application element it represents.
Nested Class Summary | |
---|---|
static class |
Notifying.Impact
Allows a Notifying to refine its notification. |
Method Summary | |
---|---|
Notifying.Impact |
impact()
Allows this Notifying to specify a default Notifying.Impact . |
Notifiable |
monitor()
As last set by setMonitor . |
void |
notifyMonitor(Notifying.Impact impact)
Call notify on the parent monitor in the notification tree,
typically with itself as parameter to the Notice passed. |
void |
setMonitor(Notifiable monitor)
Attach the Notifying to a Notifiable parent
in the notification tree. |
Methods inherited from interface facets.core.superficial.Notifiable |
---|
notify |
Method Detail |
---|
void setMonitor(Notifiable monitor)
Notifying
to a Notifiable
parent
in the notification tree.
void notifyMonitor(Notifying.Impact impact)
notify
on the parent monitor in the notification tree,
typically with itself as parameter to the Notice
passed.
Has no effect if no monitor has been set.
This is the usual means to trigger a surface retargeting, being called
by an exposing SFacet
on its target.
impact
- suggests the level of retargeting requiredNotifiable monitor()
setMonitor
.
Complains if none set.
Notifying.Impact impact()
Notifying
to specify a default Notifying.Impact
.
Notifying.Impact.DEFAULT
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |