|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfacets.util.Tracer
facets.util.app.AppValues
facets.core.app.AppSpecifier
facets.facet.app.FacetAppSpecifier
facets.facet.app.tree.TreeAppSpecifier
public abstract class TreeAppSpecifier
FacetAppSpecifier
for simple applications with DataNode
content.
TreeAppSpecifier
exemplifies practical use of the superclass with
a ViewerContenter
(here TreeAppContenter
) that provides the detail functionality.
It also demonstrates with newContentRootTargets()
and
newTreeMenuItems(FacetFactory, STargeter[], STargeter[])
the key
Superficial mechanism for binding
data abstracted as STarget
s to widgets abstracted as SFacet
s
via an automatically-generated STargeter
tree.
Concrete applications can be readily created by extending TreeAppSpecifier
and types such as:
XmlPolicy
(especially XmlPolicy.getTitleAttributeNames()
)
and XmlSpecifier
SView
s such as TreeView
, ListView
, TableView
for appropriate content
XmlView
Field Summary |
---|
Fields inherited from class facets.facet.app.FacetAppSpecifier |
---|
ARG_NO_CREATE, ARG_NO_FILES, DRAG_WAIT_MIN, KEY_DEBUG_STATUS, KEY_DRAG_NOTIFY, KEY_DRAG_PAUSE, KEY_DRAG_WAIT, KEY_GRAPH_BUILD, KEY_GRAPH_FIND, KEY_GRAPH_OFFSETS, KEY_GRAPH_SPLIT, KEY_GRAPH_WHERE, KEY_SPLASH, KEY_TEXT_ALIASING |
Fields inherited from class facets.util.app.AppValues |
---|
appName, KEY_TIMEOUT, KEY_TIMEOUT_SYSTEM, NATURE_DEBUG, NATURE_NO_SYSTEM_ACCESS, NATURE_RECORD_RUNS, NATURE_WRITABLE, PATH_APP, PATH_CORE, PATH_CORE_APP, PATH_CORE_DEBUG, PATH_DEBUG, PATH_RUNS, stateDebug, TYPE_NATURE, TYPE_STATE |
Constructor Summary | |
---|---|
TreeAppSpecifier(java.lang.Class appClass)
Unique constructor. |
Method Summary | |
---|---|
protected java.lang.Object |
getInternalContentSource()
Fulfils FacetAppSurface.getInternalContentSource() in the
return of newApp(FacetFactory) . |
protected AppActions |
newActions(ActionAppSurface app)
Locks superclass implementation. |
protected FacetAppSurface |
newApp(FacetFactory ff)
Final implementation. |
protected STarget[] |
newContentRootTargets()
Enables definition of additional STarget s to be exposed in the
TreeTargets.TITLE_MENU menu. |
protected SView[] |
newContentViews(NodeViewable viewable)
Enables redefinition of SView s supplying viewer policy. |
protected SFacet[] |
newTreeMenuItems(FacetFactory ff,
STargeter[] treeLinks,
STargeter[] contentLinks)
Defines SFacet items for the TreeTargets.TITLE_MENU menu. |
protected XmlPolicy |
xmlPolicy()
Defines an XmlPolicy for the application content. |
Methods inherited from class facets.facet.app.FacetAppSpecifier |
---|
addNatureDefaults, addStateDefaults, adjustClassValues, buildAndLaunchApp, canCreateContent, canSaveContent, contentStyle, decorationValues, isFileApp, joinValues, newFacetFactory, newPreferences, toolkitType |
Methods inherited from class facets.core.app.AppSpecifier |
---|
app, canEditContent, canOverwriteContent, offersHelp |
Methods inherited from class facets.util.app.AppValues |
---|
hasSystemAccess, nature, readValues, state, traceOutput, tryWriteValues |
Methods inherited from class facets.util.Tracer |
---|
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutputWithClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeAppSpecifier(java.lang.Class appClass)
appClass
- passed to superclassMethod Detail |
---|
protected final AppActions newActions(ActionAppSurface app)
newActions
in class FacetAppSpecifier
app
- TODO
FacetAppActions
or a FileAppActions
depending on FacetAppSpecifier.isFileApp()
protected final FacetAppSurface newApp(FacetFactory ff)
The FacetAppSurface
returned calls out to getInternalContentSource()
and to XmlPolicy.fileSpecifiers()
via xmlPolicy()
; it creates
TreeAppContenter
s.
newApp
in class FacetAppSpecifier
ff
- created in FacetAppSpecifier.newFacetFactory()
FacetAppSurface
that will create content and the surface
to expose itprotected XmlPolicy xmlPolicy()
XmlPolicy
for the application content.
Called by the return of newApp(FacetFactory)
and by TreeAppContenter.saveToSink(Object)
.
XmlPolicy
protected java.lang.Object getInternalContentSource()
FacetAppSurface.getInternalContentSource()
in the
return of newApp(FacetFactory)
.
Nodes.newTestTree(String, int, double)
with broad
=5 which
may be changed by passing ARG_TREE_SIZE
=broad
protected SView[] newContentViews(NodeViewable viewable)
SView
s supplying viewer policy.
Called from TreeAppContenter.newContentViewers(ViewableFrame)
.
viewable
- has the content as its SFrameTarget.framed
TreeView
protected STarget[] newContentRootTargets()
STarget
s to be exposed in the
TreeTargets.TITLE_MENU
menu.
Called from TreeAppContenter.lazyContentRootElements(SAreaTarget)
.
STargeter
s will be
passed to newTreeMenuItems(FacetFactory, STargeter[], STargeter[])
;
by default an empty STarget
[]
protected SFacet[] newTreeMenuItems(FacetFactory ff, STargeter[] treeLinks, STargeter[] contentLinks)
SFacet
items for the TreeTargets.TITLE_MENU
menu.
Called from TreeAppFacets.adjustMenuRoots(MenuFacets[])
ff
- the calling TreeAppFacets
treeLinks
- exposing TreeTargets.appTargets()
contentLinks
- targeting returns (if any) of newContentRootTargets()
treeAppFacets
indexed with TreeTargets.TARGET_SEARCH
,
TreeTargets.TARGET_ENCODE
,TreeTargets.TARGET_TYPE
,
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |