|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.util.Tracer
facets.util.StatefulCore
facets.core.superficial.app.SelectionView
facets.core.app.TreeView
public class TreeView
SelectionView for TypedNode content.
| Field Summary | |
|---|---|
static boolean |
debug
|
static int |
FACET_COLLAPSE
|
static int |
FACET_EXPAND
|
static java.lang.String |
KEY_DEBUG
|
static java.lang.String |
KEY_EXPAND
|
static java.lang.String |
NO_VALUE
|
| Fields inherited from interface facets.core.superficial.app.SView |
|---|
NO_VIEW |
| Constructor Summary | |
|---|---|
TreeView(java.lang.String title)
|
|
| Method Summary | |
|---|---|
boolean |
allowMultipleSelection()
Implements interface method. |
boolean |
canChangeSelection()
|
java.lang.String |
contentIconKey(java.lang.Object content)
Key defining icon for node or value. |
java.lang.String |
emptyValueText()
|
protected java.lang.Object[] |
filteredNodeContents(TypedNode node)
Checks node contents against either
includeNode(TypedNode,TypedNode) or
includeValue(TypedNode,Object). |
protected boolean |
filterNodeContents()
|
protected boolean |
includeNode(TypedNode parent,
TypedNode node)
Should node be included in the displayed contents of parent? |
protected boolean |
includeValue(TypedNode parent,
java.lang.Object value)
Should value be included in the displayed contents of parent? |
java.lang.Object[] |
nodeContents(SViewer viewer,
TypedNode node)
Return contents to be rendered. |
java.lang.String |
nodeRenderText(TypedNode node)
The text to be rendered by the viewer for a node. |
boolean |
showRoot()
Should the viewer display the root node of the tree? |
| 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 |
| Field Detail |
|---|
public static final java.lang.String KEY_DEBUG
public static final java.lang.String KEY_EXPAND
public static final java.lang.String NO_VALUE
public static final int FACET_EXPAND
public static final int FACET_COLLAPSE
public static boolean debug
| Constructor Detail |
|---|
public TreeView(java.lang.String title)
| Method Detail |
|---|
public final boolean allowMultipleSelection()
SelectionViewDefault returns false.
allowMultipleSelection in interface SViewallowMultipleSelection in class SelectionViewpublic java.lang.String contentIconKey(java.lang.Object content)
content - to be rendered
public java.lang.Object[] nodeContents(SViewer viewer,
TypedNode node)
null node is TypedNode.NULL_NODE,
returns an empty Object[] array.
filterNodeContents() returns
output of filteredNodeContents(TypedNode)
The tree facet avatar may need to optimise calls to this method to ensure good rendering performance.
viewer - rendering the contentnode - contains content to be renderedprotected final java.lang.Object[] filteredNodeContents(TypedNode node)
contents against either
includeNode(TypedNode,TypedNode) or
includeValue(TypedNode,Object).
node - protected boolean filterNodeContents()
protected boolean includeNode(TypedNode parent,
TypedNode node)
node be included in the displayed contents of parent?
Default returns true.
parent - is that passed to nodeContents(SViewer,TypedNode)
protected boolean includeValue(TypedNode parent,
java.lang.Object value)
value be included in the displayed contents of parent?
Default returns true.
parent - is that passed to nodeContents(SViewer,TypedNode)public java.lang.String nodeRenderText(TypedNode node)
Default returns node type and title.
node - to be renderedpublic boolean showRoot()
Default returns true.
public boolean canChangeSelection()
public java.lang.String emptyValueText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||