java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollPaneUI
javax.swing.plaf.basic.BasicScrollPaneUI
javax.swing.plaf.metal.MetalScrollPaneUI
- 所有已实现的接口:
-
ScrollPaneConstants
一个 Metal L&F 实现的 ScrollPaneUI。
警告: 该类的序列化对象将不兼容未来的 Swing 发布版本。当前的序列化支持适用于短期存储或在运行相同 Swing 版本的应用程序之间的 RMI。从 1.4 版本开始,已经向 java.beans
包中添加了对所有 JavaBeans 的长期存储支持。请参阅 XMLEncoder
。
-
Nested Class Summary
Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicScrollPaneUI
BasicScrollPaneUI.HSBChangeListener, BasicScrollPaneUI.MouseWheelHandler, BasicScrollPaneUI.PropertyChangeHandler, BasicScrollPaneUI.ViewportChangeHandler, BasicScrollPaneUI.VSBChangeListener
-
Field Summary
Fields declared in class javax.swing.plaf.basic.BasicScrollPaneUI
hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListener
Fields declared in interface javax.swing.ScrollPaneConstants
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PropertyChangeListener
返回一个用于滚动条交换事件的新PropertyChangeListener
。static ComponentUI
构造一个新的MetalScrollPaneUI
。void
installListeners
(JScrollPane scrollPane) 注册监听器。void
uninstallListeners
(JScrollPane scrollPane) 已弃用。Methods declared in class javax.swing.plaf.basic.BasicScrollPaneUI
createHSBChangeListener, createMouseWheelListener, createPropertyChangeListener, createViewportChangeListener, createVSBChangeListener, getBaseline, getBaselineResizeBehavior, getMaximumSize, installDefaults, installKeyboardActions, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy, updateViewport
Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Constructor Details
-
MetalScrollPaneUI
public MetalScrollPaneUI()构造一个MetalScrollPaneUI
。
-
-
Method Details
-
createUI
构造一个新的MetalScrollPaneUI
。- 参数:
-
x
- 一个组件 - 返回:
-
一个新的
MetalScrollPaneUI
-
installListeners
从类中复制的描述:BasicScrollPaneUI
注册监听器。- 覆盖:
-
installListeners
在类BasicScrollPaneUI
中 - 参数:
-
scrollPane
- 一个JScrollPane
实例
-
uninstallListeners
Deprecated.- Replaced byBasicScrollPaneUI.uninstallListeners(JComponent)
- 参数:
-
scrollPane
- 一个JScrollPane
实例
-
createScrollBarSwapListener
返回一个用于滚动条交换事件的新PropertyChangeListener
。- 返回:
-
一个用于滚动条交换事件的新
PropertyChangeListener
。
-
BasicScrollPaneUI.uninstallListeners(JComponent)
替代