|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object facets.util.Tracer facets.core.superficial.TargetCore facets.core.superficial.SFrameTarget facets.core.superficial.app.SelectingFrame
public abstract class SelectingFrame
SFrameTarget
that maintains a SSelection
.
SelectingFrame
extends its superclass by
SSelection
defining a portion of its SFrameTarget.framed
content
SFrameTarget
s framing the content
selected.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface facets.core.superficial.STarget |
---|
STarget.Targeted |
Nested classes/interfaces inherited from interface facets.core.superficial.Notifying |
---|
Notifying.Impact |
Field Summary |
---|
Fields inherited from class facets.core.superficial.SFrameTarget |
---|
framed |
Fields inherited from class facets.core.superficial.TargetCore |
---|
targets |
Fields inherited from interface facets.core.superficial.STarget |
---|
NONE |
Constructor Summary | |
---|---|
SelectingFrame(java.lang.String title,
java.lang.Object content)
Unique constructor. |
Method Summary | |
---|---|
protected boolean |
blockNotification()
Enables notification to be restricted to this member of the tree. |
void |
defineSelection(java.lang.Object definition)
Define a selection within the content framed . |
java.lang.Object |
identity()
Return an object that is as far as possible unique for the implementation. |
Notifying.Impact |
impact()
Allows this Notifying to specify a default Notifying.Impact . |
Notifiable |
monitor()
The current Notifiable in the notification tree,
as set with setMonitor . |
protected static TypedNode |
newDebugContentNode(java.lang.String title,
java.lang.Object source)
|
protected static TypedNode |
newDebugContentNode(java.lang.String title,
java.lang.Object[] source)
|
protected static TypedNode |
newDebugMonitorNode(Notifiable monitor)
|
TypedNode |
newGraphNode()
Returns a descriptive node for use in debug object graph. |
void |
notify(Notice notice)
Respond to the Notice passed. |
void |
notifyMonitor(Notifying.Impact impact)
Call notify on the parent monitor in the notification tree,
typically with itself as parameter to the Notice passed. |
SSelection |
selection()
The current selection within the content framed . |
SFrameTarget |
selectionFrame()
Return a SFrameTarget framing the currently selected content. |
void |
setMonitor(Notifiable monitor)
Attach the Notifying to a Notifiable parent
in the notification tree. |
protected void |
setSelection(SSelection selection)
Sets the selection to be returned by selection() . |
Methods inherited from class facets.core.superficial.SFrameTarget |
---|
newDebugChildren, notifiesTargeter, setFramedState, title |
Methods inherited from class facets.core.superficial.TargetCore |
---|
elements, findMonitorOfType, isLive, join, lazyElements, newTargeter, setElements, setLive, toString, wantsFocus |
Methods inherited from class facets.util.Tracer |
---|
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface facets.core.superficial.Notifying |
---|
impact, monitor, notifyMonitor, setMonitor |
Methods inherited from interface facets.core.superficial.Notifiable |
---|
notify |
Constructor Detail |
---|
public SelectingFrame(java.lang.String title, java.lang.Object content)
title
- passed to superclasscontent
- passed to superclassMethod Detail |
---|
public void defineSelection(java.lang.Object definition)
framed
.
definition
- in the default implementation is cast to a SSelection
and passed to setSelection(SSelection)
public final SSelection selection()
framed
.
SSelection
last set with setSelection(SSelection)
protected final void setSelection(SSelection selection)
selection()
.
This method is defined protected as it should only be called by subclasses;
external callers should use the more general defineSelection(Object)
.
selection
- must have a SSelection.content()
equal to
SFrameTarget.framed
.public SFrameTarget selectionFrame()
SFrameTarget
framing the currently selected content.
Content framed should be that returned in the selection
methods of selection()
.
Default frames a single selection, titled from the selected content or
else using SFrameTarget.title()
.
protected static final TypedNode newDebugContentNode(java.lang.String title, java.lang.Object source)
protected static final TypedNode newDebugContentNode(java.lang.String title, java.lang.Object[] source)
protected static final TypedNode newDebugMonitorNode(Notifiable monitor)
public final TypedNode newGraphNode()
public Notifying.Impact impact()
Notifying
Notifying
to specify a default Notifying.Impact
.
impact
in interface Notifying
Notifying.Impact.DEFAULT
public java.lang.Object identity()
Identified
This will usually be a class instance counter.
identity
in interface Identified
public final Notifiable monitor()
Notifiable
in the notification tree,
as set with setMonitor
.
Complains if no parent has been set.
monitor
in interface Notifying
public void notify(Notice notice)
Notifiable
Notice
passed.
When this method is called, the Notifiable
should
respond based on
Notice
passed.
notify
in interface Notifiable
public final void notifyMonitor(Notifying.Impact impact)
Notifying
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.
notifyMonitor
in interface Notifying
impact
- suggests the level of retargeting requiredprotected boolean blockNotification()
Checked by notify(Notice)
; default returns false
.
public final void setMonitor(Notifiable monitor)
Notifying
Notifying
to a Notifiable
parent
in the notification tree.
setMonitor
in interface Notifying
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |