/[classpath]/classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by rabbit78, Wed Sep 28 13:43:02 2005 UTC revision 1.15 by rabbit78, Thu Sep 29 23:12:39 2005 UTC
# Line 282  public class BasicScrollPaneUI extends S Line 282  public class BasicScrollPaneUI extends S
282      super.installUI(c);      super.installUI(c);
283      installDefaults((JScrollPane) c);      installDefaults((JScrollPane) c);
284      installListeners((JScrollPane) c);      installListeners((JScrollPane) c);
285        installKeyboardActions((JScrollPane) c);
286    }    }
287    
288    /**    /**
# Line 313  public class BasicScrollPaneUI extends S Line 314  public class BasicScrollPaneUI extends S
314    }    }
315    
316    /**    /**
317       * Installs additional keyboard actions on the scrollpane. This is a hook
318       * method provided to subclasses in order to install their own keyboard
319       * actions.
320       *
321       * @param sp the scrollpane to install keyboard actions on
322       */
323      protected void installKeyboardActions(JScrollPane sp)
324      {
325        // TODO: Is this only a hook method or should we actually do something
326        // here? If the latter, than figure out what and implement this.
327      }
328    
329      /**
330     * Creates and returns the change listener for the horizontal scrollbar.     * Creates and returns the change listener for the horizontal scrollbar.
331     *     *
332     * @return the change listener for the horizontal scrollbar     * @return the change listener for the horizontal scrollbar
# Line 367  public class BasicScrollPaneUI extends S Line 381  public class BasicScrollPaneUI extends S
381      super.uninstallUI(c);      super.uninstallUI(c);
382      this.uninstallDefaults((JScrollPane)c);      this.uninstallDefaults((JScrollPane)c);
383      uninstallListeners((JScrollPane) c);      uninstallListeners((JScrollPane) c);
384        installKeyboardActions((JScrollPane) c);
385    }    }
386    
387    /**    /**
# Line 387  public class BasicScrollPaneUI extends S Line 402  public class BasicScrollPaneUI extends S
402      sp.removeMouseWheelListener(mouseWheelListener);      sp.removeMouseWheelListener(mouseWheelListener);
403    }    }
404    
405      /**
406       * Uninstalls all keyboard actions from the JScrollPane that have been
407       * installed by {@link #installKeyboardActions}. This is a hook method
408       * provided to subclasses to add their own keyboard actions.
409       *
410       * @param sp the scrollpane to uninstall keyboard actions from
411       */
412      protected void uninstallKeyboardActions(JScrollPane sp)
413      {
414        // TODO: Is this only a hook method or should we actually do something
415        // here? If the latter, than figure out what and implement this.
416      }
417    
418    public Dimension getMinimumSize(JComponent c)    public Dimension getMinimumSize(JComponent c)
419    {    {
420      JScrollPane p = (JScrollPane ) c;      JScrollPane p = (JScrollPane ) c;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26