KeyListener
, MouseListener
, EventListener
, TreeSelectionListener
protected static class CheckBoxTree.Handler extends Object implements MouseListener, KeyListener, TreeSelectionListener
Modifier and Type | Field | Description |
---|---|---|
protected CheckBoxTree |
_tree |
Constructor | Description |
---|---|
Handler(CheckBoxTree tree) |
The constructor.
|
Modifier and Type | Method | 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 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 MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
protected void toggleSelections()