javax.swing.plaf.metal
public class MetalScrollPaneUI extends BasicScrollPaneUI
JScrollPane
component.BasicScrollPaneUI.HSBChangeListener, BasicScrollPaneUI.MouseWheelHandler, BasicScrollPaneUI.PropertyChangeHandler, BasicScrollPaneUI.ViewportChangeHandler, BasicScrollPaneUI.VSBChangeListener
hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListener
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
Constructor and Description |
---|
MetalScrollPaneUI()
Constructs a new instance of
MetalScrollPaneUI . |
Modifier and Type | Method and Description |
---|---|
protected PropertyChangeListener |
createScrollBarSwapListener()
TODO
|
static ComponentUI |
createUI(JComponent component)
Returns a shared instance of
MetalScrollPaneUI . |
void |
installListeners(JScrollPane scrollPane)
Installs listeners on scrollPane
|
void |
installUI(JComponent c)
Configures the specified component appropriate for the look and feel.
|
void |
uninstallListeners(JScrollPane scrollPane)
Uninstalls listeners on scrollPane
|
void |
uninstallUI(JComponent c)
Reverses configuration which was done on the specified component
during installUI.
|
createHSBChangeListener, createMouseWheelListener, createPropertyChangeListener, createViewportChangeListener, createVSBChangeListener, getMinimumSize, installDefaults, installKeyboardActions, paint, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy, updateViewport
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getPreferredSize, update
public MetalScrollPaneUI()
MetalScrollPaneUI
.public static ComponentUI createUI(JComponent component)
MetalScrollPaneUI
.component
- the component for which we return an UI instanceMetalScrollPaneUI
.public void installUI(JComponent c)
installUI
in class BasicScrollPaneUI
c
- - the component to install the ui onComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
uninstallUI
in class BasicScrollPaneUI
c
- - the component to uninstall the ui onComponentUI.installUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void installListeners(JScrollPane scrollPane)
installListeners
in class BasicScrollPaneUI
scrollPane
- - the component to install the listeners onpublic void uninstallListeners(JScrollPane scrollPane)
scrollPane
- - the component to uninstall the listeners onprotected PropertyChangeListener createScrollBarSwapListener()