private class BasicXListUI.Handler extends Object implements FocusListener, KeyListener, ListDataListener, ListSelectionListener, MouseInputListener, PropertyChangeListener, DragRecognitionSupport.BeforeDrag
Modifier and Type | Field and Description |
---|---|
private boolean |
dragPressDidSelection |
private long |
lastTime |
private String |
prefix |
private String |
typedString |
Modifier | Constructor and Description |
---|---|
private |
Handler() |
private String typedString
private long lastTime
private boolean dragPressDidSelection
private Handler()
public void keyTyped(KeyEvent e)
timeFactor
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.keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
KeyEvent
for a definition of
a key released event.keyReleased
in interface KeyListener
private boolean isNavigationKey(KeyEvent event)
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
private void repaintDropLocation(JList.DropLocation loc)
public void intervalAdded(ListDataEvent e)
intervalAdded
in interface ListDataListener
public void intervalRemoved(ListDataEvent e)
intervalRemoved
in interface ListDataListener
public void contentsChanged(ListDataEvent e)
contentsChanged
in interface ListDataListener
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
private void adjustSelection(MouseEvent e)
public void dragStarting(MouseEvent me)
dragStarting
in interface DragRecognitionSupport.BeforeDrag
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
protected void repaintCellFocus()
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses