code: @Override
      public void setDesignMode(boolean designMode) {
          super.setDesignMode(designMode);
  
          for (ElementTrigger trigger : triggers) {
              trigger.setDesignMode(designMode);
          }
  
          setDesignContextMenu(designMode ? DesignContextMenu.getInstance().getMenupopup() : null);
          mask.update();
      }
docs: Sets design mode status for this component and all its children and triggers.
  
  @param designMode The design mode flag.