Class GuiTree
Wraps a SAP GUI tree control (GuiTree). Tree controls appear in, e.g., the Easy Access menu or transport organizer.
public class GuiTree : GuiComponent
- Inheritance
-
GuiTree
- Inherited Members
Properties
SelectedNode
Gets the currently selected node key.
public string SelectedNode { get; }
Property Value
Methods
CollapseNode(string)
Collapses a tree node.
public void CollapseNode(string nodeKey)
Parameters
nodeKeystring
DoubleClickNode(string)
Double-clicks a node (often used to open a transaction).
public void DoubleClickNode(string nodeKey)
Parameters
nodeKeystring
ExpandNode(string)
Expands a tree node by its key.
public void ExpandNode(string nodeKey)
Parameters
nodeKeystring
GetAllNodeKeys()
Returns every node key in the entire tree as a flat list.
public IReadOnlyList<string> GetAllNodeKeys()
Returns
GetChildNodeKeys(string)
Returns the first-level child node keys of the given parent key. Pass an empty string or the root key to get top-level nodes.
public IReadOnlyList<string> GetChildNodeKeys(string parentNodeKey)
Parameters
parentNodeKeystring
Returns
GetItemText(string, string)
Returns the text of a specific cell in a multi-column tree.
public string GetItemText(string nodeKey, string columnName)
Parameters
Returns
GetNodeText(string)
Returns the text of a node (its display label).
public string GetNodeText(string nodeKey)
Parameters
nodeKeystring
Returns
GetNodeType(string)
Returns the node type string for a given node key.
Typical values are "LEAF" and "FOLDER".
public string GetNodeType(string nodeKey)
Parameters
nodeKeystring
Returns
NodeContextMenu(string)
Opens the context menu for a node (equivalent to right-clicking it).
public void NodeContextMenu(string nodeKey)
Parameters
nodeKeystring
SelectNode(string)
Selects a tree node.
public void SelectNode(string nodeKey)
Parameters
nodeKeystring