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 | 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_toolbar.clas.abap
class cl_gui_toolbar {
static STATIC_SUPER = undefined;
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'CL_GUI_TOOLBAR';
static IMPLEMENTED_INTERFACES = [];
static ATTRIBUTES = {};
static METHODS = {"FREE": {"visibility": "U", "parameters": {}},
"ADD_BUTTON": {"visibility": "U", "parameters": {"FCODE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "ICON": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}, "IS_DISABLED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "BUTN_TYPE": {"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": "I", "type_name": "StringType"}, "QUICKINFO": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}, "IS_CHECKED": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}}},
"SET_STATIC_CTXMENU": {"visibility": "U", "parameters": {"FCODE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "ICON": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "CTXMENU": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "BTNTYPE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}}};
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
"free": this.free.bind(this),
"add_button": this.add_button.bind(this),
"set_static_ctxmenu": this.set_static_ctxmenu.bind(this),
};
this.function_selected = {"EVENT_NAME": "FUNCTION_SELECTED", "EVENT_CLASS": "CL_GUI_TOOLBAR"};
}
async constructor_(INPUT) {
if (super.constructor_) { await super.constructor_(INPUT); }
return this;
}
async set_static_ctxmenu(INPUT) {
let fcode = INPUT?.fcode;
let icon = INPUT?.icon || new abap.types.Character();
let ctxmenu = INPUT?.ctxmenu || new abap.types.Character(4);
let btntype = new abap.types.Integer({qualifiedName: "I"});
if (INPUT && INPUT.btntype) {btntype.set(INPUT.btntype);}
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
async free() {
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
async add_button(INPUT) {
let fcode = INPUT?.fcode;
let icon = INPUT?.icon;
let is_disabled = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.is_disabled) {is_disabled.set(INPUT.is_disabled);}
let butn_type = INPUT?.butn_type;
if (butn_type?.getQualifiedName === undefined || butn_type.getQualifiedName() !== "I") { butn_type = undefined; }
if (butn_type === undefined) { butn_type = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.butn_type); }
let text = new abap.types.String({qualifiedName: "STRING"});
if (INPUT && INPUT.text) {text.set(INPUT.text);}
let quickinfo = new abap.types.String({qualifiedName: "STRING"});
if (INPUT && INPUT.quickinfo) {quickinfo.set(INPUT.quickinfo);}
let is_checked = INPUT?.is_checked || new abap.types.Character();
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
}
abap.Classes['CL_GUI_TOOLBAR'] = cl_gui_toolbar;
export {cl_gui_toolbar}; |