toCmpButtonEvent method

CmpButtonEvent toCmpButtonEvent()

Implementation

CmpButtonEvent toCmpButtonEvent() {
  switch (toLowerCase()) {
    case 'acceptall':
      return CmpButtonEvent.acceptAll;
    case 'rejectall':
      return CmpButtonEvent.rejectAll;
    case 'save':
      return CmpButtonEvent.save;
    case 'close':
      return CmpButtonEvent.close;
    default:
      return CmpButtonEvent.unknown;
  }
}