APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.plaf.basic

public Class BasicScrollPaneUI

extends ScrollPaneUI
implements ScrollPaneConstants
Class Inheritance
All Implemented Interfaces
javax.swing.ScrollPaneConstants
Known Direct Subclasses
javax.swing.plaf.metal.MetalScrollPaneUI, javax.swing.plaf.synth.SynthScrollPaneUI, com.sun.java.swing.plaf.motif.MotifScrollPaneUI, sun.awt.X11.XTextAreaPeer.XAWTScrollPaneUI
Imports
sun.swing.DefaultLookup, .UIAction, javax.swing.*, javax.swing.event.*, javax.swing.border.*, javax.swing.plaf.*, java.beans.PropertyChangeListener, .PropertyChangeEvent, java.awt.Component, .Rectangle, .Dimension, .Point, .Insets, .Graphics, java.awt.event.*

A default L&F implementation of ScrollPaneUI.
Author
Hans Muller

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
pack-priv class
public class
BasicScrollPaneUI.HSBChangeListener

Deprecated for removal since 17.
Horizontal scrollbar listener.
protected class
BasicScrollPaneUI.MouseWheelHandler

MouseWheelHandler is an inner class which implements the MouseWheelListener interface.

public class
BasicScrollPaneUI.PropertyChangeHandler

Deprecated for removal since 17.
Property change handler.
public class
BasicScrollPaneUI.ViewportChangeHandler

Deprecated for removal since 17.
Listener for viewport events.
public class
BasicScrollPaneUI.VSBChangeListener

Deprecated for removal since 17.
Vertical scrollbar listener.

Field Summary

Modifier and TypeField and Description
private BasicScrollPaneUI.Handler
protected ChangeListener
hsbChangeListener

ChangeListener installed on the horizontal scrollbar.

private PropertyChangeListener
hsbPropertyChangeListener

PropertyChangeListener installed on the horizontal scrollbar.

private MouseWheelListener
private int
protected JScrollPane
scrollpane

The instance of JScrollPane.

private boolean
setValueCalled

State flag that shows whether setValue() was called from a user program before the value of "extent" was set in right-to-left component orientation.

protected PropertyChangeListener
spPropertyChangeListener

PropertyChangeListener installed on the scroll pane.

protected ChangeListener
viewportChangeListener

ChangeListener installed on the viewport.

protected ChangeListener
vsbChangeListener

ChangeListener installed on the vertical scrollbar.

private PropertyChangeListener
vsbPropertyChangeListener

PropertyChangeListener installed on the vertical scrollbar.

Constructor Summary

AccessConstructor and Description
public
BasicScrollPaneUI()

Constructs a BasicScrollPaneUI.

Method Summary

Modifier and TypeMethod and Description
protected ChangeListener

Returns:

an instance of horizontal scroll bar ChangeListener
createHSBChangeListener
()

Returns an instance of horizontal scroll bar ChangeListener.

private PropertyChangeListener
createHSBPropertyChangeListener()

Returns a PropertyChangeListener that will be installed on the horizontal JScrollBar.

protected MouseWheelListener

Returns:

MouseWheelListener which implements wheel-driven scrolling
createMouseWheelListener
()

Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI().

protected PropertyChangeListener

Returns:

an instance of PropertyChangeListener
createPropertyChangeListener
()

Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI().

public static ComponentUI

Returns:

a new instance of BasicScrollPaneUI
createUI
(JComponent
a component.
x
)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a new instance of BasicScrollPaneUI.

protected ChangeListener

Returns:

an instance of viewport ChangeListener
createViewportChangeListener
()

Returns an instance of viewport ChangeListener.

protected ChangeListener

Returns:

an instance of vertical scroll bar ChangeListener
createVSBChangeListener
()

Returns an instance of vertical scroll bar ChangeListener.

private PropertyChangeListener
createVSBPropertyChangeListener()

Returns a PropertyChangeListener that will be installed on the vertical JScrollBar.

public int
getBaseline(JComponent c, int width, int height)

Overrides javax.swing.plaf.ComponentUI.getBaseline.

Returns the baseline.

public Component.BaselineResizeBehavior
getBaselineResizeBehavior(JComponent c)

Overrides javax.swing.plaf.ComponentUI.getBaselineResizeBehavior.

Returns an enum indicating how the baseline of the component changes as the size changes.

private BasicScrollPaneUI.Handler
pack-priv InputMap
getInputMap(int condition)

