All files / output cl_gui_textedit.clas.mjs

35.29% Statements 54/153
100% Branches 2/2
2.43% Functions 1/41
35.29% Lines 54/153

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 1531x 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_gui_control} = await import("./cl_gui_control.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_gui_textedit.clas.abap
class cl_gui_textedit extends cl_gui_control {
  static STATIC_SUPER = cl_gui_control;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_TEXTEDIT';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"FALSE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "TRUE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "WORDWRAP_AT_FIXED_POSITION": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "WORDWRAP_AT_WINDOWBORDER": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "WORDWRAP_OFF": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "EVENT_DOUBLE_CLICK": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"MAX_NUMBER_CHARS": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "WORDWRAP_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "WORDWRAP_TO_LINEBREAK_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "WORDWRAP_POSITION": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "PARENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}}},
  "SET_TOOLBAR_MODE": {"visibility": "U", "parameters": {"TOOLBAR_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "SET_TEXT_AS_R3TABLE": {"visibility": "U", "parameters": {"TABLE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});}, "is_optional": " ", "parm_kind": "I", "type_name": "TableType"}}},
  "SET_STATUSBAR_MODE": {"visibility": "U", "parameters": {"STATUSBAR_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "GET_TEXT_AS_R3TABLE": {"visibility": "U", "parameters": {"ONLY_WHEN_MODIFIED": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "TABLE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});}, "is_optional": " ", "parm_kind": "E", "type_name": "TableType"}, "IS_MODIFIED": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_WORDWRAP_BEHAVIOR": {"visibility": "U", "parameters": {"WORDWRAP_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "WORDWRAP_POSITION": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "WORDWRAP_TO_LINEBREAK_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "GET_TEXTSTREAM": {"visibility": "U", "parameters": {"ONLY_WHEN_MODIFIED": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "E", "type_name": "StringType"}, "IS_MODIFIED": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_READONLY_MODE": {"visibility": "U", "parameters": {"READONLY_MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "DELETE_TEXT": {"visibility": "U", "parameters": {}},
  "SET_TEXT_AS_STREAM": {"visibility": "U", "parameters": {"TEXT": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});}, "is_optional": " ", "parm_kind": "I", "type_name": "TableType"}}},
  "SET_FONT_FIXED": {"visibility": "U", "parameters": {"MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "SET_TEXTSTREAM": {"visibility": "U", "parameters": {"TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}}}};
  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,
      "set_toolbar_mode": this.set_toolbar_mode.bind(this),
      "set_text_as_r3table": this.set_text_as_r3table.bind(this),
      "set_statusbar_mode": this.set_statusbar_mode.bind(this),
      "get_text_as_r3table": this.get_text_as_r3table.bind(this),
      "set_wordwrap_behavior": this.set_wordwrap_behavior.bind(this),
      "get_textstream": this.get_textstream.bind(this),
      "set_readonly_mode": this.set_readonly_mode.bind(this),
      "delete_text": this.delete_text.bind(this),
      "set_text_as_stream": this.set_text_as_stream.bind(this),
      "set_font_fixed": this.set_font_fixed.bind(this),
      "set_textstream": this.set_textstream.bind(this),
    };
    this.false = cl_gui_textedit.false;
    this.true = cl_gui_textedit.true;
    this.wordwrap_at_fixed_position = cl_gui_textedit.wordwrap_at_fixed_position;
    this.wordwrap_at_windowborder = cl_gui_textedit.wordwrap_at_windowborder;
    this.wordwrap_off = cl_gui_textedit.wordwrap_off;
    this.event_double_click = cl_gui_textedit.event_double_click;
  }
  async set_wordwrap_behavior(INPUT) {
    let wordwrap_mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.wordwrap_mode) {wordwrap_mode.set(INPUT.wordwrap_mode);}
    if (INPUT === undefined || INPUT.wordwrap_mode === undefined) {wordwrap_mode = abap.IntegerFactory.get(-1);}
    let wordwrap_position = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.wordwrap_position) {wordwrap_position.set(INPUT.wordwrap_position);}
    if (INPUT === undefined || INPUT.wordwrap_position === undefined) {wordwrap_position = abap.IntegerFactory.get(-1);}
    let wordwrap_to_linebreak_mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.wordwrap_to_linebreak_mode) {wordwrap_to_linebreak_mode.set(INPUT.wordwrap_to_linebreak_mode);}
    if (INPUT === undefined || INPUT.wordwrap_to_linebreak_mode === undefined) {wordwrap_to_linebreak_mode = abap.IntegerFactory.get(0);}
    return;
  }
  async get_text_as_r3table(INPUT) {
    let only_when_modified = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.only_when_modified) {only_when_modified.set(INPUT.only_when_modified);}
    if (INPUT === undefined || INPUT.only_when_modified === undefined) {only_when_modified = $false;}
    let table = INPUT?.table || abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});
    let is_modified = INPUT?.is_modified || new abap.types.Integer({qualifiedName: "I"});
    return;
  }
  async set_text_as_r3table(INPUT) {
    let table = INPUT?.table || abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});
    return;
  }
  async set_textstream(INPUT) {
    let text = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.text) {text.set(INPUT.text);}
    return;
  }
  async set_font_fixed(INPUT) {
    let mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.mode) {mode.set(INPUT.mode);}
    if (INPUT === undefined || INPUT.mode === undefined) {mode = $true;}
    return;
  }
  async set_text_as_stream(INPUT) {
    let text = INPUT?.text || abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"USER"});
    return;
  }
  async delete_text() {
    return;
  }
  async set_readonly_mode(INPUT) {
    let readonly_mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.readonly_mode) {readonly_mode.set(INPUT.readonly_mode);}
    if (INPUT === undefined || INPUT.readonly_mode === undefined) {readonly_mode = $true;}
    return;
  }
  async constructor_(INPUT) {
    let max_number_chars = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.max_number_chars) {max_number_chars.set(INPUT.max_number_chars);}
    let wordwrap_mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.wordwrap_mode) {wordwrap_mode.set(INPUT.wordwrap_mode);}
    if (INPUT === undefined || INPUT.wordwrap_mode === undefined) {wordwrap_mode = this.wordwrap_at_windowborder;}
    let wordwrap_to_linebreak_mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.wordwrap_to_linebreak_mode) {wordwrap_to_linebreak_mode.set(INPUT.wordwrap_to_linebreak_mode);}
    if (INPUT === undefined || INPUT.wordwrap_to_linebreak_mode === undefined) {wordwrap_to_linebreak_mode = $false;}
    let wordwrap_position = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.wordwrap_position) {wordwrap_position.set(INPUT.wordwrap_position);}
    if (INPUT === undefined || INPUT.wordwrap_position === undefined) {wordwrap_position = abap.IntegerFactory.get(-1);}
    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); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(2)));
    return this;
  }
  async set_toolbar_mode(INPUT) {
    let toolbar_mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.toolbar_mode) {toolbar_mode.set(INPUT.toolbar_mode);}
    if (INPUT === undefined || INPUT.toolbar_mode === undefined) {toolbar_mode = $false;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(2)));
  }
  async set_statusbar_mode(INPUT) {
    let statusbar_mode = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.statusbar_mode) {statusbar_mode.set(INPUT.statusbar_mode);}
    if (INPUT === undefined || INPUT.statusbar_mode === undefined) {statusbar_mode = $false;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(2)));
  }
  async get_textstream(INPUT) {
    let only_when_modified = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.only_when_modified) {only_when_modified.set(INPUT.only_when_modified);}
    if (INPUT === undefined || INPUT.only_when_modified === undefined) {only_when_modified = $false;}
    let text = INPUT?.text || new abap.types.String({qualifiedName: "STRING"});
    let is_modified = INPUT?.is_modified || new abap.types.Integer({qualifiedName: "I"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(2)));
  }
}
abap.Classes['CL_GUI_TEXTEDIT'] = cl_gui_textedit;
cl_gui_textedit.false = new abap.types.Integer({qualifiedName: "I"});
cl_gui_textedit.false.set(0);
cl_gui_textedit.true = new abap.types.Integer({qualifiedName: "I"});
cl_gui_textedit.true.set(1);
cl_gui_textedit.wordwrap_at_fixed_position = new abap.types.Integer({qualifiedName: "I"});
cl_gui_textedit.wordwrap_at_fixed_position.set(1);
cl_gui_textedit.wordwrap_at_windowborder = new abap.types.Integer({qualifiedName: "I"});
cl_gui_textedit.wordwrap_at_windowborder.set(2);
cl_gui_textedit.wordwrap_off = new abap.types.Integer({qualifiedName: "I"});
cl_gui_textedit.wordwrap_off.set(3);
cl_gui_textedit.event_double_click = new abap.types.Integer({qualifiedName: "I"});
cl_gui_textedit.event_double_click.set(-601);
export {cl_gui_textedit};