javax.swing.plaf.basic
Class BasicTableUI.NavigationalAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.plaf.basic.BasicTableUI.NavigationalAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Direct Known Subclasses:
BasicTableUI.PagingAction
Enclosing class:
BasicTableUI

private static class BasicTableUI.NavigationalAction
extends AbstractAction


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
protected  int anchorColumn
           
protected  int anchorRow
           
protected  int dx
           
protected  int dy
           
protected  boolean extend
           
protected  boolean inSelection
           
protected  int leadColumn
           
protected  int leadRow
           
protected  boolean toggle
           
 
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 BasicTableUI.NavigationalAction(int dx, int dy, boolean toggle, boolean extend, boolean inSelection)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
private  int clipToRange(int i, int a, int b)
           
private  int compare(int i, int a, int b)
           
private  int compare(int i, ListSelectionModel sm)
           
private  boolean moveWithinSelectedRange(JTable table, int dx, int dy, boolean ignoreCarry)
           
private  void moveWithinTableRange(JTable table, int dx, int dy, boolean changeLead)
           
private  int selectionSpan(ListSelectionModel sm)
           
 
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

dx

protected int dx

dy

protected int dy

toggle

protected boolean toggle

extend

protected boolean extend

inSelection

protected boolean inSelection

anchorRow

protected int anchorRow

anchorColumn

protected int anchorColumn

leadRow

protected int leadRow

leadColumn

protected int leadColumn
Constructor Detail

BasicTableUI.NavigationalAction

protected BasicTableUI.NavigationalAction(int dx,
                                          int dy,
                                          boolean toggle,
                                          boolean extend,
                                          boolean inSelection)
Method Detail

clipToRange

private int clipToRange(int i,
                        int a,
                        int b)

moveWithinTableRange

private void moveWithinTableRange(JTable table,
                                  int dx,
                                  int dy,
                                  boolean changeLead)

selectionSpan

private int selectionSpan(ListSelectionModel sm)

compare

private int compare(int i,
                    ListSelectionModel sm)

compare

private int compare(int i,
                    int a,
                    int b)

moveWithinSelectedRange

private boolean moveWithinSelectedRange(JTable table,
                                        int dx,
                                        int dy,
                                        boolean ignoreCarry)

actionPerformed

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