public Dimension

Returns:

new Dimension(Short.MAX_VALUE, Short.MAX_VALUE)
getMaximumSize
(JComponent c)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Returns the specified component's maximum size appropriate for the look and feel.

protected void
installDefaults(JScrollPane
an instance of JScrollPane
scrollpane
)

Installs default properties.

protected void
installKeyboardActions(JScrollPane
an instance of JScrollPane
c
)

Registers keyboard actions.

protected void
installListeners(JScrollPane
an instance of JScrollPane
c
)

Registers listeners.

public void
installUI(JComponent x)

Overrides javax.swing.plaf.ComponentUI.installUI.

Configures the specified component appropriately for the look and feel.

pack-priv static void
public void
paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.ComponentUI.paint.

Paints the specified component appropriately for the look and feel.

protected void
syncScrollPaneWithViewport()

Synchronizes the JScrollPane with Viewport.

protected void
uninstallDefaults(JScrollPane
an instance of JScrollPane
c
)

Uninstalls default properties.

protected void
uninstallKeyboardActions(JScrollPane
an instance of JScrollPane
c
)

Unregisters keyboard actions.

protected void
uninstallListeners(JComponent
a component
c
)

Unregisters listeners.

public void
uninstallUI(JComponent c)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Reverses configuration which was done on the specified component during installUI.

protected void
updateColumnHeader(PropertyChangeEvent
the property change event
e
)

Updates column header.

private void
protected void
updateRowHeader(PropertyChangeEvent
the property change event
e
)

Updates row header.

private void
protected void
updateScrollBarDisplayPolicy(PropertyChangeEvent
the property change event
e
)

Updates a scroll bar display policy.

private void
protected void
updateViewport(PropertyChangeEvent
the property change event
e
)

Updates viewport.

Field Detail

handlerback to summary
private BasicScrollPaneUI.Handler handler
hsbChangeListenerback to summary
protected ChangeListener hsbChangeListener

ChangeListener installed on the horizontal scrollbar.

hsbPropertyChangeListenerback to summary
private PropertyChangeListener hsbPropertyChangeListener

PropertyChangeListener installed on the horizontal scrollbar.

mouseScrollListenerback to summary
private MouseWheelListener mouseScrollListener
oldExtentback to summary
private int oldExtent
scrollpaneback to summary
protected JScrollPane scrollpane

The instance of JScrollPane.

setValueCalledback to summary
private boolean setValueCalled

State flag that shows whether setValue() was called from a user program before the value of "extent" was set in right-to-left component orientation.

spPropertyChangeListenerback to summary
protected PropertyChangeListener spPropertyChangeListener

PropertyChangeListener installed on the scroll pane.

viewportChangeListenerback to summary
protected ChangeListener viewportChangeListener

ChangeListener installed on the viewport.

vsbChangeListenerback to summary
protected ChangeListener vsbChangeListener

ChangeListener installed on the vertical scrollbar.

vsbPropertyChangeListenerback to summary
private PropertyChangeListener vsbPropertyChangeListener

PropertyChangeListener installed on the vertical scrollbar.

Constructor Detail

BasicScrollPaneUIback to summary
public BasicScrollPaneUI()

Constructs a BasicScrollPaneUI.

Method Detail

createHSBChangeListenerback to summary
protected ChangeListener createHSBChangeListener()

Returns an instance of horizontal scroll bar ChangeListener.

Returns:ChangeListener

an instance of horizontal scroll bar ChangeListener

createHSBPropertyChangeListenerback to summary
private PropertyChangeListener createHSBPropertyChangeListener()

Returns a PropertyChangeListener that will be installed on the horizontal JScrollBar.

createMouseWheelListenerback to summary
protected MouseWheelListener createMouseWheelListener()

Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI(). The returned MouseWheelListener is used to handle mouse wheel-driven scrolling.

Returns:MouseWheelListener

MouseWheelListener which implements wheel-driven scrolling

Since
1.4
See Also
installUI, MouseWheelHandler
createPropertyChangeListenerback to summary
protected PropertyChangeListener createPropertyChangeListener()

Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI(). Subclasses can override this method to return a custom PropertyChangeListener, e.g.

class MyScrollPaneUI extends BasicScrollPaneUI {
   protected PropertyChangeListener createPropertyChangeListener() {
       return new MyPropertyChangeListener();
   }
   public class MyPropertyChangeListener extends PropertyChangeListener {
       public void propertyChange(PropertyChangeEvent e) {
           if (e.getPropertyName().equals("viewport")) {
               // do some extra work when the viewport changes
           }
           super.propertyChange(e);
       }
   }
}
Returns:PropertyChangeListener

