protected static class CheckBoxTree.Handler
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.KeyListener, javax.swing.event.TreeSelectionListener
| Modifier and Type | Field and Description |
|---|---|
protected CheckBoxTree |
_tree |
| Constructor and Description |
|---|
Handler(CheckBoxTree tree)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
clicksInCheckBox(java.awt.event.MouseEvent e,
javax.swing.tree.TreePath path)
Checks if the mouse event happens for the tree path.
|
protected javax.swing.tree.TreePath |
getTreePathForMouseEvent(java.awt.event.MouseEvent e)
Gets the tree path according to the mouse event.
|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
protected void |
toggleSelections()
Toggles the selected paths' selection state.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e) |
protected CheckBoxTree _tree
public Handler(CheckBoxTree tree)
tree - the CheckBoxTreeprotected javax.swing.tree.TreePath getTreePathForMouseEvent(java.awt.event.MouseEvent e)
e - the mouse eventprotected boolean clicksInCheckBox(java.awt.event.MouseEvent e,
javax.swing.tree.TreePath path)
e - the mouse eventpath - the tree pathpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged in interface javax.swing.event.TreeSelectionListenerprotected void toggleSelections()