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 | 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"}};
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"}, "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_STATUSBAR_MODE": {"visibility": "U", "parameters": {"STATUSBAR_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":"DEFAULT"});}, "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_statusbar_mode": this.set_statusbar_mode.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;
}
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":"DEFAULT"});
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 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);
export {cl_gui_textedit}; |