All files / output cl_gui_html_viewer.clas.mjs

35.78% Statements 34/95
100% Branches 2/2
3.7% Functions 1/27
35.78% Lines 34/95

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 951x 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_gui_control} = await import("./cl_gui_control.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_gui_html_viewer.clas.abap
class cl_gui_html_viewer extends cl_gui_control {
  static STATIC_SUPER = cl_gui_control;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_HTML_VIEWER';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"UIFLAG_NO3DBORDER": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "M_ID_SAPEVENT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  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"}, "QUERY_TABLE_DISABLED": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}}},
  "GO_BACK": {"visibility": "U", "parameters": {}},
  "CLOSE_DOCUMENT": {"visibility": "U", "parameters": {}},
  "GET_CURRENT_URL": {"visibility": "U", "parameters": {"URL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "E", "type_name": "CGenericType"}}},
  "LOAD_DATA": {"visibility": "U", "parameters": {"URL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}, "TYPE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}, "SUBTYPE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}, "SIZE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "ASSIGNED_URL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "E", "type_name": "CGenericType"}, "DATA_TABLE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});}, "is_optional": " ", "parm_kind": "C", "type_name": "TableType"}}},
  "SHOW_URL": {"visibility": "U", "parameters": {"IN_PLACE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "URL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}}},
  "SET_UI_FLAG": {"visibility": "U", "parameters": {"UIFLAG": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "SHOW_DATA": {"visibility": "U", "parameters": {"URL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}, "FRAME": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}, "IN_PLACE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}}}};
  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,
      "go_back": this.go_back.bind(this),
      "close_document": this.close_document.bind(this),
      "get_current_url": this.get_current_url.bind(this),
      "load_data": this.load_data.bind(this),
      "show_url": this.show_url.bind(this),
      "set_ui_flag": this.set_ui_flag.bind(this),
      "show_data": this.show_data.bind(this),
    };
    this.uiflag_no3dborder = cl_gui_html_viewer.uiflag_no3dborder;
    this.m_id_sapevent = cl_gui_html_viewer.m_id_sapevent;
    this.sapevent = {"EVENT_NAME": "SAPEVENT", "EVENT_CLASS": "CL_GUI_HTML_VIEWER"};
  }
  async set_ui_flag(INPUT) {
    let uiflag = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.uiflag) {uiflag.set(INPUT.uiflag);}
    if (INPUT === undefined || INPUT.uiflag === undefined) {uiflag = abap.IntegerFactory.get(0);}
    return;
  }
  async show_data(INPUT) {
    let url = INPUT?.url;
    let frame = INPUT?.frame || new abap.types.Character();
    let in_place = INPUT?.in_place || new abap.types.Character();
    if (INPUT === undefined || INPUT.in_place === undefined) {in_place = abap.CharacterFactory.get(2, 'X ');}
    return;
  }
  async show_url(INPUT) {
    let in_place = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.in_place) {in_place.set(INPUT.in_place);}
    let url = INPUT?.url;
    return;
  }
  async load_data(INPUT) {
    let url = INPUT?.url || new abap.types.Character();
    let type = INPUT?.type || new abap.types.Character();
    if (INPUT === undefined || INPUT.type === undefined) {type = abap.CharacterFactory.get(4, 'text');}
    let subtype = INPUT?.subtype || new abap.types.Character();
    if (INPUT === undefined || INPUT.subtype === undefined) {subtype = abap.CharacterFactory.get(4, 'html');}
    let size = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.size) {size.set(INPUT.size);}
    if (INPUT === undefined || INPUT.size === undefined) {size = abap.IntegerFactory.get(0);}
    let assigned_url = INPUT?.assigned_url || new abap.types.Character();
    let data_table = abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});
    if (INPUT && INPUT.data_table) {data_table = INPUT.data_table;}
    return;
  }
  async get_current_url(INPUT) {
    let url = INPUT?.url || new abap.types.Character();
    return;
  }
  async close_document() {
    return;
  }
  async go_back() {
    return;
  }
  async constructor_(INPUT) {
    let parent = INPUT?.parent;
    if (parent?.getQualifiedName === undefined || parent.getQualifiedName() !== "CL_GUI_CONTAINER") { parent = undefined; }
    if (parent === undefined) { parent = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"}).set(INPUT.parent); }
    let query_table_disabled = INPUT?.query_table_disabled || new abap.types.Character();
    return this;
    return this;
  }
}
abap.Classes['CL_GUI_HTML_VIEWER'] = cl_gui_html_viewer;
cl_gui_html_viewer.uiflag_no3dborder = new abap.types.Integer({qualifiedName: "I"});
cl_gui_html_viewer.uiflag_no3dborder.set(4);
cl_gui_html_viewer.m_id_sapevent = new abap.types.Integer({qualifiedName: "I"});
cl_gui_html_viewer.m_id_sapevent.set(1);
export {cl_gui_html_viewer};