an instance of PropertyChangeListener

See Also
java.beans.PropertyChangeListener, installUI
createUIback to summary
public static ComponentUI createUI(JComponent x)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a new instance of BasicScrollPaneUI.

Parameters
x:JComponent

a component.

Returns:ComponentUI

a new instance of BasicScrollPaneUI

createViewportChangeListenerback to summary
protected ChangeListener createViewportChangeListener()

Returns an instance of viewport ChangeListener.

Returns:ChangeListener

an instance of viewport ChangeListener

createVSBChangeListenerback to summary
protected ChangeListener createVSBChangeListener()

Returns an instance of vertical scroll bar ChangeListener.

Returns:ChangeListener

an instance of vertical scroll bar ChangeListener

createVSBPropertyChangeListenerback to summary
private PropertyChangeListener createVSBPropertyChangeListener()

Returns a PropertyChangeListener that will be installed on the vertical JScrollBar.

getBaselineback to summary
public int getBaseline(JComponent c, int width, int height)

Overrides javax.swing.plaf.ComponentUI.getBaseline.

Returns the baseline.

Exceptions
NullPointerException:
if c is null
IllegalArgumentException:
if width or height is < 0
Since
1.6
See Also
javax.swing.JComponent#getBaseline(int, int)
getBaselineResizeBehaviorback to summary
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)

Overrides javax.swing.plaf.ComponentUI.getBaselineResizeBehavior.

Returns an enum indicating how the baseline of the component changes as the size changes.

Exceptions
NullPointerException:
if c is null
Since
1.6
See Also
javax.swing.JComponent#getBaseline(int, int)
getHandlerback to summary
private BasicScrollPaneUI.Handler getHandler()
getInputMapback to summary
pack-priv InputMap getInputMap(int condition)
getMaximumSizeback to summary
public Dimension getMaximumSize(JComponent c)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Doc from javax.swing.plaf.ComponentUI.getMaximumSize.

Returns the specified component's maximum size appropriate for the look and feel. If null is returned, the maximum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Returns:Dimension

new Dimension(Short.MAX_VALUE, Short.MAX_VALUE)

installDefaultsback to summary
protected void installDefaults(JScrollPane scrollpane)

Installs default properties.

Parameters
scrollpane:JScrollPane

an instance of JScrollPane

installKeyboardActionsback to summary
protected void installKeyboardActions(JScrollPane c)

Registers keyboard actions.

Parameters
c:JScrollPane

an instance of JScrollPane

installListenersback to summary
protected void installListeners(JScrollPane c)

Registers listeners.

Parameters
c:JScrollPane

an instance of JScrollPane

installUIback to summary
public void installUI(JComponent x)

Overrides javax.swing.plaf.ComponentUI.installUI.

Doc from javax.swing.plaf.ComponentUI.installUI.

Configures the specified component appropriately for the look and feel. This method is invoked when the 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:

  1. Install default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.
loadActionMapback to summary
pack-priv static void loadActionMap(LazyActionMap map)
paintback to summary
public void paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.ComponentUI.paint.

Doc from javax.swing.plaf.ComponentUI.paint.

Paints the specified component appropriately for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

syncScrollPaneWithViewportback to summary
protected void syncScrollPaneWithViewport()

Synchronizes the JScrollPane with Viewport.

uninstallDefaultsback to summary
protected void uninstallDefaults(JScrollPane c)

Uninstalls default properties.

Parameters
c:JScrollPane

an instance of JScrollPane

uninstallKeyboardActionsback to summary
protected void uninstallKeyboardActions(JScrollPane c)

Unregisters keyboard actions.

Parameters
c:JScrollPane

an instance of JScrollPane

uninstallListenersback to summary
protected void uninstallListeners(JComponent c)

Unregisters listeners.

Parameters
c:JComponent

a component

uninstallUIback to summary
public void uninstallUI(JComponent c)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Doc from javax.swing.plaf.ComponentUI.uninstallUI.

Reverses configuration which was done on the specified component during 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:

  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.
updateColumnHeaderback to summary
protected void updateColumnHeader(PropertyChangeEvent e)

Updates column header.

Parameters
e:PropertyChangeEvent

the property change event

