Package org.jdesktop.swingx.plaf.basic
Class BasicYListUI.Handler
java.lang.Object
org.jdesktop.swingx.plaf.basic.BasicYListUI.Handler
- All Implemented Interfaces:
FocusListener,KeyListener,MouseListener,MouseMotionListener,PropertyChangeListener,EventListener,ListDataListener,ListSelectionListener,MouseInputListener,DragRecognitionSupport.BeforeDrag
- Direct Known Subclasses:
BasicXListUI.Handler
- Enclosing class:
- BasicYListUI
protected class BasicYListUI.Handler
extends Object
implements FocusListener, KeyListener, ListDataListener, ListSelectionListener, MouseInputListener, PropertyChangeListener, DragRecognitionSupport.BeforeDrag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddragStartingvoidvoidprotected intgetElementCount(JList<?> list) voidvoidvoidInvoked when a key has been pressed.voidInvoked when a key has been released.voidInvoked when a key has been typed.voidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
Handler
protected Handler()
-
-
Method Details
-
getElementCount
-
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 oftimeFactorproperty (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 another letter.- Specified by:
keyTypedin 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:
keyPressedin interfaceKeyListener
-
keyReleased
Invoked when a key has been released. See the class description forKeyEventfor a definition of a key released event.- Specified by:
keyReleasedin interfaceKeyListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
intervalAdded
- Specified by:
intervalAddedin interfaceListDataListener
-
intervalRemoved
- Specified by:
intervalRemovedin interfaceListDataListener
-
contentsChanged
- Specified by:
contentsChangedin interfaceListDataListener
-
valueChanged
- Specified by:
valueChangedin interfaceListSelectionListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
dragStarting
Description copied from interface:DragRecognitionSupport.BeforeDragdragStarting- Specified by:
dragStartingin interfaceDragRecognitionSupport.BeforeDrag- Parameters:
me- MouseEvent
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
repaintCellFocus
public void repaintCellFocus() -
focusGained
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
- Specified by:
focusLostin interfaceFocusListener
-