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 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | 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 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 STATIC_SUPER = 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": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}, "NODE_SELECTION_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "ITEM_SELECTION": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "NO_TOOLBAR": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "NO_HTML_HEADER": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
"COLLAPSE_SUBTREE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
"GET_PARENT": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "E_PARENT_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " ", "parm_kind": "E", "type_name": "CharacterType"}}},
"SET_HIERARCHY_HEADER": {"visibility": "U", "parameters": {"IS_HIERARCHY_HEADER": {"type": () => {return new abap.types.Structure({
"t_image": new abap.types.Character(46, {}),
"heading": new abap.types.Character(132, {}),
"tooltip": new abap.types.Character(132, {}),
"width": new abap.types.Integer({qualifiedName: "I"}),
"width_pix": new abap.types.Character(1, {})}, "TREEV_HHDR", "TREEV_HHDR", {}, {});}, "is_optional": " ", "parm_kind": "I", "type_name": "StructureType"}, "U_T_IMAGE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "U_HEADING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "U_TOOLTIP": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "U_WIDTH": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
"GET_OUTTAB_LINE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "E_OUTTAB_LINE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}, "E_NODE_TEXT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}, "ET_ITEM_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}, "ES_NODE_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}}},
"GET_EXPANDED_NODES": {"visibility": "U", "parameters": {"CT_EXPANDED_NODES": {"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": " ", "parm_kind": "C", "type_name": "TableType"}}},
"GET_TOP_NODE": {"visibility": "U", "parameters": {"E_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " ", "parm_kind": "E", "type_name": "CharacterType"}}},
"SET_TABLE_FOR_FIRST_DISPLAY": {"visibility": "U", "parameters": {"I_STRUCTURE_NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IS_VARIANT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_SAVE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "I_DEFAULT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "IS_HIERARCHY_HEADER": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IS_EXCEPTION_FIELD": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IT_SPECIAL_GROUPS": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IT_LIST_COMMENTARY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_LOGO": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_BACKGROUND_ID": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IT_TOOLBAR_EXCLUDING": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IT_EXCEPT_QINFO": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IT_OUTTAB": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});}, "is_optional": " ", "parm_kind": "C", "type_name": "TableType"}, "IT_FILTER": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "C", "type_name": "AnyType"}, "IT_FIELDCATALOG": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "C", "type_name": "AnyType"}}},
"DELETE_ALL_NODES": {"visibility": "U", "parameters": {}},
"ADD_NODE": {"visibility": "U", "parameters": {"I_RELAT_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_RELATIONSHIP": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "IS_OUTTAB_LINE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IS_NODE_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IT_ITEM_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_NODE_TEXT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "E_NEW_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}}},
"EXPAND_NODE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_LEVEL_COUNT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "I_EXPAND_SUBTREE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
"EXPAND_NODES": {"visibility": "U", "parameters": {"IT_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
"GET_SELECTED_ITEM": {"visibility": "U", "parameters": {"E_FIELDNAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}, "E_SELECTED_NODE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}}},
"GET_SELECTED_NODES": {"visibility": "U", "parameters": {"CT_SELECTED_NODES": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "C", "type_name": "AnyType"}}},
"SET_SELECTED_NODES": {"visibility": "U", "parameters": {"IT_SELECTED_NODES": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
"CHANGE_NODE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IS_NODE_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_OUTTAB_LINE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "IT_ITEM_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
"GET_CHECKED_ITEMS": {"visibility": "U", "parameters": {"ET_CHECKED_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
"nodekey": new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"}),
"fieldname": new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"})}, "LVC_S_CHIT", "LVC_S_CHIT", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_CHIT");}, "is_optional": " ", "parm_kind": "E", "type_name": "TableType"}}},
"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": " ", "parm_kind": "I", "type_name": "CharacterType"}, "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": " ", "parm_kind": "E", "type_name": "TableType"}}},
"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": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
"GET_SUBTREE": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "ET_SUBTREE_NODES": {"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": " ", "parm_kind": "E", "type_name": "TableType"}}},
"UNSELECT_NODES": {"visibility": "U", "parameters": {"IT_NODE_KEY": {"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": " ", "parm_kind": "I", "type_name": "TableType"}}},
"CHANGE_ITEM": {"visibility": "U", "parameters": {"I_NODE_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "I_FIELDNAME": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "I_DATA": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_U_DATA": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "IS_ITEM_LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}}};
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,
"collapse_subtree": this.collapse_subtree.bind(this),
"get_parent": this.get_parent.bind(this),
"set_hierarchy_header": this.set_hierarchy_header.bind(this),
"get_outtab_line": this.get_outtab_line.bind(this),
"get_expanded_nodes": this.get_expanded_nodes.bind(this),
"get_top_node": this.get_top_node.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),
"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_checked_items": this.get_checked_items.bind(this),
"get_children": this.get_children.bind(this),
"set_top_node": this.set_top_node.bind(this),
"get_subtree": this.get_subtree.bind(this),
"unselect_nodes": this.unselect_nodes.bind(this),
"change_item": this.change_item.bind(this),
};
this.checkbox_change = {"EVENT_NAME": "CHECKBOX_CHANGE", "EVENT_CLASS": "CL_GUI_ALV_TREE"};
this.node_context_menu_selected = {"EVENT_NAME": "NODE_CONTEXT_MENU_SELECTED", "EVENT_CLASS": "CL_GUI_ALV_TREE"};
this.on_drag_multiple = {"EVENT_NAME": "ON_DRAG_MULTIPLE", "EVENT_CLASS": "CL_GUI_ALV_TREE"};
this.on_drag = {"EVENT_NAME": "ON_DRAG", "EVENT_CLASS": "CL_GUI_ALV_TREE"};
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 set_hierarchy_header(INPUT) {
let is_hierarchy_header = INPUT?.is_hierarchy_header;
if (is_hierarchy_header?.getQualifiedName === undefined || is_hierarchy_header.getQualifiedName() !== "TREEV_HHDR") { is_hierarchy_header = undefined; }
if (is_hierarchy_header === undefined) { is_hierarchy_header = new abap.types.Structure({
"t_image": new abap.types.Character(46, {}),
"heading": new abap.types.Character(132, {}),
"tooltip": new abap.types.Character(132, {}),
"width": new abap.types.Integer({qualifiedName: "I"}),
"width_pix": new abap.types.Character(1, {})}, "TREEV_HHDR", "TREEV_HHDR", {}, {}).set(INPUT.is_hierarchy_header); }
let u_t_image = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.u_t_image) {u_t_image.set(INPUT.u_t_image);}
if (INPUT === undefined || INPUT.u_t_image === undefined) {u_t_image = abap.builtin.abap_true;}
let u_heading = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.u_heading) {u_heading.set(INPUT.u_heading);}
if (INPUT === undefined || INPUT.u_heading === undefined) {u_heading = abap.builtin.abap_true;}
let u_tooltip = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.u_tooltip) {u_tooltip.set(INPUT.u_tooltip);}
if (INPUT === undefined || INPUT.u_tooltip === undefined) {u_tooltip = abap.builtin.abap_true;}
let u_width = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.u_width) {u_width.set(INPUT.u_width);}
if (INPUT === undefined || INPUT.u_width === undefined) {u_width = abap.builtin.abap_true;}
return;
}
async get_parent(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 e_parent_node_key = INPUT?.e_parent_node_key || new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});
return;
}
async change_item(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 i_fieldname = INPUT?.i_fieldname;
if (i_fieldname?.getQualifiedName === undefined || i_fieldname.getQualifiedName() !== "LVC_FNAME") { i_fieldname = undefined; }
if (i_fieldname === undefined) { i_fieldname = new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"}).set(INPUT.i_fieldname); }
let i_data = INPUT?.i_data;
let i_u_data = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.i_u_data) {i_u_data.set(INPUT.i_u_data);}
if (INPUT === undefined || INPUT.i_u_data === undefined) {i_u_data = abap.builtin.abap_true;}
let is_item_layout = INPUT?.is_item_layout || new abap.types.Character(4);
return;
}
async unselect_nodes(INPUT) {
let it_node_key = INPUT?.it_node_key;
if (it_node_key?.getQualifiedName === undefined || it_node_key.getQualifiedName() !== "LVC_T_NKEY") { it_node_key = undefined; }
if (it_node_key === undefined) { it_node_key = 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").set(INPUT.it_node_key); }
return;
}
async get_checked_items(INPUT) {
let et_checked_items = INPUT?.et_checked_items || abap.types.TableFactory.construct(new abap.types.Structure({
"nodekey": new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"}),
"fieldname": new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"})}, "LVC_S_CHIT", "LVC_S_CHIT", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_CHIT");
return;
}
async get_subtree(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_subtree_nodes = INPUT?.et_subtree_nodes || 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");
return;
}
async collapse_subtree(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); }
return;
}
async get_expanded_nodes(INPUT) {
let ct_expanded_nodes = 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");
if (INPUT && INPUT.ct_expanded_nodes) {ct_expanded_nodes = INPUT.ct_expanded_nodes;}
return;
}
async get_top_node(INPUT) {
let e_node_key = INPUT?.e_node_key || new abap.types.Character(12, {"qualifiedName":"LVC_NKEY","ddicName":"LVC_NKEY","description":"LVC_NKEY"});
return;
}
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 || new abap.types.Character(4);
let i_outtab_line = INPUT?.i_outtab_line;
let it_item_layout = INPUT?.it_item_layout || new abap.types.Character(4);
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_fieldname = INPUT?.e_fieldname || new abap.types.Character(4);
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 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 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":"USER"});
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_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}; |