code: public void setListener(Listener listener) {
          if (null != listener) {
              listenerReference = new WeakReference<Listener>(listener);
          } else {
              listenerReference = null;
          }
      }
docs: Set a receiver for the Listener interface
  
  @param listener  The new receiver for events from the Listener interface for this instance