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 | 1x 1x 1x 1x 1x 1x 1x | const {zcl_abapgit_gui_component} = await import("./zcl_abapgit_gui_component.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_gui_page_db.clas.locals_imp.abap
class lcl_popup_to_confirm {
static STATIC_SUPER = undefined;
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_GUI_PAGE_DB-LCL_POPUP_TO_CONFIRM';
static IMPLEMENTED_INTERFACES = [];
static ATTRIBUTES = {"GO_POPUP": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_POPUP_TO_CONFIRM", RTTIName: "\\CLASS=ZCL_ABAPGIT_POPUP_TO_CONFIRM"});}, "visibility": "I", "is_constant": " ", "is_class": "X"}};
static METHODS = {"CREATE": {"visibility": "U", "parameters": {"IV_TITLEBAR": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_QUESTION": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_BUTTON_1": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_ACTION_BUTTON_1": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_TEXT_BUTTON_2": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_ACTION_BUTTON_2": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_DEFAULT_BUTTON": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_DISPLAY_CANCEL_BUTTON": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "IV_ACTION_CANCEL": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "IV_POPUP_TYPE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
"RENDER": {"visibility": "U", "parameters": {"RI_HTML": {"type": () => {return new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined});}, "is_optional": " ", "parm_kind": "R", "type_name": "GenericObjectReferenceType"}}},
"CLOSE": {"visibility": "U", "parameters": {}}};
#go_popup;
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
};
this.go_popup = lcl_popup_to_confirm.go_popup;
}
async constructor_(INPUT) {
if (super.constructor_) { await super.constructor_(INPUT); }
return this;
}
async create(INPUT) {
return lcl_popup_to_confirm.create(INPUT);
}
static async create(INPUT) {
let iv_titlebar = INPUT?.iv_titlebar || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_titlebar === undefined) {iv_titlebar = abap.CharacterFactory.get(7, 'Warning');}
let iv_text_question = INPUT?.iv_text_question;
let iv_text_button_1 = INPUT?.iv_text_button_1 || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_text_button_1 === undefined) {iv_text_button_1 = abap.CharacterFactory.get(3, 'Yes');}
let iv_action_button_1 = INPUT?.iv_action_button_1;
let iv_text_button_2 = INPUT?.iv_text_button_2 || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_text_button_2 === undefined) {iv_text_button_2 = abap.CharacterFactory.get(2, 'No');}
let iv_action_button_2 = INPUT?.iv_action_button_2;
let iv_default_button = INPUT?.iv_default_button || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_default_button === undefined) {iv_default_button = abap.CharacterFactory.get(1, '2');}
let iv_display_cancel_button = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.iv_display_cancel_button) {iv_display_cancel_button.set(INPUT.iv_display_cancel_button);}
if (INPUT === undefined || INPUT.iv_display_cancel_button === undefined) {iv_display_cancel_button = abap.builtin.abap_false;}
let iv_action_cancel = INPUT?.iv_action_cancel || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_action_cancel === undefined) {iv_action_cancel = abap.Classes['ZCL_ABAPGIT_POPUP_TO_CONFIRM'].c_action.get().cancel;}
let iv_popup_type = INPUT?.iv_popup_type || new abap.types.Character();
if (INPUT === undefined || INPUT.iv_popup_type === undefined) {iv_popup_type = abap.CharacterFactory.get(20, 'ICON_MESSAGE_WARNING');}
lcl_popup_to_confirm.go_popup.set((await abap.Classes['ZCL_ABAPGIT_POPUP_TO_CONFIRM'].create({iv_titlebar: iv_titlebar, iv_text_question: iv_text_question, iv_text_button_1: iv_text_button_1, iv_action_button_1: iv_action_button_1, iv_text_button_2: iv_text_button_2, iv_action_button_2: iv_action_button_2, iv_default_button: iv_default_button, iv_display_cancel_button: iv_display_cancel_button, iv_action_cancel: iv_action_cancel, iv_popup_type: iv_popup_type})));
}
async render() {
return lcl_popup_to_confirm.render();
}
static async render() {
let ri_html = new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined});
if (abap.compare.initial(lcl_popup_to_confirm.go_popup) || abap.compare.eq((await lcl_popup_to_confirm.go_popup.get().was_closed()), abap.builtin.abap_true)) {
ri_html.set((await abap.Classes['ZCL_ABAPGIT_HTML'].create()));
} else {
ri_html.set((await abap.Classes['ZCL_ABAPGIT_GUI_IN_PAGE_MODAL'].create({ii_child: lcl_popup_to_confirm.go_popup})));
}
return ri_html;
}
async close() {
return lcl_popup_to_confirm.close();
}
static async close() {
if (abap.compare.initial(lcl_popup_to_confirm.go_popup) === false) {
await lcl_popup_to_confirm.go_popup.get().close();
}
}
}
abap.Classes['CLAS-ZCL_ABAPGIT_GUI_PAGE_DB-LCL_POPUP_TO_CONFIRM'] = lcl_popup_to_confirm;
lcl_popup_to_confirm.go_popup = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_POPUP_TO_CONFIRM", RTTIName: "\\CLASS=ZCL_ABAPGIT_POPUP_TO_CONFIRM"});
export {lcl_popup_to_confirm}; |