Пример #1
0
 /** {@inheritDoc} */
 @Override
 protected void uninstallListeners(JComponent c) {
   super.uninstallListeners(c);
   c.removePropertyChangeListener(this);
   if (viewportViewFocusHandler != null) {
     JViewport viewport = ((JScrollPane) c).getViewport();
     viewport.removeContainerListener(viewportViewFocusHandler);
     if (viewport.getView() != null) {
       viewport.getView().removeFocusListener(viewportViewFocusHandler);
     }
     viewportViewFocusHandler = null;
   }
 }
Пример #2
0
 /**
  * Uninstalls listeners on scrollPane
  *
  * @param scrollPane - the component to uninstall the listeners on
  */
 public void uninstallListeners(JScrollPane scrollPane) {
   super.uninstallListeners(scrollPane);
 }