コード例 #1
0
 @Override
 protected void uninstallListeners() {
   scrollbar.removeMouseMotionListener(this);
   scrollbar.removeMouseListener(this);
   myErrorStripeButton.removeMouseMotionListener(this);
   myErrorStripeButton.removeMouseListener(this);
   super.uninstallListeners();
 }
コード例 #2
0
    public void setPopupHandler(final PopupHandler handler) {
      if (myHandler != null) {
        scrollbar.removeMouseListener(myHandler);
        myErrorStripeButton.removeMouseListener(myHandler);
      }

      myHandler = handler;
      scrollbar.addMouseListener(handler);
      myErrorStripeButton.addMouseListener(myHandler);
    }