javax.swing.plaf.basic
Class BasicTreeUI.ScrollAction

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

private static class BasicTreeUI.ScrollAction
extends AbstractAction

Scrolls the component it is created with a specified amount.


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  int amount
           
private  JComponent component
           
private  int direction
           
 
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
BasicTreeUI.ScrollAction(JComponent component, int direction, int amount)
           
 
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

component

private JComponent component

direction

private int direction

amount

private int amount
Constructor Detail

BasicTreeUI.ScrollAction

public BasicTreeUI.ScrollAction(JComponent component,
                                int direction,
                                int amount)
Method Detail

actionPerformed

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