updateHorizontalScrollBarback to summary
private void updateHorizontalScrollBar(PropertyChangeEvent pce)
updateRowHeaderback to summary
protected void updateRowHeader(PropertyChangeEvent e)

Updates row header.

Parameters
e:PropertyChangeEvent

the property change event

updateScrollBarback to summary
private void updateScrollBar(PropertyChangeEvent pce, ChangeListener cl, PropertyChangeListener pcl)
updateScrollBarDisplayPolicyback to summary
protected void updateScrollBarDisplayPolicy(PropertyChangeEvent e)

Updates a scroll bar display policy.

Parameters
e:PropertyChangeEvent

the property change event

updateVerticalScrollBarback to summary
private void updateVerticalScrollBar(PropertyChangeEvent pce)
updateViewportback to summary
protected void updateViewport(PropertyChangeEvent e)

Updates viewport.

Parameters
e:PropertyChangeEvent

the property change event

javax.swing.plaf.basic back to summary

private Class BasicScrollPaneUI.Actions

extends UIAction
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

private void
scroll(JScrollPane scrollpane, int orientation, int direction, boolean block)

private void
scrollEnd(JScrollPane scrollpane)

private void
scrollHome(JScrollPane scrollpane)

Inherited from sun.swing.UIAction:
acceptaddPropertyChangeListenergetNamegetValueisEnabledputValueremovePropertyChangeListenersetEnabled

Field Detail

SCROLL_DOWNback to summary
private static final String SCROLL_DOWN
SCROLL_ENDback to summary
private static final String SCROLL_END
SCROLL_HOMEback to summary
private static final String SCROLL_HOME
SCROLL_LEFTback to summary
private static final String SCROLL_LEFT
SCROLL_RIGHTback to summary
private static final String SCROLL_RIGHT
SCROLL_UPback to summary
private static final String SCROLL_UP
UNIT_SCROLL_DOWNback to summary
private static final String UNIT_SCROLL_DOWN
UNIT_SCROLL_LEFTback to summary
private static final String UNIT_SCROLL_LEFT
UNIT_SCROLL_RIGHTback to summary
private static final String UNIT_SCROLL_RIGHT
UNIT_SCROLL_UPback to summary
private static final String UNIT_SCROLL_UP

Constructor Detail

Actionsback to summary
pack-priv Actions(String key)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

scrollback to summary
private void scroll(JScrollPane scrollpane, int orientation, int direction, boolean block)
scrollEndback to summary
private void scrollEnd(JScrollPane scrollpane)
scrollHomeback to summary
private void scrollHome(JScrollPane scrollpane)
javax.swing.plaf.basic back to summary

pack-priv Class BasicScrollPaneUI.Handler

extends Object
implements ChangeListener, PropertyChangeListener, MouseWheelListener
Class Inheritance
All Implemented Interfaces
java.awt.event.MouseWheelListener, java.util.EventListener, java.beans.PropertyChangeListener, javax.swing.event.ChangeListener

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
public void
mouseWheelMoved(MouseWheelEvent e)

Implements java.awt.event.MouseWheelListener.mouseWheelMoved.

Invoked when the mouse wheel is rotated.

public void
propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

private void
private void
public void
stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Handlerback to summary
pack-priv Handler()

Method Detail

hsbStateChangedback to summary
private void hsbStateChanged(JViewport viewport, ChangeEvent e)
mouseWheelMovedback to summary
public void mouseWheelMoved(MouseWheelEvent e)

Implements java.awt.event.MouseWheelListener.mouseWheelMoved.

Doc from java.awt.event.MouseWheelListener.mouseWheelMoved.

Invoked when the mouse wheel is rotated.

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

sbPropertyChangeback to summary
private void sbPropertyChange(PropertyChangeEvent e)
scrollPanePropertyChangeback to summary
private void scrollPanePropertyChange(PropertyChangeEvent e)
stateChangedback to summary
public void stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Doc from javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

vsbStateChangedback to summary
private void vsbStateChanged(JViewport viewport, ChangeEvent e)
javax.swing.plaf.basic back to summary

public Class BasicScrollPaneUI.HSBChangeListener

extends Object
implements ChangeListener
Class Inheritance
All Implemented Interfaces
javax.swing.event.ChangeListener, java.util.EventListener
Annotations
@Deprecated
since:17
forRemoval:true

Deprecated

for removal since 17.

Horizontal scrollbar listener. This class exists only for backward compatibility. All its functionality has been moved into Handler.

