code: public static void disableAction(BaseComponent component, String eventName, boolean disable) {
          ActionListener listener = getListener(component, eventName);
          
          if (listener != null) {
              listener.setDisabled(disable);
          }
      }
docs: Enables or disables the deferred event listener associated with the component.
  
  @param component The component.
  @param eventName The name of the event.
  @param disable Disable state for listener.