ui/src/main/java/org/apache/hop/ui/core/bus/HopGuiEventsHandler.java
public <T> void fire(T eventSubject, boolean all, String... eventIds) throws HopException {
    if (eventIds == null || eventIds.length == 0) {
      throw new RuntimeException("Please provide the IDs of the events you want to fire");
    }
    for (String eventId : eventIds) {
      if (StringUtils.isEmpty(eventId)) {
        throw new RuntimeException("Please only use event IDs which are not null or empty");
      }
    }

    // Execute the listeners for the given event IDs in all the parts of the GUI
    //
    for (Map<String, IHopGuiEventListener> eventListenerMap : guiEventListenerMap.values()) {
      for (String eventId : eventIds) {
        IHopGuiEventListener<T> listener = eventListenerMap.get(eventId);
        if (listener != null) {
          // We found the listener for the event ID!   Fire it!
          //
          listener.event(new HopGuiEvent<>(eventId, eventSubject));
          if (!all) {
            break; // Only execute once per GUI component
          }
        }
      }
    }
  }
/**
   * Fire on one or more of the specified events with the provided subject.
   *
   * @param eventSubject The subject to pass in the event
   * @param all Set to true if you want to fire on all the given eventIds. Use false if you only
   *     want to stop after you found the first registered listener
   * @param eventIds The event IDs to look up
   * @param <T> The type of the event subject
   * @throws HopException In case something goes wrong executing the listener lambdas.
   */
Fire on one or more of the specified events with the provided subject.
@param eventSubject The subject to pass in the event
@param all Set to true if you want to fire on all the given eventIds. Use false if you only
want to stop after you found the first registered listener
@param eventIds The event IDs to look up
@param  The type of the event subject
@throws HopException In case something goes wrong executing the listener lambdas.
Fire on one or more of the specified events with the provided subject . @param eventSubject The subject to pass in the event @param all Set to true if you want to fire on all the given eventIds . Use false if you only want to stop after you found the first registered listener @param eventIds The event IDs to look up @param The type of the event subject @throws HopException In case something goes wrong executing the listener lambdas .
public <T> void fire(T eventSubject, boolean all, String... eventIds) throws HopException {
    if (eventIds == null || eventIds.length == 0) {
      throw new RuntimeException("Please provide the IDs of the events you want to fire");
    }
    for (String eventId : eventIds) {
      if (StringUtils.isEmpty(eventId)) {
        throw new RuntimeException("Please only use event IDs which are not null or empty");
      }
    }
    for (Map<String, IHopGuiEventListener> eventListenerMap : guiEventListenerMap.values()) {
      for (String eventId : eventIds) {
        IHopGuiEventListener<T> listener = eventListenerMap.get(eventId);
        if (listener != null) {
           We found the listener for the event ID!   Fire it!
          listener.event(new HopGuiEvent<>(eventId, eventSubject));
          if (!all) {
            break;  Only execute once per GUI component
          }
        }
      }
    }
  }
public < T > void fire ( T eventSubject , boolean all , String ... eventIds ) throws HopException { if ( eventIds == null || eventIds . length == 0 ) { throw new RuntimeException ( "Please provide the IDs of the events you want to fire" ) ; } for ( String eventId : eventIds ) { if ( StringUtils . isEmpty ( eventId ) ) { throw new RuntimeException ( "Please only use event IDs which are not null or empty" ) ; } } for ( Map < String , IHopGuiEventListener > eventListenerMap : guiEventListenerMap . values ( ) ) { for ( String eventId : eventIds ) { IHopGuiEventListener < T > listener = eventListenerMap . get ( eventId ) ; if ( listener != null ) { listener . event ( new HopGuiEvent < > ( eventId , eventSubject ) ) ; if ( ! all ) { break ; } } } } }
Fire on one or more of the specified events with the provided subject.
Fire on one or more of the specified events with the provided subject .
// Execute the listeners for the given event IDs in all the parts of the GUI // // We found the listener for the event ID!   Fire it! // // Only execute once per GUI component