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 |
/** |
/** |
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 |
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 |
/** |
/** |
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; |