Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {cl_alv_tree_base} = await import("./cl_alv_tree_base.clas.mjs"); const {cx_root} = await import("./cx_root.clas.mjs"); // cl_gui_alv_tree.clas.abap class cl_gui_alv_tree extends cl_alv_tree_base { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'CL_GUI_ALV_TREE'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {}; static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"PARENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " "}, "NODE_SELECTION_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "ITEM_SELECTION": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "NO_TOOLBAR": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "NO_HTML_HEADER": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "FREE": {"visibility": "U", "parameters": {}}, "GET_OUTTAB_LINE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "E_OUTTAB_LINE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "E_NODE_TEXT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "ET_ITEM_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "ES_NODE_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "SET_REGISTERED_EVENTS": {"visibility": "U", "parameters": {"EVENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "eventid": new abap.types.Integer({qualifiedName: "EVENTID"}), "appl_event": new abap.types.Character(1, {"qualifiedName":"appl_event"})}, "cntl_simple_event", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "cntl_simple_events");}, "is_optional": " "}}}, "GET_REGISTERED_EVENTS": {"visibility": "U", "parameters": {"EVENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "eventid": new abap.types.Integer({qualifiedName: "EVENTID"}), "appl_event": new abap.types.Character(1, {"qualifiedName":"appl_event"})}, "cntl_simple_event", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "cntl_simple_events");}, "is_optional": " "}}}, "GET_TOOLBAR_OBJECT": {"visibility": "U", "parameters": {"ER_TOOLBAR": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_TOOLBAR", RTTIName: "\\CLASS=CL_GUI_TOOLBAR"});}, "is_optional": " "}}}, "SET_TABLE_FOR_FIRST_DISPLAY": {"visibility": "U", "parameters": {"I_STRUCTURE_NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IS_VARIANT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "I_SAVE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "I_DEFAULT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IS_HIERARCHY_HEADER": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IS_EXCEPTION_FIELD": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IT_SPECIAL_GROUPS": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IT_LIST_COMMENTARY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "I_LOGO": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "I_BACKGROUND_ID": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IT_TOOLBAR_EXCLUDING": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IT_EXCEPT_QINFO": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IT_OUTTAB": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"DEFAULT"});}, "is_optional": " "}, "IT_FILTER": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IT_FIELDCATALOG": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "DELETE_ALL_NODES": {"visibility": "U", "parameters": {}}, "ADD_NODE": {"visibility": "U", "parameters": {"I_RELAT_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "I_RELATIONSHIP": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "IS_OUTTAB_LINE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IS_NODE_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IT_ITEM_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "I_NODE_TEXT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "E_NEW_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "EXPAND_NODE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "I_LEVEL_COUNT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "I_EXPAND_SUBTREE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "FRONTEND_UPDATE": {"visibility": "U", "parameters": {}}, "EXPAND_NODES": {"visibility": "U", "parameters": {"IT_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "GET_SELECTED_ITEM": {"visibility": "U", "parameters": {"E_SELECTED_NODE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "GET_SELECTED_NODES": {"visibility": "U", "parameters": {"CT_SELECTED_NODES": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "SET_SELECTED_NODES": {"visibility": "U", "parameters": {"IT_SELECTED_NODES": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "CHANGE_NODE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "IS_NODE_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "I_OUTTAB_LINE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}}, "GET_CHILDREN": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " "}, "ET_CHILDREN": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_NKEY");}, "is_optional": " "}}}, "SET_TOP_NODE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " "}}}}; constructor() { const sup = super(); this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "SUPER": sup.FRIENDS_ACCESS_INSTANCE, "free": this.free.bind(this), "get_outtab_line": this.get_outtab_line.bind(this), "set_registered_events": this.set_registered_events.bind(this), "get_registered_events": this.get_registered_events.bind(this), "get_toolbar_object": this.get_toolbar_object.bind(this), "set_table_for_first_display": this.set_table_for_first_display.bind(this), "delete_all_nodes": this.delete_all_nodes.bind(this), "add_node": this.add_node.bind(this), "expand_node": this.expand_node.bind(this), "frontend_update": this.frontend_update.bind(this), "expand_nodes": this.expand_nodes.bind(this), "get_selected_item": this.get_selected_item.bind(this), "get_selected_nodes": this.get_selected_nodes.bind(this), "set_selected_nodes": this.set_selected_nodes.bind(this), "change_node": this.change_node.bind(this), "get_children": this.get_children.bind(this), "set_top_node": this.set_top_node.bind(this), }; this.link_click = {"EVENT_NAME": "LINK_CLICK", "EVENT_CLASS": "CL_GUI_ALV_TREE"}; this.item_double_click = {"EVENT_NAME": "ITEM_DOUBLE_CLICK", "EVENT_CLASS": "CL_GUI_ALV_TREE"}; this.node_double_click = {"EVENT_NAME": "NODE_DOUBLE_CLICK", "EVENT_CLASS": "CL_GUI_ALV_TREE"}; } async constructor_(INPUT) { let parent = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"}); if (INPUT && INPUT.parent) {parent.set(INPUT.parent);} let node_selection_mode = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.node_selection_mode) {node_selection_mode.set(INPUT.node_selection_mode);} if (INPUT === undefined || INPUT.node_selection_mode === undefined) {node_selection_mode = abap.Classes['CL_GUI_COLUMN_TREE'].node_sel_mode_single;} let item_selection = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.item_selection) {item_selection.set(INPUT.item_selection);} if (INPUT === undefined || INPUT.item_selection === undefined) {item_selection = abap.CharacterFactory.get(1, 'X');} let no_toolbar = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.no_toolbar) {no_toolbar.set(INPUT.no_toolbar);} let no_html_header = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.no_html_header) {no_html_header.set(INPUT.no_html_header);} abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); return this; } async set_top_node(INPUT) { let i_node_key = INPUT?.i_node_key; if (i_node_key?.getQualifiedName === undefined || i_node_key.getQualifiedName() !== "LVC_NKEY") { i_node_key = undefined; } if (i_node_key === undefined) { i_node_key = new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"}).set(INPUT.i_node_key); } abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async get_children(INPUT) { let i_node_key = INPUT?.i_node_key; if (i_node_key?.getQualifiedName === undefined || i_node_key.getQualifiedName() !== "LVC_NKEY") { i_node_key = undefined; } if (i_node_key === undefined) { i_node_key = new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"}).set(INPUT.i_node_key); } let et_children = INPUT?.et_children || abap.types.TableFactory.construct(new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_NKEY"); abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async change_node(INPUT) { let i_node_key = INPUT?.i_node_key; let is_node_layout = INPUT?.is_node_layout; let i_outtab_line = INPUT?.i_outtab_line; abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async set_selected_nodes(INPUT) { let it_selected_nodes = INPUT?.it_selected_nodes; abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async expand_nodes(INPUT) { let it_node_key = INPUT?.it_node_key; abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async get_selected_item(INPUT) { let e_selected_node = INPUT?.e_selected_node || new abap.types.Character(4); abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async free() { abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async get_selected_nodes(INPUT) { let ct_selected_nodes = new abap.types.Character(4); if (INPUT && INPUT.ct_selected_nodes) {ct_selected_nodes = INPUT.ct_selected_nodes;} abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async frontend_update() { abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async expand_node(INPUT) { let i_node_key = INPUT?.i_node_key; let i_level_count = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.i_level_count) {i_level_count.set(INPUT.i_level_count);} if (INPUT === undefined || INPUT.i_level_count === undefined) {i_level_count = abap.IntegerFactory.get(1);} let i_expand_subtree = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.i_expand_subtree) {i_expand_subtree.set(INPUT.i_expand_subtree);} abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async add_node(INPUT) { let i_relat_node_key = INPUT?.i_relat_node_key; let i_relationship = INPUT?.i_relationship; if (i_relationship?.getQualifiedName === undefined || i_relationship.getQualifiedName() !== "I") { i_relationship = undefined; } if (i_relationship === undefined) { i_relationship = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.i_relationship); } let is_outtab_line = INPUT?.is_outtab_line || new abap.types.Character(4); let is_node_layout = INPUT?.is_node_layout || new abap.types.Character(4); let it_item_layout = INPUT?.it_item_layout || new abap.types.Character(4); let i_node_text = INPUT?.i_node_text || new abap.types.Character(4); let e_new_node_key = INPUT?.e_new_node_key || new abap.types.Character(4); abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async delete_all_nodes() { abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async set_table_for_first_display(INPUT) { let i_structure_name = INPUT?.i_structure_name || new abap.types.Character(4); let is_variant = INPUT?.is_variant || new abap.types.Character(4); let i_save = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.i_save) {i_save.set(INPUT.i_save);} let i_default = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.i_default) {i_default.set(INPUT.i_default);} if (INPUT === undefined || INPUT.i_default === undefined) {i_default = abap.CharacterFactory.get(1, 'X');} let is_hierarchy_header = INPUT?.is_hierarchy_header || new abap.types.Character(4); let is_exception_field = INPUT?.is_exception_field || new abap.types.Character(4); let it_special_groups = INPUT?.it_special_groups || new abap.types.Character(4); let it_list_commentary = INPUT?.it_list_commentary || new abap.types.Character(4); let i_logo = INPUT?.i_logo || new abap.types.Character(4); let i_background_id = INPUT?.i_background_id || new abap.types.Character(4); let it_toolbar_excluding = INPUT?.it_toolbar_excluding || new abap.types.Character(4); let it_except_qinfo = INPUT?.it_except_qinfo || new abap.types.Character(4); let it_outtab = abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"DEFAULT"}); if (INPUT && INPUT.it_outtab) {it_outtab = INPUT.it_outtab;} let it_filter = new abap.types.Character(4); if (INPUT && INPUT.it_filter) {it_filter = INPUT.it_filter;} let it_fieldcatalog = new abap.types.Character(4); if (INPUT && INPUT.it_fieldcatalog) {it_fieldcatalog = INPUT.it_fieldcatalog;} abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async get_toolbar_object(INPUT) { let er_toolbar = INPUT?.er_toolbar || new abap.types.ABAPObject({qualifiedName: "CL_GUI_TOOLBAR", RTTIName: "\\CLASS=CL_GUI_TOOLBAR"}); abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async set_registered_events(INPUT) { let events = INPUT?.events; if (events?.getQualifiedName === undefined || events.getQualifiedName() !== "CNTL_SIMPLE_EVENTS") { events = undefined; } if (events === undefined) { events = abap.types.TableFactory.construct(new abap.types.Structure({ "eventid": new abap.types.Integer({qualifiedName: "EVENTID"}), "appl_event": new abap.types.Character(1, {"qualifiedName":"appl_event"})}, "cntl_simple_event", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "cntl_simple_events").set(INPUT.events); } abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async get_registered_events(INPUT) { let events = INPUT?.events || abap.types.TableFactory.construct(new abap.types.Structure({ "eventid": new abap.types.Integer({qualifiedName: "EVENTID"}), "appl_event": new abap.types.Character(1, {"qualifiedName":"appl_event"})}, "cntl_simple_event", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "cntl_simple_events"); abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } async get_outtab_line(INPUT) { let i_node_key = INPUT?.i_node_key; let e_outtab_line = INPUT?.e_outtab_line || new abap.types.Character(4); let e_node_text = INPUT?.e_node_text || new abap.types.Character(4); let et_item_layout = INPUT?.et_item_layout || new abap.types.Character(4); let es_node_layout = INPUT?.es_node_layout || new abap.types.Character(4); abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo'))); } } abap.Classes['CL_GUI_ALV_TREE'] = cl_gui_alv_tree; export {cl_gui_alv_tree}; |