public class MetalScrollPaneUI extends BasicScrollPaneUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
BasicScrollPaneUI.HSBChangeListener , BasicScrollPaneUI.MouseWheelHandler , BasicScrollPaneUI.PropertyChangeHandler , BasicScrollPaneUI.ViewportChangeHandler , BasicScrollPaneUI.VSBChangeListener hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListenerCOLUMN_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()
|
| Modifier and Type | Method and Description |
|---|---|
protected PropertyChangeListener |
createScrollBarSwapListener()
|
static ComponentUI |
createUI(JComponent
|
void |
installListeners(JScrollPane
|
void |
installUI(JComponent
Configures the specified component appropriately for the look and feel.
|
protected void |
uninstallListeners(JComponent
|
void |
uninstallListeners(JScrollPane
Deprecated.
- Replaced by
uninstallListeners(JComponent)
|
void |
uninstallUI(JComponent
Reverses configuration which was done on the specified component during
installUI.
|
createHSBChangeListener, createMouseWheelListener, createPropertyChangeListener, createViewportChangeListener, createVSBChangeListener, getBaseline, getBaselineResizeBehavior, getMaximumSize, installDefaults, installKeyboardActions, paint, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy, updateViewportcontains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, getPreferredSize, updatepublic static ComponentUIcreateUI(JComponent x)
public void installUI(JComponentc)
ComponentUI
ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
LayoutManager on the component if necessary. PropertyChangeListener on the component in order to detect and respond to component property changes appropriately. installUI in class
BasicScrollPaneUI
c - the component where this UI delegate is being installed
ComponentUI.uninstallUI(javax.swing.JComponent) ,
JComponent.setUI(javax.swing.plaf.ComponentUI) ,
JComponent.updateUI()
public void uninstallUI(JComponentc)
ComponentUI
installUI. This method is invoked when this
UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in
installUI, being careful to leave the
JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
uninstallUI in class
BasicScrollPaneUI
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.installUI(javax.swing.JComponent) ,
JComponent.updateUI()
public void installListeners(JScrollPanescrollPane)
protected void uninstallListeners(JComponentc)
@Deprecated public void uninstallListeners(JScrollPanescrollPane)
uninstallListeners(JComponent)
protected PropertyChangeListenercreateScrollBarSwapListener()