public interface StructureBean extends TableBean<StructureBeanNode>
TableDataProvider.Displayed<T extends TableData>, TableDataProvider.Empty<T extends TableData>, TableDataProvider.Specific<T extends TableData>, TableDataProvider.Visible<T extends TableData>EMPTY| Modifier and Type | Method and Description |
|---|---|
void |
accept(StructureBeanNodeVisitor visitor)
Visit all nodes on this StructureBean.
|
StructureBeanNode |
addNode(StructureBeanNode parentNode,
java.lang.String relationshipId,
java.lang.String objectId,
boolean from,
int index)
Adds a new node as a child to the given node.
|
void |
addStructureListener(StructureListener listener)
Adds a listener to the structure.
|
void |
changeRootNode(StructureBeanNode rootNode)
Changes the root node.
|
void |
collapse()
Collapse the root node.
|
void |
collapseNode(StructureBeanNode node)
Collapse the node.
|
int |
expand()
Expands the root node one level.
|
int |
expand(int depth)
Expands the root node.
|
int |
expandFully()
Fully expands the root node.
|
int |
expandNode(StructureBeanNode node)
Expands the specified node one level.
|
int |
expandNode(StructureBeanNode node,
int level)
Expands the specified node.
|
int |
expandNodeFully(StructureBeanNode node)
Fully expands the node.
|
boolean |
getAllowInconsistentVisibleStructure()
Returns whether the structure should allow inconsistency among it's
visible nodes, i.e., if a node can be visible even though it's parent is
not.
|
int |
getInitialExpandDepth()
Returns the initial expand depth.
|
ExpansionMode |
getInitialExpandMode()
Returns the mode used when performing an initial expand on the structure.
|
int |
getMultiLevelExpandDepth()
Returns the multi-level expand depth.
|
StructureBeanNode |
getNodeAt(int index)
Returns the node at the specified index.
|
int |
getNodeCount()
Returns the node count.
|
java.util.Iterator<StructureBeanNode> |
getNodes()
Returns the nodes in the structure.
|
java.util.Iterator<StructureBeanNode> |
getNodes(java.lang.String objectId)
Returns all nodes in the structure with the specified object ID.
|
java.util.Iterator<StructureBeanNode> |
getNodes(java.lang.String relationshipId,
java.lang.String objectId)
Returns all nodes in the structure with the specified object and
relationship ID.
|
StructureBeanNode |
getRootNode()
Returns the root node.
|
StructureBeanNode |
getVisibleChildAt(StructureBeanNode node,
int index)
Returns the
visible child node at the
specified index. |
int |
getVisibleChildCount(StructureBeanNode node)
Returns the
visible child count. |
int |
getVisibleChildIndex(StructureBeanNode node,
StructureBeanNode child)
|
java.util.Iterator<StructureBeanNode> |
getVisibleChildNodes(StructureBeanNode node)
Returns all
visible child nodes. |
boolean |
hasNodes()
Returns whether the structure has any nodes at all.
|
boolean |
hasVisibleChildren(StructureBeanNode node)
Returns true if the node has any
visible children. |
boolean |
isAllowHideSingleRootNode() |
boolean |
isFiltersCombinable()
Returns a boolean value indicating whether the filters can be combined,
e.g.
|
boolean |
isFirstVisibleChild(StructureBeanNode node,
StructureBeanNode child)
Returns true if the child is the specified node's first
visible child. |
boolean |
isFullExpandSupported()
Returns whether a full expand is supported by the structure in it's
current state.
|
boolean |
isLastVisibleChild(StructureBeanNode node,
StructureBeanNode child)
Returns true if the child is the specified node's last
visible child. |
boolean |
isMultiLevelExpandSupported()
Returns whether multi-level expand is supported by the structure in it's
current state, or not.
|
boolean |
isToFlatTableSupported()
Check whether this
StructureBean can be converted to a
FlatTableBean. |
boolean |
isVisibleChild(StructureBeanNode node,
StructureBeanNode child)
Returns true if the specified node is a
visible child to the specified node. |
boolean |
removeNode(StructureBeanNode node)
Removes the node from the structure.
|
void |
removeNodes(java.lang.String objectId)
Removes all nodes with the specified object ID.
|
void |
removeNodes(java.lang.String relationshipId,
java.lang.String objectId)
Removes all nodes with the specified object and relationship ID.
|
void |
removeStructureListener(StructureListener listener)
Removes a listener from the structure.
|
void |
setAllowHideSingleRootNode(boolean value) |
void |
setAllowInconsistentVisibleStructure(boolean b)
Sets whether the structure should allow inconsistency among it's visible
nodes, i.e., if a node can be visible even though it's parent is not.
|
void |
setInitialExpandDepth(int depth)
Sets the initial expand depth (i.e., the number of levels to expand the
root node the first time).
|
void |
setInitialExpandMode(ExpansionMode mode)
Sets the mode used when performing an initial expand on the structure.
|
void |
setMultiLevelExpandDepth(int depth)
Sets the multi-level expand depth (i.e., the number of levels to expand a
node when the used requests that a multi-level expansion is performed on
a particular node).
|
StructureBeanNode |
setRoot(java.lang.String rootObjectId)
Sets the root object in the structure.
|
StructureBeanNode |
setRoot(java.lang.String rootRelationshipId,
java.lang.String rootObjectId) |
FlatTableBean |
toFlatTable()
Converts the
StructureBean to a FlatTableBean. |
accept, addTableClonedListener, addTableContentListener, addTableGroupedListener, addTableListener, addTableNavigateListener, addVisibleTableDataFilter, clearVisibleTableDataFilter, clone, getCalculations, getCellAt, getColumnAt, getColumnByName, getColumnCount, getColumnIndex, getColumnList, getColumns, getDisplayedTableData, getDisplayedTableDataCount, getEvaluationRequiredTableData, getEvaluationRequiredTableDataCount, getFilteredTableData, getFilteredTableDataCount, getHasParent, getHeader, getNavigationHandler, getNavigationHandler, getParent, getSelectedTableData, getSelectedTableDataCount, getSubHeader, getTableClonedListeners, getTableData, getTableData, getTableData, getTableDataAt, getTableDataCount, getTableDataWithId, getTableGroupedListeners, getTableListeners, getTableNavigateListeners, getVisibleColumnAt, getVisibleColumnByName, getVisibleColumnCount, getVisibleColumns, getVisibleTableData, getVisibleTableDataCount, getVisibleTableDataFilters, getVisibleTableDataFilters, hasCellAt, hasTableData, hasVisibleTableDataFilter, invalidate, isHeaderHTML, isNavigateSupported, isOnlyEvaluateVisibleColumns, isSubHeaderHTML, isValid, isVisible, isVisibleColumn, navigate, navigate, reload, removeParent, removeTableClonedListener, removeTableContentListener, removeTableData, removeTableData, removeTableData, removeTableGroupedListener, removeTableListener, removeTableNavigateListener, removeVisibleTableDataFilter, removeVisibleTableDataFilters, setHeader, setHeader, setOnlyEvaluateVisibleColumns, setParent, setSubHeader, setSubHeader, validategetChoosableViews, getView, getViewFactory, isTableChangeable, isViewChangeable, isVisualsChangeable, setChoosableViews, setView, setView, setViewFactorygetMenuBar, setMenuBargetContextMenu, setContextMenuisInquirySupported, loadFromInquiry, loadFromInquirygetEnv, getEnv, setEnvgetAttribute, getAttributeNames, removeAttribute, setAttributegetPageConfig, setPageConfigStructureBeanNode setRoot(java.lang.String rootObjectId) throws TVCException
rootObjectId - The object ID of the root object.TVCException - If unable to set the root object.StructureBeanNode setRoot(java.lang.String rootRelationshipId, java.lang.String rootObjectId) throws TVCException
rootRelationshipId - - The relationship ID of the root object.rootObjectId - - The object ID of the root object.TVCException - If unable to set the root object.void changeRootNode(StructureBeanNode rootNode) throws TVCException
java.lang.IllegalStateException - If the structure doesn't have a root node.TVCExceptionvoid setInitialExpandDepth(int depth)
getInitialExpandDepth()int getInitialExpandDepth()
setInitialExpandDepth(int)void setInitialExpandMode(ExpansionMode mode)
ExpansionMode getInitialExpandMode()
boolean isMultiLevelExpandSupported()
void setMultiLevelExpandDepth(int depth)
int getMultiLevelExpandDepth()
boolean isFullExpandSupported()
expandFully(),
expandNodeFully(StructureBeanNode)StructureBeanNode addNode(StructureBeanNode parentNode, java.lang.String relationshipId, java.lang.String objectId, boolean from, int index) throws TVCException
parentNode - The parent node, to which the new node is addedrelationshipId - The relationship idobjectId - The object id of the new nodefrom - True for from direction (e.g. parentNode -> newNode)index - The index within the child array (0 for first)TVCException - Upon errorsint expand()
throws TVCException
TVCExceptionint expand(int depth)
throws TVCException
depth - The number of levels to expand.TVCExceptionint expandFully()
throws TVCException
TVCExceptionisFullExpandSupported(),
expandNodeFully(StructureBeanNode)void collapse()
throws TVCException
TVCExceptionint expandNode(StructureBeanNode node) throws TVCException
node - The node to expand.TVCExceptionexpandNode(StructureBeanNode,int),
expandNodeFully(StructureBeanNode)int expandNode(StructureBeanNode node, int level) throws TVCException
node - The node to expand.level - The number of levels to expand the node.TVCExceptionexpandNode(StructureBeanNode),
expandNodeFully(StructureBeanNode)int expandNodeFully(StructureBeanNode node) throws TVCException
node - The node to expand.TVCExceptionexpandNode(StructureBeanNode),
expandNode(StructureBeanNode,int)void collapseNode(StructureBeanNode node) throws TVCException
node - The node to collapse.TVCExceptionStructureBeanNode getRootNode()
java.util.Iterator<StructureBeanNode> getNodes()
java.util.Iterator<StructureBeanNode> getNodes(java.lang.String objectId)
java.util.Iterator<StructureBeanNode> getNodes(java.lang.String relationshipId, java.lang.String objectId)
boolean removeNode(StructureBeanNode node)
void removeNodes(java.lang.String objectId)
void removeNodes(java.lang.String relationshipId,
java.lang.String objectId)
StructureBeanNode getNodeAt(int index)
java.lang.IndexOutOfBoundsException - If the index is invalid.int getNodeCount()
boolean hasNodes()
boolean isVisibleChild(StructureBeanNode node, StructureBeanNode child)
visible child to the specified node.boolean isFirstVisibleChild(StructureBeanNode node, StructureBeanNode child)
visible child.boolean isLastVisibleChild(StructureBeanNode node, StructureBeanNode child)
visible child.StructureBeanNode getVisibleChildAt(StructureBeanNode node, int index)
visible child node at the
specified index.int getVisibleChildIndex(StructureBeanNode node, StructureBeanNode child)
visible
child, or -1 if the child in fact isn't a
visible child to the specified node.java.util.Iterator<StructureBeanNode> getVisibleChildNodes(StructureBeanNode node)
visible child nodes.int getVisibleChildCount(StructureBeanNode node)
visible child count.boolean hasVisibleChildren(StructureBeanNode node)
visible children.void addStructureListener(StructureListener listener)
void removeStructureListener(StructureListener listener)
boolean getAllowInconsistentVisibleStructure()
setAllowInconsistentVisibleStructure(boolean),
TableBean.getVisibleTableData()void setAllowInconsistentVisibleStructure(boolean b)
b - Allow inconsistency.getAllowInconsistentVisibleStructure(),
TableBean.getVisibleTableData()FlatTableBean toFlatTable() throws TVCException
StructureBean to a FlatTableBean.StructureBean as a flat table, i.e.,
containing the same rows but with the structure information
erased.TVCException - If unable to convert the StructureBean into
a flat table.java.lang.UnsupportedOperationException - If this method is not supported.isToFlatTableSupported()boolean isToFlatTableSupported()
StructureBean can be converted to a
FlatTableBean.toFlatTable() is supported.toFlatTable()void accept(StructureBeanNodeVisitor visitor)
visitor - The visitor.boolean isFiltersCombinable()
void setAllowHideSingleRootNode(boolean value)
boolean isAllowHideSingleRootNode()
Copyright ? Technia AB. All Rights Reserved.