| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv class | |
| public class | BasicScrollPaneUI.
Deprecated
for removal since 17.
Horizontal scrollbar listener.
|
| protected class | BasicScrollPaneUI.
MouseWheelHandler is an inner class which implements the MouseWheelListener interface. |
| public class | BasicScrollPaneUI.
Deprecated
for removal since 17.
Property change handler.
|
| public class | BasicScrollPaneUI.
Deprecated
for removal since 17.
Listener for viewport events.
|
| public class | BasicScrollPaneUI.
Deprecated
for removal since 17.
Vertical scrollbar listener.
|
| Modifier and Type | Field and Description |
|---|---|
| private BasicScrollPaneUI. | |
| protected ChangeListener | hsbChangeListener
|
| private PropertyChangeListener | hsbPropertyChangeListener
|
| private MouseWheelListener | |
| private int | |
| protected JScrollPane | scrollpane
The instance of |
| 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
|
| protected ChangeListener | viewportChangeListener
|
| protected ChangeListener | vsbChangeListener
|
| private PropertyChangeListener | vsbPropertyChangeListener
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ChangeListener | Returns: an instance of horizontal scroll barChangeListenerReturns an instance of horizontal scroll bar |
| private PropertyChangeListener | createHSBPropertyChangeListener()
Returns a |
| protected MouseWheelListener | Returns: MouseWheelListener which implements wheel-driven scrollingCreates an instance of MouseWheelListener, which is added to the JScrollPane by installUI(). |
| protected PropertyChangeListener | Returns: an instance ofPropertyChangeListenerCreates an instance of |
| public static ComponentUI | Returns: a new instance ofBasicScrollPaneUIa component. x)Hides javax. Returns a new instance of |
| protected ChangeListener | Returns: an instance of viewportChangeListenerReturns an instance of viewport |
| protected ChangeListener | Returns: an instance of vertical scroll barChangeListenerReturns an instance of vertical scroll bar |
| private PropertyChangeListener | createVSBPropertyChangeListener()
Returns a |
| public int | getBaseline(JComponent c, int width, int height)
Overrides javax. Returns the baseline. |
| public Component. | getBaselineResizeBehavior(JComponent c)
Overrides javax. Returns an enum indicating how the baseline of the component changes as the size changes. |
| private BasicScrollPaneUI. | |
| pack-priv InputMap | |
| public Dimension | Returns: new Dimension(Short.MAX_VALUE, Short.MAX_VALUE)Overrides javax. Returns the specified component's maximum size appropriate for the look and feel. |
| protected void | |
| protected void | |
| protected void | |
| public void | installUI(JComponent x)
Overrides javax. Configures the specified component appropriately for the look and feel. |
| pack-priv static void | |
| public void | paint(Graphics g, JComponent c)
Overrides javax. Paints the specified component appropriately for the look and feel. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | uninstallUI(JComponent c)
Overrides javax. Reverses configuration which was done on the specified component during
|
| protected void | |
| private void | |
| protected void | |
| private void | |
| protected void | updateScrollBarDisplayPolicy(PropertyChangeEvent
the property change event e)Updates a scroll bar display policy. |
| private void | |
| protected void |
| handler | back to summary |
|---|---|
| private BasicScrollPaneUI. | |
| hsbChangeListener | back to summary |
|---|---|
| protected ChangeListener hsbChangeListener
| |
| hsbPropertyChangeListener | back to summary |
|---|---|
| private PropertyChangeListener hsbPropertyChangeListener
| |
| mouseScrollListener | back to summary |
|---|---|
| private MouseWheelListener mouseScrollListener | |
| oldExtent | back to summary |
|---|---|
| private int oldExtent | |
| scrollpane | back to summary |
|---|---|
| protected JScrollPane scrollpane The instance of | |
| setValueCalled | back 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. | |
| spPropertyChangeListener | back to summary |
|---|---|
| protected PropertyChangeListener spPropertyChangeListener
| |
| viewportChangeListener | back to summary |
|---|---|
| protected ChangeListener viewportChangeListener
| |
| vsbChangeListener | back to summary |
|---|---|
| protected ChangeListener vsbChangeListener
| |
| vsbPropertyChangeListener | back to summary |
|---|---|
| private PropertyChangeListener vsbPropertyChangeListener
| |
| BasicScrollPaneUI | back to summary |
|---|---|
| public BasicScrollPaneUI() Constructs a | |
| createHSBChangeListener | back to summary |
|---|---|
| protected ChangeListener createHSBChangeListener() Returns an instance of horizontal scroll bar
| |
| createHSBPropertyChangeListener | back to summary |
|---|---|
| private PropertyChangeListener createHSBPropertyChangeListener() Returns a | |
| createMouseWheelListener | back 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.
| |
| createPropertyChangeListener | back to summary |
|---|---|
| protected PropertyChangeListener createPropertyChangeListener() Creates an instance of
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);
}
}
}
| |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent x) Hides javax. Returns a new instance of
| |
| createViewportChangeListener | back to summary |
|---|---|
| protected ChangeListener createViewportChangeListener() Returns an instance of viewport
| |
| createVSBChangeListener | back to summary |
|---|---|
| protected ChangeListener createVSBChangeListener() Returns an instance of vertical scroll bar
| |
| createVSBPropertyChangeListener | back to summary |
|---|---|
| private PropertyChangeListener createVSBPropertyChangeListener() Returns a | |
| getBaseline | back to summary |
|---|---|
| public int getBaseline(JComponent c, int width, int height) Overrides javax. Returns the baseline.
| |
| getBaselineResizeBehavior | back to summary |
|---|---|
| public Component. Overrides javax. Returns an enum indicating how the baseline of the component changes as the size changes.
| |
| getHandler | back to summary |
|---|---|
| private BasicScrollPaneUI. | |
| getInputMap | back to summary |
|---|---|
| pack-priv InputMap getInputMap(int condition) | |
| getMaximumSize | back to summary |
|---|---|
| public Dimension getMaximumSize(JComponent c) Overrides javax. Doc from javax. Returns the specified component's maximum size appropriate for
the look and feel. If
| |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults(JScrollPane scrollpane) Installs default properties.
| |
| installKeyboardActions | back to summary |
|---|---|
| protected void installKeyboardActions(JScrollPane c) Registers keyboard actions.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners(JScrollPane c) Registers listeners.
| |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent x) Overrides javax. Doc from javax. Configures the specified component appropriately for the look and feel.
This method is invoked when the
| |
| loadActionMap | back to summary |
|---|---|
| pack-priv static void loadActionMap(LazyActionMap map) | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Doc from javax. Paints the specified component appropriately for the look and feel.
This method is invoked from the | |
| syncScrollPaneWithViewport | back to summary |
|---|---|
| protected void syncScrollPaneWithViewport() Synchronizes the | |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults(JScrollPane c) Uninstalls default properties.
| |
| uninstallKeyboardActions | back to summary |
|---|---|
| protected void uninstallKeyboardActions(JScrollPane c) Unregisters keyboard actions.
| |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners(JComponent c) Unregisters listeners.
| |
| uninstallUI | back to summary |
|---|---|
| public void uninstallUI(JComponent c) Overrides javax. Doc from javax. Reverses configuration which was done on the specified component during
| |
| updateColumnHeader | back to summary |
|---|---|
| protected void updateColumnHeader(PropertyChangeEvent e) Updates column header.
| |
| updateHorizontalScrollBar | back to summary |
|---|---|
| private void updateHorizontalScrollBar(PropertyChangeEvent pce) | |
| updateRowHeader | back to summary |
|---|---|
| protected void updateRowHeader(PropertyChangeEvent e) Updates row header.
| |
| updateScrollBar | back to summary |
|---|---|
| private void updateScrollBar(PropertyChangeEvent pce, ChangeListener cl, PropertyChangeListener pcl) | |
| updateScrollBarDisplayPolicy | back to summary |
|---|---|
| protected void updateScrollBarDisplayPolicy(PropertyChangeEvent e) Updates a scroll bar display policy.
| |
| updateVerticalScrollBar | back to summary |
|---|---|
| private void updateVerticalScrollBar(PropertyChangeEvent pce) | |
| updateViewport | back to summary |
|---|---|
| protected void updateViewport(PropertyChangeEvent e) Updates viewport.
| |
| Modifier and Type | Field 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 |
| Modifier and Type | Method and Description |
|---|---|
| public void | actionPerformed(ActionEvent e)
Implements java. Invoked when an action occurs. |
| private void | |
| private void | |
| private void |
| SCROLL_DOWN | back to summary |
|---|---|
| private static final String SCROLL_DOWN | |
| SCROLL_END | back to summary |
|---|---|
| private static final String SCROLL_END | |
| SCROLL_HOME | back to summary |
|---|---|
| private static final String SCROLL_HOME | |
| SCROLL_LEFT | back to summary |
|---|---|
| private static final String SCROLL_LEFT | |
| SCROLL_RIGHT | back to summary |
|---|---|
| private static final String SCROLL_RIGHT | |
| SCROLL_UP | back to summary |
|---|---|
| private static final String SCROLL_UP | |
| UNIT_SCROLL_DOWN | back to summary |
|---|---|
| private static final String UNIT_SCROLL_DOWN | |
| UNIT_SCROLL_LEFT | back to summary |
|---|---|
| private static final String UNIT_SCROLL_LEFT | |
| UNIT_SCROLL_RIGHT | back to summary |
|---|---|
| private static final String UNIT_SCROLL_RIGHT | |
| UNIT_SCROLL_UP | back to summary |
|---|---|
| private static final String UNIT_SCROLL_UP | |
| Actions | back to summary |
|---|---|
| pack-priv Actions(String key) | |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(ActionEvent e) Implements java. Doc from java. Invoked when an action occurs. | |
| scroll | back to summary |
|---|---|
| private void scroll(JScrollPane scrollpane, int orientation, int direction, boolean block) | |
| scrollEnd | back to summary |
|---|---|
| private void scrollEnd(JScrollPane scrollpane) | |
| scrollHome | back to summary |
|---|---|
| private void scrollHome(JScrollPane scrollpane) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | mouseWheelMoved(MouseWheelEvent e)
Implements java. Invoked when the mouse wheel is rotated. |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| private void | |
| private void | |
| public void | stateChanged(ChangeEvent e)
Implements javax. Invoked when the target of the listener has changed its state. |
| private void |
| Handler | back to summary |
|---|---|
| pack-priv Handler() | |
| hsbStateChanged | back to summary |
|---|---|
| private void hsbStateChanged(JViewport viewport, ChangeEvent e) | |
| mouseWheelMoved | back to summary |
|---|---|
| public void mouseWheelMoved(MouseWheelEvent e) Implements java. Doc from java. Invoked when the mouse wheel is rotated. | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
| sbPropertyChange | back to summary |
|---|---|
| private void sbPropertyChange(PropertyChangeEvent e) | |
| scrollPanePropertyChange | back to summary |
|---|---|
| private void scrollPanePropertyChange(PropertyChangeEvent e) | |
| stateChanged | back to summary |
|---|---|
| public void stateChanged(ChangeEvent e) Implements javax. Doc from javax. Invoked when the target of the listener has changed its state. | |
| vsbStateChanged | back to summary |
|---|---|
| private void vsbStateChanged(JViewport viewport, ChangeEvent e) | |
Deprecated
for removal since 17.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | stateChanged(ChangeEvent e)
Implements javax. Invoked when the target of the listener has changed its state. |
| HSBChangeListener | back to summary |
|---|---|
| public HSBChangeListener() Constructs a | |
| stateChanged | back to summary |
|---|---|
| public void stateChanged(ChangeEvent e) Implements javax. Doc from javax. Invoked when the target of the listener has changed its state. | |
isWheelScrollingEnabled
method returns false, no scrolling occurs.
javax.swing.JScrollPane#isWheelScrollingEnabled , createMouseWheelListener, java.awt.event.MouseWheelListener , java.awt.event.MouseWheelEvent
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | mouseWheelMoved(MouseWheelEvent
MouseWheelEvent to be handled e)Implements java. Called when the mouse wheel is rotated while over a JScrollPane. |
| MouseWheelHandler | back to summary |
|---|---|
| protected MouseWheelHandler() Constructs a | |
| mouseWheelMoved | back to summary |
|---|---|
| public void mouseWheelMoved(MouseWheelEvent e) Implements java. Called when the mouse wheel is rotated while over a JScrollPane.
| |
Deprecated
for removal since 17.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| PropertyChangeHandler | back to summary |
|---|---|
| public PropertyChangeHandler() Constructs a | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
Deprecated
for removal since 17.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | stateChanged(ChangeEvent e)
Implements javax. Invoked when the target of the listener has changed its state. |
| ViewportChangeHandler | back to summary |
|---|---|
| public ViewportChangeHandler() Constructs a | |
| stateChanged | back to summary |
|---|---|
| public void stateChanged(ChangeEvent e) Implements javax. Doc from javax. Invoked when the target of the listener has changed its state. | |
Deprecated
for removal since 17.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | stateChanged(ChangeEvent e)
Implements javax. Invoked when the target of the listener has changed its state. |
| VSBChangeListener | back to summary |
|---|---|
| public VSBChangeListener() Constructs a | |
| stateChanged | back to summary |
|---|---|
| public void stateChanged(ChangeEvent e) Implements javax. Doc from javax. Invoked when the target of the listener has changed its state. | |