Class BasicXListUI.Handler
java.lang.Object
org.jdesktop.swingx.plaf.basic.core.BasicXListUI.Handler
- All Implemented Interfaces:
FocusListener
,KeyListener
,MouseListener
,MouseMotionListener
,PropertyChangeListener
,EventListener
,ListDataListener
,ListSelectionListener
,MouseInputListener
,DragRecognitionSupport.BeforeDrag
- Enclosing class:
BasicXListUI
private class BasicXListUI.Handler
extends Object
implements FocusListener, KeyListener, ListDataListener, ListSelectionListener, MouseInputListener, PropertyChangeListener, DragRecognitionSupport.BeforeDrag
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
void
void
void
void
void
private boolean
isNavigationKey
(KeyEvent event) Returns whether or not the supplied key event maps to a key that is used for navigation.void
Invoked when a key has been pressed.void
Invoked when a key has been released.void
Invoked when a key has been typed.void
void
void
void
void
void
void
void
protected void
private void
void
-
Field Details
-
prefix
-
typedString
-
lastTime
private long lastTime -
dragPressDidSelection
private boolean dragPressDidSelection
-
-
Constructor Details
-
Handler
private Handler()
-
-
Method Details
-
keyTyped
Invoked when a key has been typed. Moves the keyboard focus to the first element whose prefix matches the sequence of alphanumeric keys pressed by the user with delay less than value oftimeFactor
property (or 1000 milliseconds if it is not defined). Subsequent same key presses move the keyboard focus to the next object that starts with the same letter until another key is pressed, then it is treated as the prefix with appropriate number of the same letters followed by first typed anothe letter.- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
Invoked when a key has been pressed. Checks to see if the key event is a navigation key to prevent dispatching these keys for the first letter navigation.- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
Invoked when a key has been released. See the class description forKeyEvent
for a definition of a key released event.- Specified by:
keyReleased
in interfaceKeyListener
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
repaintDropLocation
-
intervalAdded
- Specified by:
intervalAdded
in interfaceListDataListener
-
intervalRemoved
- Specified by:
intervalRemoved
in interfaceListDataListener
-
contentsChanged
- Specified by:
contentsChanged
in interfaceListDataListener
-
valueChanged
- Specified by:
valueChanged
in interfaceListSelectionListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
adjustSelection
-
dragStarting
- Specified by:
dragStarting
in interfaceDragRecognitionSupport.BeforeDrag
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
repaintCellFocus
protected void repaintCellFocus() -
focusGained
- Specified by:
focusGained
in interfaceFocusListener
-
focusLost
- Specified by:
focusLost
in interfaceFocusListener
-