|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.util.Tracer
facets.core.superficial.TargetCore
facets.core.superficial.SFrameTarget
facets.core.superficial.app.SelectingFrame
facets.core.superficial.app.IndexingFrame
public abstract class IndexingFrame
SelectingFrame that selects with an SIndexing.
IndexingFrame specialises its superclass for
content that can be selected by index.
| Nested Class Summary | |
|---|---|
static class |
IndexingFrame.FrameTargeter
Targeter for an IndexingFrame. |
| 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 | |
|---|---|
protected |
IndexingFrame(java.lang.String title,
java.lang.Object content)
Core constructor. |
|
IndexingFrame(java.lang.String title,
java.lang.Object[] indexables,
int index)
Convenience constructor for use with simple array content. |
|
IndexingFrame(java.lang.String title,
java.lang.Object content,
SIndexing children)
Main constructor. |
| Method Summary | |
|---|---|
protected boolean |
blockNotification()
Enables notification to be restricted to this member of the tree. |
void |
defineSelection(java.lang.Object definition)
Re-implementation that creates a suitable SSelection. |
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. |
SIndexing |
indexing()
The indexing last set with setIndexing(SIndexing). |
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. |
protected abstract SFrameTarget |
newIndexedFrame(java.lang.Object indexed)
Create a SFrameTarget complying with selectionFrame(). |
STargeter |
newTargeter()
Overrides superclass method. |
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. |
SFrameTarget |
selectionFrame()
Re-implementation. |
void |
setIndexing(SIndexing indexing)
Sets an SIndexing that can index into content of SFrameTarget.framed. |
void |
setMonitor(Notifiable monitor)
Attach the Notifying to a Notifiable parent
in the notification tree. |
| Methods inherited from class facets.core.superficial.app.SelectingFrame |
|---|
selection, setSelection |
| 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, 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 IndexingFrame(java.lang.String title,
java.lang.Object content,
SIndexing children)
title - passed to corecontent - passed to corechildren - passed to setIndexing(SIndexing)
public IndexingFrame(java.lang.String title,
java.lang.Object[] indexables,
int index)
title - passed to core constructorindexables - passed to core and SIndexing constructorsindex - used for SIndexing constructor
protected IndexingFrame(java.lang.String title,
java.lang.Object content)
NOTE Where called from subclass constructors, these must
also create and SIndexing and pass to setIndexing(SIndexing).
title - passed to superclasscontent - passed to superclass| Method Detail |
|---|
public void defineSelection(java.lang.Object definition)
SSelection.
Calls SIndexing.setIndexed(Object) in indexing()
with definition, then SelectingFrame.setSelection(SSelection)
with a new SSelection returning as SSelection.selection()
the new SIndexing.indexed() (which will be definition).
defineSelection in class SelectingFramedefinition - in the default implementation is cast to a SSelection
and passed to SelectingFrame.setSelection(SSelection)public final SFrameTarget selectionFrame()
Returns the SFrameTarget created in
newIndexedFrame(Object).
selectionFrame in class SelectingFrameprotected abstract SFrameTarget newIndexedFrame(java.lang.Object indexed)
SFrameTarget complying with selectionFrame().
indexed - the currently indexed member of SFrameTarget.framedpublic void setIndexing(SIndexing indexing)
SIndexing that can index into content of SFrameTarget.framed.
Also calls defineSelection(Object) with the current
SIndexing.indexed().
indexing - must have SIndexing.indexables()
matching the current state of SFrameTarget.framed.public final SIndexing indexing()
setIndexing(SIndexing).
public STargeter newTargeter()
Must return an IndexingFrame.FrameTargeter.
newTargeter in class TargetCore
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()
NotifyingNotifying to specify a default Notifying.Impact.
impact in interface NotifyingNotifying.Impact.DEFAULTpublic java.lang.Object identity()
IdentifiedThis will usually be a class instance counter.
identity in interface Identifiedpublic final Notifiable monitor()
Notifiable in the notification tree,
as set with setMonitor.
Complains if no parent has been set.
monitor in interface Notifyingpublic void notify(Notice notice)
NotifiableNotice passed.
When this method is called, the Notifiable should
respond based on
Notice passed.
notify in interface Notifiablepublic final void notifyMonitor(Notifying.Impact impact)
Notifyingnotify 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 Notifyingimpact - suggests the level of retargeting requiredprotected boolean blockNotification()
Checked by notify(Notice); default returns false.
public final void setMonitor(Notifiable monitor)
NotifyingNotifying 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 | |||||||||