All files / output cl_salv_display_settings.clas.mjs

44.06% Statements 26/59
100% Branches 2/2
7.69% Functions 1/13
44.06% Lines 26/59

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 591x 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 {cx_root} = await import("./cx_root.clas.mjs");
// cl_salv_display_settings.clas.abap
class cl_salv_display_settings {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_DISPLAY_SETTINGS';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"TRUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "FALSE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"SET_LIST_HEADER_SIZE": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "SET_STRIPED_PATTERN": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "SET_LIST_HEADER": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(70, {"qualifiedName":"LVC_TITLE","ddicName":"LVC_TITLE","description":"LVC_TITLE"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "SET_FIT_COLUMN_TO_TABLE_SIZE": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "set_list_header_size": this.set_list_header_size.bind(this),
      "set_striped_pattern": this.set_striped_pattern.bind(this),
      "set_list_header": this.set_list_header.bind(this),
      "set_fit_column_to_table_size": this.set_fit_column_to_table_size.bind(this),
    };
    this.true = cl_salv_display_settings.true;
    this.false = cl_salv_display_settings.false;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async set_fit_column_to_table_size(INPUT) {
    let value = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.value) {value.set(INPUT.value);}
    if (INPUT === undefined || INPUT.value === undefined) {value = abap.builtin.abap_true;}
    return;
  }
  async set_list_header(INPUT) {
    let value = INPUT?.value;
    if (value?.getQualifiedName === undefined || value.getQualifiedName() !== "LVC_TITLE") { value = undefined; }
    if (value === undefined) { value = new abap.types.Character(70, {"qualifiedName":"LVC_TITLE","ddicName":"LVC_TITLE","description":"LVC_TITLE"}).set(INPUT.value); }
    return;
  }
  async set_striped_pattern(INPUT) {
    let value = INPUT?.value;
    if (value?.getQualifiedName === undefined || value.getQualifiedName() !== "ABAP_BOOL") { value = undefined; }
    if (value === undefined) { value = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}).set(INPUT.value); }
    return;
  }
  async set_list_header_size(INPUT) {
    let value = INPUT?.value;
    return;
  }
}
abap.Classes['CL_SALV_DISPLAY_SETTINGS'] = cl_salv_display_settings;
cl_salv_display_settings.true = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
cl_salv_display_settings.true.set('X');
cl_salv_display_settings.false = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
cl_salv_display_settings.false.set(' ');
export {cl_salv_display_settings};