All files / output cl_gui_control.clas.mjs

42.85% Statements 24/56
100% Branches 2/2
7.14% Functions 1/14
42.85% Lines 24/56

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 561x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                       1x       1x     1x       1x       1x     1x           1x       1x 1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_gui_control.clas.abap
class cl_gui_control {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_CONTROL';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"WWW_ACTIVE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "U", "is_constant": " ", "is_class": "X"}};
  static METHODS = {"SET_FOCUS": {"visibility": "U", "parameters": {"CONTROL": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTROL", RTTIName: "\\CLASS=CL_GUI_CONTROL"});}, "is_optional": " "}}},
  "SET_ENABLE": {"visibility": "U", "parameters": {"ENABLE": {"type": () => {return new abap.types.Character();}, "is_optional": " "}}},
  "SET_VISIBLE": {"visibility": "U", "parameters": {"VISIBLE": {"type": () => {return new abap.types.Character();}, "is_optional": " "}}},
  "SET_REGISTERED_EVENTS": {"visibility": "U", "parameters": {"EVENTS": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}},
  "FREE": {"visibility": "U", "parameters": {}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "set_enable": this.set_enable.bind(this),
      "set_visible": this.set_visible.bind(this),
      "set_registered_events": this.set_registered_events.bind(this),
      "free": this.free.bind(this),
    };
    this.www_active = cl_gui_control.www_active;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async free() {
    return;
  }
  async set_registered_events(INPUT) {
    let events = INPUT?.events;
    return;
  }
  async set_visible(INPUT) {
    let visible = INPUT?.visible;
    return;
  }
  async set_focus(INPUT) {
    return cl_gui_control.set_focus(INPUT);
  }
  static async set_focus(INPUT) {
    let control = INPUT?.control;
    if (control?.getQualifiedName === undefined || control.getQualifiedName() !== "CL_GUI_CONTROL") { control = undefined; }
    if (control === undefined) { control = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTROL", RTTIName: "\\CLASS=CL_GUI_CONTROL"}).set(INPUT.control); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async set_enable(INPUT) {
    let enable = INPUT?.enable;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
}
abap.Classes['CL_GUI_CONTROL'] = cl_gui_control;
cl_gui_control.www_active = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
export {cl_gui_control};