Package introspector.controller
Class TreeMouseClickController
java.lang.Object
introspector.controller.TreeMouseClickController
- All Implemented Interfaces:
MouseListener,EventListener
This controller implements different ways of expanding tree views (JTrees).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JPopupMenuThe tree viewprivate final JTreeThe tree view -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmouseClicked(MouseEvent event) When the mouse is right-clicked, a popup menu is shownvoidNo action is performed when the mouse is enteredvoidNo action is performed when the mouse exitsvoidNo action is performed when the mouse is pressedvoidNo action is performed when the mouse is released
-
Field Details
-
tree
The tree view -
popupMenu
The tree view
-
-
Constructor Details
-
TreeMouseClickController
-
-
Method Details
-
mouseClicked
When the mouse is right-clicked, a popup menu is shown- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
event- the event that characterizes mouse click.
-
mousePressed
No action is performed when the mouse is pressed- Specified by:
mousePressedin interfaceMouseListener- Parameters:
e- the event to be processed
-
mouseReleased
No action is performed when the mouse is released- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
e- the event to be processed
-
mouseEntered
No action is performed when the mouse is entered- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
e- the event to be processed
-
mouseExited
No action is performed when the mouse exits- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
e- the event to be processed
-