javax.swing.plaf.basic
Class BasicScrollPaneUI.ScrollAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.plaf.basic.BasicScrollPaneUI.ScrollAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Enclosing class:
BasicScrollPaneUI

private static class BasicScrollPaneUI.ScrollAction
extends AbstractAction

Action to scroll left/right/up/down.


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  boolean block
          True indicates a block scroll, otherwise a unit scroll.
protected  int direction
          1 indicates scroll down, -1 up.
protected  int orientation
          Direction to scroll.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected BasicScrollPaneUI.ScrollAction(String name, int orientation, int direction, boolean block)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orientation

protected int orientation
Direction to scroll.


direction

protected int direction
1 indicates scroll down, -1 up.


block

private boolean block
True indicates a block scroll, otherwise a unit scroll.

Constructor Detail

BasicScrollPaneUI.ScrollAction

protected BasicScrollPaneUI.ScrollAction(String name,
                                         int orientation,
                                         int direction,
                                         boolean block)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from interface: ActionListener
Invoked when an action occurs.