Description This program demonstrates the simple tree control (classCL_GUI_SIMPLE_TREE). A node in a simple tree control consists of a folder or leaf symbol anda text. Each node is described by the ABAP Dictionary structureTREEV_NODE. When you create a simple tree control, you must includethis structure in a structure of your own that also contains a fieldwith the name 'TEXT'. Events The program displays events as they occur on the right-hand side of thescreen. The following events can be triggered in the example program: node double click Double click on a node. expand no children You can make a node display a plus sign on its folder symbol eventhough it has no child nodes (by setting the EXPANDER flag inTREEV_NODE). If the user clicks one of these nodes, the system triggersthe event EXPAND_NC. In the example, the node "Child1" has thisattribute. The example program reacts to the event by adding two newnodes to the controlo (New1 and New2). |