@NotFinalAPI public interface FoldingDefinition
roots()
).
The forest defines how to fold the view, each node creating zero or more layers under the relevant parent in
the view result tree.
Note: only nodes created with the factory of this instance (retrieved nodesFactory()
) can be added to this
folding definition.
//todo: add usage examplesQuery
,
View
,
FoldingDefinitionNode
Modifier and Type | Method and Description |
---|---|
<FDN extends FoldingDefinitionNode> |
addRoot(FDN foldingDefinitionNode)
Appends a new root to the folding definition roots list as the last item.
|
<FDN extends FoldingDefinitionNode> |
addRoot(FDN foldingDefinitionNode,
int index)
Inserts a new root to the folding definition roots list at the location specified by index.
|
String |
name()
Returns the name of the view that holds this folding definition.
|
FoldingDefinitionNode |
nodeByName(String name)
Returns a node from the folding definition tree by name.
|
Collection<QueryNodeBasedFDN> |
nodesByQueryNodeName(String queryNodeName)
Returns a collection of all the QueryNodeBasedFDN that rely on the given query node name
(QueryNodeBasedFDN.queryNodeName().equals(queryNodeName))
|
FoldingDefinitionNodesFactory |
nodesFactory()
Returns the nodes factory associated with this definition.
|
boolean |
removeNode(String name)
Removes a node (by node name) from the folding definition, removing all referencing grouping nodes, view
attributes and sorting rules.
|
List<? extends FoldingDefinitionNode> |
roots()
Returns the root nodes defining the folder definition tree.
|
FoldingDefinitionUtils |
utils()
Returns a utilities object.
|
String name()
List<? extends FoldingDefinitionNode> roots()
<FDN extends FoldingDefinitionNode> FDN addRoot(FDN foldingDefinitionNode)
for creating nodes
<FDN extends FoldingDefinitionNode> FDN addRoot(FDN foldingDefinitionNode, int index)
for creating nodes
FoldingDefinitionNode nodeByName(String name)
@NotFinalAPI Collection<QueryNodeBasedFDN> nodesByQueryNodeName(String queryNodeName)
queryNodeName
- this method will return QueryNodeBasedFDN referencing this name.@NotFinalAPI boolean removeNode(String name)
name
- the name of the node to remove.FoldingDefinitionNodesFactory nodesFactory()
FoldingDefinitionUtils utils()
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.