javax.swing.plaf.basic
public class BasicScrollPaneUI extends ScrollPaneUI implements ScrollPaneConstants
| Nested Class Summary | |
|---|---|
| class | BasicScrollPaneUI.HSBChangeListener
Listens for changes in the state of the horizontal scrollbar's model and
updates the scrollpane accordingly.
|
| protected class | BasicScrollPaneUI.MouseWheelHandler
Listens for mouse wheel events and update the scrollpane accordingly.
|
| class | BasicScrollPaneUI.PropertyChangeHandler
Listens for property changes on the scrollpane and update the view
accordingly.
|
| class | BasicScrollPaneUI.ViewportChangeHandler
Listens for changes of the viewport's extent size and updates the
scrollpane accordingly.
|
| class | BasicScrollPaneUI.VSBChangeListener
Listens for changes in the state of the vertical scrollbar's model and
updates the scrollpane accordingly.
|
| Field Summary | |
|---|---|
| protected ChangeListener | hsbChangeListener
The horizontal scrollbar listener. |
| protected JScrollPane | scrollpane The Scrollpane for which the UI is provided by this class. |
| protected PropertyChangeListener | spPropertyChangeListener
The scrollpane property change listener. |
| protected ChangeListener | viewportChangeListener
The viewport listener. |
| protected ChangeListener | vsbChangeListener
The vertical scrollbar listener. |
| Method Summary | |
|---|---|
| protected ChangeListener | createHSBChangeListener()
Creates and returns the change listener for the horizontal scrollbar.
|
| protected MouseWheelListener | createMouseWheelListener()
Creates and returns the mouse wheel listener for the scrollpane.
|
| protected PropertyChangeListener | createPropertyChangeListener()
Creates and returns the property change listener for the scrollpane.
|
| static ComponentUI | createUI(JComponent c) |
| protected ChangeListener | createViewportChangeListener()
Creates and returns the change listener for the viewport.
|
| protected ChangeListener | createVSBChangeListener()
Creates and returns the change listener for the vertical scrollbar.
|
| Dimension | getMinimumSize(JComponent c) |
| protected void | installDefaults(JScrollPane p) |
| protected void | installKeyboardActions(JScrollPane sp)
Installs additional keyboard actions on the scrollpane. |
| protected void | installListeners(JScrollPane sp)
Installs the listeners on the scrollbars, the viewport and the scrollpane.
|
| void | installUI(JComponent c) |
| void | paint(Graphics g, JComponent c) |
| protected void | syncScrollPaneWithViewport()
Synchronizes the scrollbar and header settings positions and extent
with the viewport's view position and extent. |
| protected void | uninstallDefaults(JScrollPane p) |
| protected void | uninstallKeyboardActions(JScrollPane sp)
Uninstalls all keyboard actions from the JScrollPane that have been
installed by {@link #installKeyboardActions}. |
| protected void | uninstallListeners(JComponent c)
Uninstalls all the listeners that have been installed in
{@link #installListeners(JScrollPane)}.
|
| void | uninstallUI(JComponent c) |
| protected void | updateColumnHeader(PropertyChangeEvent ev)
Receives notification when the columnHeader property has
changed on the scrollpane.
|
| protected void | updateRowHeader(PropertyChangeEvent ev)
Receives notification when the rowHeader property has changed
on the scrollpane.
|
| protected void | updateScrollBarDisplayPolicy(PropertyChangeEvent ev)
Receives notification when the scrollBarDisplayPolicy
property has changed on the scrollpane.
|
| protected void | updateViewport(PropertyChangeEvent ev)
Receives notification when the viewport property has changed
on the scrollpane.
|
Returns: the change listener for the horizontal scrollbar
Returns: the mouse wheel listener for the scrollpane
Since: 1.4
Returns: the property change listener for the scrollpane
Returns: the change listener for the viewport
Returns: the change listener for the vertical scrollbar
Parameters: sp the scrollpane to install keyboard actions on
Parameters: sp the scrollpane on which to install the listeners
Parameters: sp the scrollpane to uninstall keyboard actions from
Parameters: c the scrollpane from which to uninstall the listeners
columnHeader property has
changed on the scrollpane.
Parameters: ev the property change event
rowHeader property has changed
on the scrollpane.
Parameters: ev the property change event
scrollBarDisplayPolicy
property has changed on the scrollpane.
Parameters: ev the property change event
viewport property has changed
on the scrollpane.
This method sets removes the viewportChangeListener from the old viewport
and adds it to the new viewport.
Parameters: ev the property change event