MindFusion.Java Package Programmer's Guide
DiagramNode.setExpandable Method
See Also
 






Sets a value indicating whether users are allowed to expand or collapse the tree branch that starts from this node.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void setExpandable (
    boolean value
)

 Parameters

value

true if the tree branch that starts from this node can be expanded or collapsed by users, otherwise false.

 Remarks

This property is useful mostly when nodes form a tree-like hierarchical structure. If it is enabled, a small [±] button is drawn beside the node. Clicking that button either shows or hides all children of this node in the tree. It depends on the diagram's ExpandOnIncoming property which items connected to a node are considered its children. The tree expansion continues recursively down the child nodes if the RecursiveExpand property is enabled.

The appearance of the collapse / expand icon can be customized by setting Renderers.ExpandIconRenderer.

 See Also

DiagramNode Members
DiagramNode Class
com.mindfusion.diagramming Namespace