facets.core.app
Class TextTreeView

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.util.StatefulCore
          extended by facets.core.superficial.app.SelectionView
              extended by facets.core.app.TreeView
                  extended by facets.core.app.TextTreeView
All Implemented Interfaces:
SView, Stateful, Titled, java.io.Serializable

public class TextTreeView
extends TreeView

TreeView that converts TypedNodes to (typically HTML) text.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class facets.core.app.TreeView
debug, FACET_COLLAPSE, FACET_EXPAND, KEY_DEBUG, KEY_EXPAND, NO_VALUE
 
Fields inherited from interface facets.core.superficial.app.SView
NO_VIEW
 
Constructor Summary
TextTreeView(java.lang.String title)
           
 
Method Summary
static PathSelection newHtmlPathSelection(PathSelection selectionThen, java.lang.String path)
          Defines a PathSelection based on an HTML path.
protected  java.lang.String newPathNodeText(TypedNode[] path, java.lang.String text)
           
 java.lang.String nodeRenderText(TypedNode node)
          The text to be rendered by the viewer for a node.
static java.lang.String nodeText(TypedNode node)
           
 
Methods inherited from class facets.core.app.TreeView
allowMultipleSelection, canChangeSelection, contentIconKey, emptyValueText, filteredNodeContents, filterNodeContents, includeNode, includeValue, nodeContents, showRoot
 
Methods inherited from class facets.core.superficial.app.SelectionView
isLive, newViewerSelection
 
Methods inherited from class facets.util.StatefulCore
copyState, setState, setTitle, stateEquals, stateStamp, title, toString, updateStateStamp
 
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.util.Titled
title
 

Constructor Detail

TextTreeView

public TextTreeView(java.lang.String title)
Method Detail

nodeRenderText

public final java.lang.String nodeRenderText(TypedNode node)
Description copied from class: TreeView
The text to be rendered by the viewer for a node.

Default returns node type and title.

Overrides:
nodeRenderText in class TreeView
Parameters:
node - to be rendered

nodeText

public static java.lang.String nodeText(TypedNode node)

newPathNodeText

protected java.lang.String newPathNodeText(TypedNode[] path,
                                           java.lang.String text)

newHtmlPathSelection

public static PathSelection newHtmlPathSelection(PathSelection selectionThen,
                                                 java.lang.String path)
Defines a PathSelection based on an HTML path.

Parameters:
selectionThen - identifies the HTML page containing the path
path - value of HREF attribute within the page