Constructor Summary

AccessConstructor and Description
public
HSBChangeListener()

Constructs a HSBChangeListener.

Method Summary

Modifier and TypeMethod and Description
public void
stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HSBChangeListenerback to summary
public HSBChangeListener()

Constructs a HSBChangeListener.

Method Detail

stateChangedback to summary
public void stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Doc from javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

javax.swing.plaf.basic back to summary

protected Class BasicScrollPaneUI.MouseWheelHandler

extends Object
implements MouseWheelListener
Class Inheritance
All Implemented Interfaces
java.awt.event.MouseWheelListener, java.util.EventListener

MouseWheelHandler is an inner class which implements the MouseWheelListener interface. MouseWheelHandler responds to MouseWheelEvents by scrolling the JScrollPane appropriately. If the scroll pane's isWheelScrollingEnabled method returns false, no scrolling occurs.
Since
1.4
See Also
javax.swing.JScrollPane#isWheelScrollingEnabled, createMouseWheelListener, java.awt.event.MouseWheelListener, java.awt.event.MouseWheelEvent

Constructor Summary

AccessConstructor and Description
protected
MouseWheelHandler()

Constructs a MouseWheelHandler.

Method Summary

Modifier and TypeMethod and Description
public void
mouseWheelMoved(MouseWheelEvent
MouseWheelEvent to be handled
e
)

Implements java.awt.event.MouseWheelListener.mouseWheelMoved.

Called when the mouse wheel is rotated while over a JScrollPane.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MouseWheelHandlerback to summary
protected MouseWheelHandler()

Constructs a MouseWheelHandler.

Method Detail

mouseWheelMovedback to summary
public void mouseWheelMoved(MouseWheelEvent e)

Implements java.awt.event.MouseWheelListener.mouseWheelMoved.

Called when the mouse wheel is rotated while over a JScrollPane.

Parameters
e:MouseWheelEvent

MouseWheelEvent to be handled

Since
1.4
javax.swing.plaf.basic back to summary

public Class BasicScrollPaneUI.PropertyChangeHandler

extends Object
implements PropertyChangeListener
Class Inheritance
  • java.lang.Object
  • javax.swing.plaf.basic.BasicScrollPaneUI.PropertyChangeHandler
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener
Annotations
@Deprecated
since:17
forRemoval:true

Deprecated

for removal since 17.

Property change handler. This class exists only for backward compatibility. All its functionality has been moved into Handler.

Constructor Summary

AccessConstructor and Description
public
PropertyChangeHandler()

Constructs a PropertyChangeHandler.

Method Summary

Modifier and TypeMethod and Description
public void
propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyChangeHandlerback to summary
public PropertyChangeHandler()

Constructs a PropertyChangeHandler.

Method Detail

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

javax.swing.plaf.basic back to summary

public Class BasicScrollPaneUI.ViewportChangeHandler

extends Object
implements ChangeListener
Class Inheritance
  • java.lang.Object
  • javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler
All Implemented Interfaces
javax.swing.event.ChangeListener, java.util.EventListener
Annotations
@Deprecated
since:17
forRemoval:true

Deprecated

for removal since 17.

Listener for viewport events. This class exists only for backward compatibility. All its functionality has been moved into Handler.

Constructor Summary

AccessConstructor and Description
public
ViewportChangeHandler()

Constructs a ViewportChangeHandler.

Method Summary

Modifier and TypeMethod and Description
public void
stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ViewportChangeHandlerback to summary
public ViewportChangeHandler()

Constructs a ViewportChangeHandler.

Method Detail

stateChangedback to summary
public void stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Doc from javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

javax.swing.plaf.basic back to summary

public Class BasicScrollPaneUI.VSBChangeListener

extends Object
implements ChangeListener
Class Inheritance
All Implemented Interfaces
javax.swing.event.ChangeListener, java.util.EventListener
Annotations
@Deprecated
since:17
forRemoval:true

Deprecated

for removal since 17.

Vertical scrollbar listener. This class exists only for backward compatibility. All its functionality has been moved into Handler.

Constructor Summary

AccessConstructor and Description
public
VSBChangeListener()

Constructs a VSBChangeListener.

Method Summary

Modifier and TypeMethod and Description
public void
stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VSBChangeListenerback to summary
public VSBChangeListener()

Constructs a VSBChangeListener.

Method Detail

stateChangedback to summary
public void stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Doc from javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.