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